public class VariableDeclaration extends TypeInitialiser
Modifier and Type | Field and Description |
---|---|
protected boolean |
external |
protected boolean |
instantiate |
protected NameExpression |
nameExpression |
protected List<Expression> |
parameterExpressions |
protected TypeExpression |
typeExpression |
resolvedType
Constructor and Description |
---|
VariableDeclaration() |
VariableDeclaration(NameExpression nameExpression,
TypeExpression typeExpression,
boolean instantiate,
Expression... parameterExpressions) |
Modifier and Type | Method and Description |
---|---|
void |
build(AST cst,
IModule module) |
void |
compile(EolCompilationContext context) |
Object |
execute(IEolContext context) |
String |
getName() |
NameExpression |
getNameExpression() |
List<Expression> |
getParameterExpressions() |
TypeExpression |
getTypeExpression() |
boolean |
isExternal() |
boolean |
isInstantiate() |
void |
setExternal(boolean external) |
void |
setInstantiate(boolean instantiate) |
void |
setNameExpression(NameExpression nameExpression) |
void |
setTypeExpression(TypeExpression typeExpression) |
getModelThatKnowsAboutProperty, initialiseType
getResolvedType, hasResolvedType
getChildren, getComments, getDebugInfo, getFile, getModule, getParent, getRegion, getUri, setModule, setParent, setRegion, setUri
protected List<Expression> parameterExpressions
protected NameExpression nameExpression
protected boolean instantiate
protected boolean external
protected TypeExpression typeExpression
public VariableDeclaration()
public VariableDeclaration(NameExpression nameExpression, TypeExpression typeExpression, boolean instantiate, Expression... parameterExpressions)
public void build(AST cst, IModule module)
build
in interface ModuleElement
build
in class AbstractModuleElement
public Object execute(IEolContext context) throws EolRuntimeException
EolRuntimeException
public void compile(EolCompilationContext context)
public String getName()
public boolean isInstantiate()
public void setInstantiate(boolean instantiate)
public boolean isExternal()
public void setExternal(boolean external)
public TypeExpression getTypeExpression()
public void setTypeExpression(TypeExpression typeExpression)
public NameExpression getNameExpression()
public void setNameExpression(NameExpression nameExpression)
public List<Expression> getParameterExpressions()
Copyright © 2018. All rights reserved.