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 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
build(AST cst, IModule module)
void
clearCache()
Clear any cached information.void
compile(IEolCompilationContext context)
void
compile(IEolCompilationContext context, boolean createVariable)
EolType
getCompilationType()
java.lang.String
getName()
NameExpression
getNameExpression()
EolType
getType(IEolContext context)
TypeExpression
getTypeExpression()
java.lang.String
getTypeName()
boolean
isExplicitlyTyped()
void
setNameExpression(NameExpression nameExpression)
void
setTypeExpression(TypeExpression typeExpression)
java.lang.String
toString()
-
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:
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 java.lang.String getName()
-
getTypeName
public java.lang.String getTypeName()
-
toString
public java.lang.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.
-
compile
public void compile(IEolCompilationContext context)
- Specified by:
compile
in interfaceICompilableModuleElement
-
compile
public void compile(IEolCompilationContext context, boolean createVariable)
-
getCompilationType
public EolType getCompilationType()
-
isExplicitlyTyped
public boolean isExplicitlyTyped()
-
-