Package org.eclipse.epsilon.eol.dom
Class Parameter
- java.lang.Object
-
- org.eclipse.epsilon.common.module.AbstractModuleElement
-
- org.eclipse.epsilon.eol.dom.Parameter
-
- All Implemented Interfaces:
ModuleElement
public class Parameter extends AbstractModuleElement
-
-
Field Summary
Fields Modifier and Type Field Description protected NameExpression
nameExpression
protected EolType
type
protected TypeExpression
typeExpression
-
Constructor Summary
Constructors Constructor Description Parameter()
Parameter(NameExpression nameExpression)
Parameter(NameExpression nameExpression, TypeExpression typeExpression)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
accept(IEolVisitor visitor)
void
build(AST cst, IModule module)
void
clearCache()
Clear any cached information.String
getName()
NameExpression
getNameExpression()
EolType
getType(IEolContext context)
TypeExpression
getTypeExpression()
String
getTypeName()
boolean
isExplicitlyTyped()
void
setNameExpression(NameExpression nameExpression)
void
setTypeExpression(TypeExpression typeExpression)
String
toString()
-
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
-
-
-
-
Field Detail
-
nameExpression
protected NameExpression nameExpression
-
typeExpression
protected TypeExpression typeExpression
-
type
protected EolType type
-
-
Constructor Detail
-
Parameter
public Parameter()
-
Parameter
public Parameter(NameExpression nameExpression)
-
Parameter
public Parameter(NameExpression nameExpression, TypeExpression typeExpression)
-
-
Method Detail
-
build
public void build(AST cst, IModule module)
- Specified by:
build
in interfaceModuleElement
- Overrides:
build
in classAbstractModuleElement
-
getTypeExpression
public TypeExpression getTypeExpression()
-
setTypeExpression
public void setTypeExpression(TypeExpression typeExpression)
-
getNameExpression
public NameExpression getNameExpression()
-
setNameExpression
public void setNameExpression(NameExpression nameExpression)
-
getName
public String getName()
-
getTypeName
public String getTypeName()
-
toString
public String toString()
- Overrides:
toString
in classAbstractModuleElement
-
getType
public EolType getType(IEolContext context) throws EolRuntimeException
- Throws:
EolRuntimeException
-
clearCache
public void clearCache()
Clear any cached information. This is useful for running EUnit, which has to rerun the same EOL script with different sets of models without reparsing it.
-
isExplicitlyTyped
public boolean isExplicitlyTyped()
-
accept
public void accept(IEolVisitor visitor)
-
-