Package org.eclipse.epsilon.epl.dom
Class Pattern
- java.lang.Object
-
- org.eclipse.epsilon.common.module.AbstractModuleElement
-
- org.eclipse.epsilon.eol.dom.AnnotatableModuleElement
-
- org.eclipse.epsilon.erl.dom.NamedRule
-
- org.eclipse.epsilon.epl.dom.Pattern
-
- All Implemented Interfaces:
ModuleElement
public class Pattern extends NamedRule
-
-
Field Summary
Fields Modifier and Type Field Description protected ExecutableBlock<Void>
do_
protected int
level
protected ExecutableBlock<Boolean>
match
protected ExecutableBlock<Void>
noMatch
protected ExecutableBlock<Void>
onMatch
protected List<Role>
roles
-
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 Pattern()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
build(AST cst, IModule module)
ExecutableBlock<Void>
getDo()
int
getLevel()
ExecutableBlock<Boolean>
getMatch()
ExecutableBlock<Void>
getNoMatch()
ExecutableBlock<Void>
getOnMatch()
List<Role>
getRoles()
void
setDo(ExecutableBlock<Void> do_)
void
setLevel(int level)
void
setMatch(ExecutableBlock<Boolean> match)
void
setNoMatch(ExecutableBlock<Void> noMatch)
void
setOnMatch(ExecutableBlock<Void> onMatch)
-
Methods inherited from class org.eclipse.epsilon.erl.dom.NamedRule
equals, getName, getNameAst, 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
-
-
-
-
Field Detail
-
match
protected ExecutableBlock<Boolean> match
-
do_
protected ExecutableBlock<Void> do_
-
noMatch
protected ExecutableBlock<Void> noMatch
-
onMatch
protected ExecutableBlock<Void> onMatch
-
level
protected int level
-
-
Method Detail
-
build
public void build(AST cst, IModule module)
- Specified by:
build
in interfaceModuleElement
- Overrides:
build
in classNamedRule
-
getOnMatch
public ExecutableBlock<Void> getOnMatch()
-
setOnMatch
public void setOnMatch(ExecutableBlock<Void> onMatch)
-
getLevel
public int getLevel()
-
setLevel
public void setLevel(int level)
-
getDo
public ExecutableBlock<Void> getDo()
-
setDo
public void setDo(ExecutableBlock<Void> do_)
-
getMatch
public ExecutableBlock<Boolean> getMatch()
-
setMatch
public void setMatch(ExecutableBlock<Boolean> match)
-
getNoMatch
public ExecutableBlock<Void> getNoMatch()
-
setNoMatch
public void setNoMatch(ExecutableBlock<Void> noMatch)
-
-