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
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
accept
(IEolVisitor visitor) void
getAnnotation
(String name) protected List<Annotation>
getAnnotations
(String name) getAnnotationsValues
(String name, IEolContext context) boolean
getBooleanAnnotationValue
(String name, IEolContext context) boolean
getBooleanAnnotationValue
(String name, IEolContext context, boolean ifNotExists, boolean ifNoValue) boolean
getBooleanAnnotationValue
(String name, IEolContext context, Supplier<? extends Variable[]> variables) boolean
getBooleanAnnotationValue
(String name, IEolContext context, Variable... variables) boolean
hasAnnotation
(String name) void
setAnnotationBlock
(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:
build
in interfaceModuleElement
- Overrides:
build
in 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
-