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
,IExecutableModuleElement
public class NameExpression extends Expression
-
-
Constructor Summary
Constructors Constructor Description NameExpression()
NameExpression(String name)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
accept(IEolVisitor visitor)
void
build(AST cst, IModule module)
Object
execute(IEolContext context)
Object
execute(IEolContext context, boolean returnVariable)
Variable
getModelElementType(String name, IEolContext context)
String
getName()
boolean
isTypeName()
void
setName(String name)
void
setTypeName(boolean isTypeName)
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
-
name
protected String name
-
isTypeName
protected boolean isTypeName
-
-
Constructor Detail
-
NameExpression
public NameExpression()
-
NameExpression
public NameExpression(String name)
-
-
Method Detail
-
build
public void build(AST cst, IModule module)
- Specified by:
build
in interfaceModuleElement
- Overrides:
build
in classAbstractModuleElement
-
execute
public Object execute(IEolContext context, boolean returnVariable) throws EolRuntimeException
- Throws:
EolRuntimeException
-
execute
public Object execute(IEolContext context) throws EolRuntimeException
- Throws:
EolRuntimeException
-
getModelElementType
public Variable getModelElementType(String name, IEolContext context)
-
getName
public String getName()
-
setName
public void setName(String name)
-
isTypeName
public boolean isTypeName()
-
setTypeName
public void setTypeName(boolean isTypeName)
-
toString
public String toString()
- Overrides:
toString
in classAbstractModuleElement
-
accept
public void accept(IEolVisitor visitor)
- Specified by:
accept
in classExpression
-
-