Package org.qdl_lang.functions
Class FR_WithState
- java.lang.Object
-
- org.qdl_lang.functions.FR_WithState
-
- All Implemented Interfaces:
Serializable,Cloneable,FunctionRecordInterface,XThing
public class FR_WithState extends Object implements FunctionRecordInterface
A facade for a function record. This however has the local state. It is used as a function reference and passed as e.g. an argument. So in f(@foo) @foo would be one of these.Created by Jeff Gaynor
on 1/26/20 at 7:30 AM- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description FunctionRecordInterfacefunctionRecordbooleanisExternalModulebooleanisModuleAbstractStatestate
-
Constructor Summary
Constructors Constructor Description FR_WithState()FR_WithState(FunctionRecordInterface functionRecord, AbstractState state)FR_WithState(FunctionRecordInterface functionRecord, AbstractState state, boolean isModule)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description FunctionRecordInterfaceclone()intgetArgCount()List<String>getArgNames()List<String>getDocumentation()StringgetfRefName()FKeygetKey()StringgetName()List<String>getSourceCode()List<Statement>getStatements()TokenPositiongetTokenPosition()booleanhasName()booleanhasState()booleanhasTokenPosition()booleanisAnonymous()booleanisExtrinsic()booleanisFuncRef()booleanisJavaFunction()booleanisLambda()booleanisOperator()voidsetfRefName(String fRefName)voidsetFuncRef(boolean funcRef)voidsetName(String name)voidsetOperator(boolean operator)voidsetSourceCode(List<String> sourceCode)voidsetStatements(List<Statement> statements)StringtoString()
-
-
-
Field Detail
-
functionRecord
public FunctionRecordInterface functionRecord
-
state
public AbstractState state
-
isExternalModule
public boolean isExternalModule
-
isModule
public boolean isModule
-
-
Constructor Detail
-
FR_WithState
public FR_WithState()
-
FR_WithState
public FR_WithState(FunctionRecordInterface functionRecord, AbstractState state, boolean isModule)
-
FR_WithState
public FR_WithState(FunctionRecordInterface functionRecord, AbstractState state)
-
-
Method Detail
-
getName
public String getName()
- Specified by:
getNamein interfaceFunctionRecordInterface- Specified by:
getNamein interfaceXThing
-
getKey
public FKey getKey()
- Specified by:
getKeyin interfaceFunctionRecordInterface- Specified by:
getKeyin interfaceXThing
-
hasState
public boolean hasState()
-
isJavaFunction
public boolean isJavaFunction()
-
isAnonymous
public boolean isAnonymous()
- Specified by:
isAnonymousin interfaceFunctionRecordInterface
-
isLambda
public boolean isLambda()
- Specified by:
isLambdain interfaceFunctionRecordInterface
-
isExtrinsic
public boolean isExtrinsic()
- Specified by:
isExtrinsicin interfaceFunctionRecordInterface
-
setName
public void setName(String name)
- Specified by:
setNamein interfaceFunctionRecordInterface
-
getTokenPosition
public TokenPosition getTokenPosition()
- Specified by:
getTokenPositionin interfaceFunctionRecordInterface
-
hasTokenPosition
public boolean hasTokenPosition()
- Specified by:
hasTokenPositionin interfaceFunctionRecordInterface
-
hasName
public boolean hasName()
- Specified by:
hasNamein interfaceFunctionRecordInterface
-
getArgCount
public int getArgCount()
- Specified by:
getArgCountin interfaceFunctionRecordInterface
-
clone
public FunctionRecordInterface clone()
- Specified by:
clonein interfaceFunctionRecordInterface- Overrides:
clonein classObject
-
getArgNames
public List<String> getArgNames()
- Specified by:
getArgNamesin interfaceFunctionRecordInterface
-
getSourceCode
public List<String> getSourceCode()
- Specified by:
getSourceCodein interfaceFunctionRecordInterface
-
setSourceCode
public void setSourceCode(List<String> sourceCode)
- Specified by:
setSourceCodein interfaceFunctionRecordInterface
-
getDocumentation
public List<String> getDocumentation()
- Specified by:
getDocumentationin interfaceFunctionRecordInterface
-
getfRefName
public String getfRefName()
- Specified by:
getfRefNamein interfaceFunctionRecordInterface
-
setfRefName
public void setfRefName(String fRefName)
- Specified by:
setfRefNamein interfaceFunctionRecordInterface
-
isOperator
public boolean isOperator()
- Specified by:
isOperatorin interfaceFunctionRecordInterface
-
setOperator
public void setOperator(boolean operator)
- Specified by:
setOperatorin interfaceFunctionRecordInterface
-
isFuncRef
public boolean isFuncRef()
- Specified by:
isFuncRefin interfaceFunctionRecordInterface
-
setFuncRef
public void setFuncRef(boolean funcRef)
- Specified by:
setFuncRefin interfaceFunctionRecordInterface
-
getStatements
public List<Statement> getStatements()
- Specified by:
getStatementsin interfaceFunctionRecordInterface
-
setStatements
public void setStatements(List<Statement> statements)
- Specified by:
setStatementsin interfaceFunctionRecordInterface
-
-