Package org.eclipse.epsilon.eol.dom
Class TypeExpression
- java.lang.Object
-
- org.eclipse.epsilon.common.module.AbstractModuleElement
-
- org.eclipse.epsilon.eol.dom.AbstractExecutableModuleElement
-
- org.eclipse.epsilon.eol.dom.Expression
-
- org.eclipse.epsilon.eol.dom.TypeExpression
-
- All Implemented Interfaces:
ModuleElement
,IExecutableModuleElement
public class TypeExpression extends Expression
-
-
Field Summary
Fields Modifier and Type Field Description protected String
name
protected StringLiteral
nativeType
protected List<TypeExpression>
parameterTypeExpressions
protected EolType
type
-
Constructor Summary
Constructors Constructor Description TypeExpression()
TypeExpression(String typeName)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description void
accept(IEolVisitor visitor)
void
build(AST cst, IModule module)
EolType
execute(IEolContext context)
String
getName()
StringLiteral
getNativeType()
List<TypeExpression>
getParameterTypeExpressions()
static EolType
getType(String name)
void
setName(String name)
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
-
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface org.eclipse.epsilon.common.module.ModuleElement
getChildren, getComments, getData, getFile, getModule, getParent, getRegion, getUri, setModule, setParent, setRegion, setUri
-
-
-
-
Field Detail
-
type
protected EolType type
-
name
protected String name
-
parameterTypeExpressions
protected List<TypeExpression> parameterTypeExpressions
-
nativeType
protected StringLiteral nativeType
-
-
Constructor Detail
-
TypeExpression
public TypeExpression()
-
TypeExpression
public TypeExpression(String typeName)
-
-
Method Detail
-
build
public void build(AST cst, IModule module)
- Specified by:
build
in interfaceModuleElement
- Overrides:
build
in classAbstractModuleElement
-
execute
public EolType execute(IEolContext context) throws EolRuntimeException
- Throws:
EolRuntimeException
-
getName
public String getName()
-
setName
public void setName(String name)
-
toString
public String toString()
- Overrides:
toString
in classAbstractModuleElement
-
getParameterTypeExpressions
public List<TypeExpression> getParameterTypeExpressions()
-
getNativeType
public StringLiteral getNativeType()
-
accept
public void accept(IEolVisitor visitor)
- Specified by:
accept
in classExpression
-
-