Package org.eclipse.epsilon.erl.dom
Class NamedStatementBlockRule
- java.lang.Object
-
- org.eclipse.epsilon.common.module.AbstractModuleElement
-
- org.eclipse.epsilon.eol.dom.AnnotatableModuleElement
-
- org.eclipse.epsilon.erl.dom.NamedRule
-
- org.eclipse.epsilon.erl.dom.NamedStatementBlockRule
-
- All Implemented Interfaces:
ModuleElement
,IExecutableModuleElement
public class NamedStatementBlockRule extends NamedRule implements IExecutableModuleElement
-
-
Field Summary
Fields Modifier and Type Field Description protected StatementBlock
body
-
Fields inherited from class org.eclipse.epsilon.erl.dom.NamedRule
nameExpression
-
Fields inherited from class org.eclipse.epsilon.eol.dom.AnnotatableModuleElement
annotationBlock
-
-
Constructor Summary
Constructors Constructor Description NamedStatementBlockRule()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
build(AST cst, IModule module)
Return
execute(IEolContext context)
StatementBlock
getBody()
protected AST
getBodyAst(AST cst)
protected AST
getNameAst(AST cst)
void
setBody(StatementBlock body)
-
Methods inherited from class org.eclipse.epsilon.erl.dom.NamedRule
equals, getName, getNameExpression, hashCode, toString
-
Methods inherited from class org.eclipse.epsilon.eol.dom.AnnotatableModuleElement
accept, getAnnotation, getAnnotationBlock, getAnnotations, getAnnotationsValues, getBooleanAnnotationValue, getBooleanAnnotationValue, getBooleanAnnotationValue, getBooleanAnnotationValue, hasAnnotation, setAnnotationBlock
-
Methods inherited from class org.eclipse.epsilon.common.module.AbstractModuleElement
getChildren, getComments, getData, getDebugInfo, getFile, getModule, getParent, getRegion, getUri, 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
-
body
protected StatementBlock body
-
-
Method Detail
-
build
public void build(AST cst, IModule module)
- Specified by:
build
in interfaceModuleElement
- Overrides:
build
in classNamedRule
-
getNameAst
protected AST getNameAst(AST cst)
- Overrides:
getNameAst
in classNamedRule
-
getBody
public StatementBlock getBody()
-
setBody
public void setBody(StatementBlock body)
-
execute
public Return execute(IEolContext context) throws EolRuntimeException
- Specified by:
execute
in interfaceIExecutableModuleElement
- Throws:
EolRuntimeException
-
-