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
FieldsModifier and TypeFieldDescriptionprotected ExecutableBlock<Boolean>protected Cardinalityprotected Domainprotected ExecutableBlock<Boolean>protected Booleanprotected booleanprotected ExecutableBlock<Boolean>protected EolTypeprotected TypeExpression -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidgetGuard()getNames()getType(IEolContext context) booleanbooleanisActive(IEolContext context) booleanisActive(IEolContext context, boolean forceRecompute) booleanbooleanisOptional(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:
buildin interfaceModuleElement- Overrides:
buildin 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
-