Package org.qdl_lang.statements
Class LocalBlockStatement
- java.lang.Object
-
- org.qdl_lang.statements.BlockStatement
-
- org.qdl_lang.statements.LocalBlockStatement
-
- All Implemented Interfaces:
Serializable,Statement
public class LocalBlockStatement extends BlockStatement
Local block statments.These have completely local state and know nothing of the ambient space.Created by Jeff Gaynor
on 4/8/22 at 12:59 PM- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description LocalBlockStatement()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description QDLValueevaluate(State state)List<XThing>getFunctionParameters()If this is called in a function.e.g., f(x)->local[...] then this is the set of arguments.protected booleanhasFunctionParameters()voidsetFunctionParameters(List<XThing> functionParameters)-
Methods inherited from class org.qdl_lang.statements.BlockStatement
getSourceCode, getStatements, getTokenPosition, hasTokenPosition, setSourceCode, setStatements, setTokenPosition
-
-
-
-
Method Detail
-
evaluate
public QDLValue evaluate(State state)
- Specified by:
evaluatein interfaceStatement- Overrides:
evaluatein classBlockStatement
-
hasFunctionParameters
protected boolean hasFunctionParameters()
-
getFunctionParameters
public List<XThing> getFunctionParameters()
If this is called in a function.e.g., f(x)->local[...] then this is the set of arguments. These should be added to the state.- Returns:
-
-