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 NameExpressionnameExpressionprotected EolTypetypeprotected TypeExpressiontypeExpression
-
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 voidaccept(IEolVisitor visitor)voidbuild(AST cst, IModule module)voidclearCache()Clear any cached information.StringgetName()NameExpressiongetNameExpression()EolTypegetType(IEolContext context)TypeExpressiongetTypeExpression()StringgetTypeName()booleanisExplicitlyTyped()voidsetNameExpression(NameExpression nameExpression)voidsetTypeExpression(TypeExpression typeExpression)StringtoString()-
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:
buildin interfaceModuleElement- Overrides:
buildin 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:
toStringin 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)
-
-