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 SummaryConstructors Constructor Description FunctionDefinitionStatement()
 - 
Method SummaryAll Methods Instance Methods Concrete Methods Modifier and Type Method Description QDLValueevaluate(State state)FunctionRecordgetFunctionRecord()List<String>getSourceCode()TokenPositiongetTokenPosition()booleanhasTokenPosition()booleanisLambda()voidsetFunctionRecord(FunctionRecord functionRecord)voidsetLambda(boolean lambda)voidsetSourceCode(List<String> sourceCode)voidsetTokenPosition(TokenPosition tokenPosition)Set the location of this token from the parser.
 
- 
- 
- 
Method Detail- 
setTokenPositionpublic void setTokenPosition(TokenPosition tokenPosition) Description copied from interface:StatementSet the location of this token from the parser. This is used for error notifications later.- Specified by:
- setTokenPositionin interface- Statement
 
 - 
getTokenPositionpublic TokenPosition getTokenPosition() - Specified by:
- getTokenPositionin interface- Statement
 
 - 
hasTokenPositionpublic boolean hasTokenPosition() - Specified by:
- hasTokenPositionin interface- Statement
 
 - 
isLambdapublic boolean isLambda() 
 - 
setLambdapublic void setLambda(boolean lambda) 
 - 
getFunctionRecordpublic FunctionRecord getFunctionRecord() 
 - 
setFunctionRecordpublic void setFunctionRecord(FunctionRecord functionRecord) 
 - 
getSourceCodepublic List<String> getSourceCode() - Specified by:
- getSourceCodein interface- Statement
 
 - 
setSourceCodepublic void setSourceCode(List<String> sourceCode) - Specified by:
- setSourceCodein interface- Statement
 
 
- 
 
-