Package dev.frostlake.executor
Class DeclaredReturnFrame
java.lang.Object
dev.frostlake.executor.DeclaredReturnFrame
The declared RETURNS type of the procedure whose body is running, with the block and compound
depths its body started at — what tells a RETURN written directly in that body (the one live
converts to the declared type) from one nested in an IF, a loop, a handler or an inner block (kept
as it is). A CALL pushes a frame and puts the caller's back afterwards, so nested calls each see
their own.
-
Constructor Summary
ConstructorsConstructorDescriptionDeclaredReturnFrame(DataType type, int blockDepth, int compoundDepth, Set<String> parameterNames) -
Method Summary
Modifier and TypeMethodDescriptionintThe block depth outside the body: the body's own block is one deeper.intThe compound-statement depth outside the body.The names the procedure's signature declares, as its parameters store them.getType()The declared RETURNS type, or null for a table-returning or untyped body.
-
Constructor Details
-
DeclaredReturnFrame
-
-
Method Details
-
getType
The declared RETURNS type, or null for a table-returning or untyped body. -
getBlockDepth
public int getBlockDepth()The block depth outside the body: the body's own block is one deeper. -
getCompoundDepth
public int getCompoundDepth()The compound-statement depth outside the body. -
getParameterNames
The names the procedure's signature declares, as its parameters store them.
-