Package org.eclipse.epsilon.eol.dom
Class LiteralExpression<T>
- 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.LiteralExpression<T>
-
- All Implemented Interfaces:
ModuleElement
,IExecutableModuleElement
- Direct Known Subclasses:
BooleanLiteral
,CollectionLiteralExpression
,EnumerationLiteralExpression
,IntegerLiteral
,MapLiteralExpression
,RealLiteral
,StringLiteral
public abstract class LiteralExpression<T> extends Expression
-
-
Constructor Summary
Constructors Constructor Description LiteralExpression()
LiteralExpression(T value)
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description abstract void
accept(IEolVisitor visitor)
T
execute(IEolContext context)
T
getValue()
void
setValue(T value)
-
Methods inherited from class org.eclipse.epsilon.common.module.AbstractModuleElement
build, equals, getChildren, getComments, getData, getDebugInfo, getFile, getModule, getParent, getRegion, getUri, hashCode, setModule, setParent, setRegion, setUri, toString
-
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
build, getChildren, getComments, getData, getFile, getModule, getParent, getRegion, getUri, setModule, setParent, setRegion, setUri
-
-
-
-
Field Detail
-
value
protected T value
-
-
Constructor Detail
-
LiteralExpression
public LiteralExpression()
-
LiteralExpression
public LiteralExpression(T value)
-
-
Method Detail
-
getValue
public T getValue()
-
setValue
public void setValue(T value)
-
execute
public T execute(IEolContext context) throws EolRuntimeException
- Throws:
EolRuntimeException
-
accept
public abstract void accept(IEolVisitor visitor)
- Specified by:
accept
in classExpression
-
-