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 booleanprotected booleanprotected NameExpressionprotected List<Expression> protected TypeExpression -
Constructor Summary
ConstructorsConstructorDescriptionVariableDeclaration(NameExpression nameExpression, TypeExpression typeExpression, boolean instantiate, Expression... parameterExpressions) -
Method Summary
Modifier and TypeMethodDescriptionvoidaccept(IEolVisitor visitor) voidexecute(IEolContext context) getName()booleanbooleanvoidsetExternal(boolean external) voidsetInstantiate(boolean instantiate) voidsetNameExpression(NameExpression nameExpression) voidsetTypeExpression(TypeExpression typeExpression) Methods inherited from class org.eclipse.epsilon.eol.dom.TypeInitialiser
initialiseTypeMethods inherited from class org.eclipse.epsilon.common.module.AbstractModuleElement
equals, getChildren, getComments, getData, getDebugInfo, getFile, getModule, getParent, getRegion, getUri, hashCode, setModule, setParent, setRegion, setUri, toStringMethods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods 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:
buildin interfaceModuleElement- Overrides:
buildin 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:
acceptin classTypeInitialiser
-