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 an 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 Object
evaluate(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 boolean
hasFunctionParameters()
void
setFunctionParameters(List<XThing> functionParameters)
-
Methods inherited from class org.qdl_lang.statements.BlockStatement
getSourceCode, getStatements, getTokenPosition, hasTokenPosition, setSourceCode, setStatements, setTokenPosition
-
-
-
-
Method Detail
-
evaluate
public Object evaluate(State state)
- Specified by:
evaluate
in interfaceStatement
- Overrides:
evaluate
in 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:
-
-