Package org.eclipse.epsilon.eol.dom
Class VariableDeclaration
java.lang.Object
org.eclipse.epsilon.common.module.AbstractModuleElement
org.eclipse.epsilon.eol.dom.AbstractExecutableModuleElement
org.eclipse.epsilon.eol.dom.Expression
org.eclipse.epsilon.eol.dom.TypeInitialiser
org.eclipse.epsilon.eol.dom.VariableDeclaration
- All Implemented Interfaces:
ModuleElement
,IExecutableModuleElement
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected boolean
protected boolean
protected NameExpression
protected List<Expression>
protected TypeExpression
-
Constructor Summary
ConstructorsConstructorDescriptionVariableDeclaration
(NameExpression nameExpression, TypeExpression typeExpression, boolean instantiate, Expression... parameterExpressions) -
Method Summary
Modifier and TypeMethodDescriptionvoid
accept
(IEolVisitor visitor) void
execute
(IEolContext context) getName()
boolean
boolean
void
setExternal
(boolean external) void
setInstantiate
(boolean instantiate) void
setNameExpression
(NameExpression nameExpression) void
setTypeExpression
(TypeExpression typeExpression) Methods inherited from class org.eclipse.epsilon.eol.dom.TypeInitialiser
initialiseType
Methods inherited from class org.eclipse.epsilon.common.module.AbstractModuleElement
equals, getChildren, getComments, getData, getDebugInfo, getFile, getModule, getParent, getRegion, getUri, hashCode, setModule, setParent, setRegion, setUri, toString
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
Methods inherited from interface org.eclipse.epsilon.common.module.ModuleElement
getChildren, getComments, getData, getFile, getModule, getParent, getRegion, getUri, setModule, setParent, setRegion, setUri
-
Field Details
-
parameterExpressions
-
nameExpression
-
instantiate
protected boolean instantiate -
external
protected boolean external -
typeExpression
-
-
Constructor Details
-
VariableDeclaration
public VariableDeclaration() -
VariableDeclaration
public VariableDeclaration(NameExpression nameExpression, TypeExpression typeExpression, boolean instantiate, Expression... parameterExpressions)
-
-
Method Details
-
build
- Specified by:
build
in interfaceModuleElement
- Overrides:
build
in classAbstractModuleElement
-
execute
- Throws:
EolRuntimeException
-
getName
-
isInstantiate
public boolean isInstantiate() -
setInstantiate
public void setInstantiate(boolean instantiate) -
isExternal
public boolean isExternal() -
setExternal
public void setExternal(boolean external) -
getTypeExpression
-
setTypeExpression
-
getNameExpression
-
setNameExpression
-
getParameterExpressions
-
accept
- Specified by:
accept
in classTypeInitialiser
-