Package org.qdl_lang.functions
Class FunctionDefinitionStatement
- java.lang.Object
-
- org.qdl_lang.functions.FunctionDefinitionStatement
-
- All Implemented Interfaces:
Serializable
,Statement
public class FunctionDefinitionStatement extends Object implements Statement
Created by Jeff Gaynor
on 3/20/21 at 8:46 AM- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description FunctionDefinitionStatement()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Object
evaluate(State state)
FunctionRecord
getFunctionRecord()
List<String>
getSourceCode()
TokenPosition
getTokenPosition()
boolean
hasTokenPosition()
boolean
isLambda()
void
setFunctionRecord(FunctionRecord functionRecord)
void
setLambda(boolean lambda)
void
setSourceCode(List<String> sourceCode)
void
setTokenPosition(TokenPosition tokenPosition)
Set the location of this token from the parser.
-
-
-
Method Detail
-
setTokenPosition
public void setTokenPosition(TokenPosition tokenPosition)
Description copied from interface:Statement
Set the location of this token from the parser. This is used for error notifications later.- Specified by:
setTokenPosition
in interfaceStatement
-
getTokenPosition
public TokenPosition getTokenPosition()
- Specified by:
getTokenPosition
in interfaceStatement
-
hasTokenPosition
public boolean hasTokenPosition()
- Specified by:
hasTokenPosition
in interfaceStatement
-
isLambda
public boolean isLambda()
-
setLambda
public void setLambda(boolean lambda)
-
getFunctionRecord
public FunctionRecord getFunctionRecord()
-
setFunctionRecord
public void setFunctionRecord(FunctionRecord functionRecord)
-
getSourceCode
public List<String> getSourceCode()
- Specified by:
getSourceCode
in interfaceStatement
-
setSourceCode
public void setSourceCode(List<String> sourceCode)
- Specified by:
setSourceCode
in interfaceStatement
-
-