Package org.eclipse.epsilon.eol.dom
Class AnnotatableModuleElement
java.lang.Object
org.eclipse.epsilon.common.module.AbstractModuleElement
org.eclipse.epsilon.eol.dom.AnnotatableModuleElement
- All Implemented Interfaces:
ModuleElement
- Direct Known Subclasses:
Column,ConstraintContext,DatasetRule,FlockConstruct,Grid,NamedRule,NestedFrom,Operation,Properties,Reference
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidaccept(IEolVisitor visitor) voidgetAnnotation(String name) protected List<Annotation>getAnnotations(String name) getAnnotationsValues(String name, IEolContext context) booleangetBooleanAnnotationValue(String name, IEolContext context) booleangetBooleanAnnotationValue(String name, IEolContext context, boolean ifNotExists, boolean ifNoValue) booleangetBooleanAnnotationValue(String name, IEolContext context, Supplier<? extends Variable[]> variables) booleangetBooleanAnnotationValue(String name, IEolContext context, Variable... variables) booleanhasAnnotation(String name) voidsetAnnotationBlock(AnnotationBlock annotationBlock) 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, toString
-
Field Details
-
annotationBlock
-
-
Constructor Details
-
AnnotatableModuleElement
public AnnotatableModuleElement()
-
-
Method Details
-
getAnnotationBlock
-
setAnnotationBlock
-
build
- Specified by:
buildin interfaceModuleElement- Overrides:
buildin classAbstractModuleElement
-
hasAnnotation
-
getAnnotations
-
getAnnotation
-
getBooleanAnnotationValue
public boolean getBooleanAnnotationValue(String name, IEolContext context) throws EolRuntimeException - Throws:
EolRuntimeException
-
getBooleanAnnotationValue
public boolean getBooleanAnnotationValue(String name, IEolContext context, boolean ifNotExists, boolean ifNoValue) throws EolRuntimeException - Throws:
EolRuntimeException
-
getBooleanAnnotationValue
public boolean getBooleanAnnotationValue(String name, IEolContext context, Variable... variables) throws EolRuntimeException - Parameters:
name-context-variables-- Returns:
- Throws:
EolRuntimeException- Since:
- 1.6
-
getBooleanAnnotationValue
public boolean getBooleanAnnotationValue(String name, IEolContext context, Supplier<? extends Variable[]> variables) throws EolRuntimeException - Parameters:
name-context-variables-- Returns:
- Throws:
EolRuntimeException- Since:
- 1.6
-
getAnnotationsValues
public List<Object> getAnnotationsValues(String name, IEolContext context) throws EolRuntimeException - Throws:
EolRuntimeException
-
accept
-