Package org.eclipse.epsilon.eol.dom
Class NameExpression
- 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.NameExpression
-
- All Implemented Interfaces:
ModuleElement
,ICompilableModuleElement
,IExecutableModuleElement
public class NameExpression extends Expression
-
-
Field Summary
Fields Modifier and Type Field Description protected boolean
isTypeName
protected java.lang.String
name
-
Fields inherited from class org.eclipse.epsilon.eol.dom.Expression
resolvedType
-
-
Constructor Summary
Constructors Constructor Description NameExpression()
NameExpression(java.lang.String name)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
build(AST cst, IModule module)
void
compile(IEolCompilationContext context)
java.lang.Object
execute(IEolContext context)
java.lang.Object
execute(IEolContext context, boolean returnVariable)
Variable
getModelElementType(java.lang.String name, IEolContext context)
java.lang.String
getName()
boolean
isTypeName()
void
setName(java.lang.String name)
void
setTypeName(boolean isTypeName)
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
-
-
-
-
Method Detail
-
build
public void build(AST cst, IModule module)
- Specified by:
build
in interfaceModuleElement
- Overrides:
build
in classAbstractModuleElement
-
execute
public java.lang.Object execute(IEolContext context, boolean returnVariable) throws EolRuntimeException
- Throws:
EolRuntimeException
-
execute
public java.lang.Object execute(IEolContext context) throws EolRuntimeException
- Throws:
EolRuntimeException
-
compile
public void compile(IEolCompilationContext context)
-
getModelElementType
public Variable getModelElementType(java.lang.String name, IEolContext context)
-
getName
public java.lang.String getName()
-
setName
public void setName(java.lang.String name)
-
isTypeName
public boolean isTypeName()
-
setTypeName
public void setTypeName(boolean isTypeName)
-
toString
public java.lang.String toString()
- Overrides:
toString
in classAbstractModuleElement
-
-