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,ICompilableModuleElement
public class Parameter extends AbstractModuleElement implements ICompilableModuleElement
-
-
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 voidbuild(AST cst, IModule module)voidclearCache()Clear any cached information.voidcompile(IEolCompilationContext context)voidcompile(IEolCompilationContext context, boolean createVariable)EolTypegetCompilationType()java.lang.StringgetName()NameExpressiongetNameExpression()EolTypegetType(IEolContext context)TypeExpressiongetTypeExpression()java.lang.StringgetTypeName()booleanisExplicitlyTyped()voidsetNameExpression(NameExpression nameExpression)voidsetTypeExpression(TypeExpression typeExpression)java.lang.StringtoString()-
Methods inherited from class org.eclipse.epsilon.common.module.AbstractModuleElement
equals, getChildren, getComments, 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 java.lang.String getName()
-
getTypeName
public java.lang.String getTypeName()
-
toString
public java.lang.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.
-
compile
public void compile(IEolCompilationContext context)
- Specified by:
compilein interfaceICompilableModuleElement
-
compile
public void compile(IEolCompilationContext context, boolean createVariable)
-
getCompilationType
public EolType getCompilationType()
-
isExplicitlyTyped
public boolean isExplicitlyTyped()
-
-