Package org.eclipse.epsilon.eol.dom
Class ExecutableAnnotation
- java.lang.Object
-
- org.eclipse.epsilon.common.module.AbstractModuleElement
-
- org.eclipse.epsilon.eol.dom.Annotation
-
- org.eclipse.epsilon.eol.dom.ExecutableAnnotation
-
- All Implemented Interfaces:
ModuleElement
,IExecutableModuleElement
public class ExecutableAnnotation extends Annotation implements IExecutableModuleElement
-
-
Field Summary
Fields Modifier and Type Field Description protected Expression
expression
-
Fields inherited from class org.eclipse.epsilon.eol.dom.Annotation
name
-
-
Constructor Summary
Constructors Constructor Description ExecutableAnnotation()
-
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)
Expression
getExpression()
Object
getValue(IEolContext context)
boolean
hasValue()
void
setExpression(Expression expression)
-
Methods inherited from class org.eclipse.epsilon.eol.dom.Annotation
getName, setName, 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
-
expression
protected Expression expression
-
-
Method Detail
-
build
public void build(AST cst, IModule module)
- Specified by:
build
in interfaceModuleElement
- Overrides:
build
in classAbstractModuleElement
-
hasValue
public boolean hasValue()
- Specified by:
hasValue
in classAnnotation
-
getValue
public Object getValue(IEolContext context) throws EolRuntimeException
- Specified by:
getValue
in classAnnotation
- Throws:
EolRuntimeException
-
execute
public Object execute(IEolContext context) throws EolRuntimeException
- Specified by:
execute
in interfaceIExecutableModuleElement
- Throws:
EolRuntimeException
-
getExpression
public Expression getExpression()
-
setExpression
public void setExpression(Expression expression)
-
accept
public void accept(IEolVisitor visitor)
- Specified by:
accept
in classAnnotation
-
-