Package org.eclipse.epsilon.epl.dom
Class Role
java.lang.Object
org.eclipse.epsilon.common.module.AbstractModuleElement
org.eclipse.epsilon.epl.dom.Role
- All Implemented Interfaces:
ModuleElement
-
Field Summary
Modifier and TypeFieldDescriptionprotected ExecutableBlock<Boolean>
protected Cardinality
protected Domain
protected ExecutableBlock<Boolean>
protected Boolean
protected boolean
protected ExecutableBlock<Boolean>
protected EolType
protected TypeExpression
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
getGuard()
getNames()
getType
(IEolContext context) boolean
boolean
isActive
(IEolContext context) boolean
isActive
(IEolContext context, boolean forceRecompute) boolean
boolean
isOptional
(IEolContext context) 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
-
names
-
typeExpression
-
domain
-
type
-
guard
-
optionalAst
-
activeAst
-
cardinality
-
negative
protected boolean negative -
isActiveCache
-
-
Constructor Details
-
Role
public Role()
-
-
Method Details
-
build
- Specified by:
build
in interfaceModuleElement
- Overrides:
build
in classAbstractModuleElement
-
getCardinality
-
hasActiveAst
public boolean hasActiveAst() -
isActive
- Throws:
EolRuntimeException
-
isActive
- Throws:
EolRuntimeException
-
isOptional
- Throws:
EolRuntimeException
-
isNegative
public boolean isNegative() -
getNames
-
getDomain
-
getGuard
-
getType
- Throws:
EolRuntimeException
-