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
,ICompilableModuleElement
,IExecutableModuleElement
public class TypeExpression extends Expression
-
-
Field Summary
Fields Modifier and Type Field Description protected java.lang.String
name
protected StringLiteral
nativeType
protected java.util.List<TypeExpression>
parameterTypeExpressions
protected EolType
type
-
Fields inherited from class org.eclipse.epsilon.eol.dom.Expression
resolvedType
-
-
Constructor Summary
Constructors Constructor Description TypeExpression()
TypeExpression(java.lang.String typeName)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description void
build(AST cst, IModule module)
void
compile(IEolCompilationContext context)
EolType
execute(IEolContext context)
EolType
getCompilationType()
java.lang.String
getName()
StringLiteral
getNativeType()
java.util.List<TypeExpression>
getParameterTypeExpressions()
static EolType
getType(java.lang.String name)
void
setName(java.lang.String name)
java.lang.String
toString()
-
Methods inherited from class org.eclipse.epsilon.eol.dom.Expression
getResolvedType, hasResolvedType
-
Methods inherited from class org.eclipse.epsilon.common.module.AbstractModuleElement
equals, getChildren, getComments, 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, getFile, getModule, getParent, getRegion, getUri, setModule, setParent, setRegion, setUri
-
-
-
-
Field Detail
-
type
protected EolType type
-
name
protected java.lang.String name
-
parameterTypeExpressions
protected java.util.List<TypeExpression> parameterTypeExpressions
-
nativeType
protected StringLiteral nativeType
-
-
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
-
compile
public void compile(IEolCompilationContext context)
-
getName
public java.lang.String getName()
-
getType
public static EolType getType(java.lang.String name)
- Parameters:
name
-- Returns:
- Since:
- 2.1
-
setName
public void setName(java.lang.String name)
-
getCompilationType
public EolType getCompilationType()
-
toString
public java.lang.String toString()
- Overrides:
toString
in classAbstractModuleElement
-
getParameterTypeExpressions
public java.util.List<TypeExpression> getParameterTypeExpressions()
-
getNativeType
public StringLiteral getNativeType()
-
-