public class Role extends AbstractModuleElement
| Modifier and Type | Field and Description |
|---|---|
protected ExecutableBlock<Boolean> |
activeAst |
protected Cardinality |
cardinality |
protected Domain |
domain |
protected ExecutableBlock<Boolean> |
guard |
protected boolean |
isActiveCache |
protected ArrayList<String> |
names |
protected boolean |
negative |
protected ExecutableBlock<Boolean> |
optionalAst |
protected EolModelElementType |
type |
protected AST |
typeAst |
commentsannotations, column, commentTokens, descendants, extraTokens, imaginary, line, module, properties, region, uri| Constructor and Description |
|---|
Role() |
| Modifier and Type | Method and Description |
|---|---|
void |
build() |
protected List<Object> |
getAll(DynamicList<Object> instances,
IEolContext context) |
Cardinality |
getCardinality() |
Domain |
getDomain() |
ExecutableBlock<Boolean> |
getGuard() |
List<Object> |
getInstances(IEolContext context) |
List<?> |
getModuleElements() |
List<String> |
getNames() |
protected List<Object> |
getNegative(DynamicList<Object> instances,
IEolContext context) |
boolean |
isActive(IEolContext context) |
boolean |
isActive(IEolContext context,
boolean forceRecompute) |
boolean |
isNegative() |
boolean |
isOptional(IEolContext context) |
getComments, getDebugInfocollectDescendants, getAnnotationsAst, getBasename, getChild, getChildren, getColumn, getCommentTokens, getDescendants, getExtraTokens, getFile, getFirstChild, getFourthChild, getLine, getModule, getNextSibling, getNumberOfChildren, getParent, getProperties, getRegion, getSecondChild, getThirdChild, getUri, hasChildren, isImaginary, setAnnotationsAst, setColumn, setCommentTokens, setExtraTokens, setFirstChild, setImaginary, setLine, setModule, setNextSibling, setRegion, setToken, setUri, toExtendedStringTree, toExtendedStringTree, toExtendedStringTreeItemdupNode, getCharPositionInLine, getChildIndex, getText, getToken, getTokenStartIndex, getTokenStopIndex, getType, isNil, setChildIndex, setParent, setTokenStartIndex, setTokenStopIndex, toStringaddChild, addChildren, createChildrenList, deleteChild, freshenParentAndChildIndexes, freshenParentAndChildIndexes, getChildCount, getFirstChildWithType, replaceChildren, sanityCheckParentAndChildIndexes, sanityCheckParentAndChildIndexes, setChild, toStringTreeprotected AST typeAst
protected Domain domain
protected ExecutableBlock<Boolean> guard
protected EolModelElementType type
protected boolean negative
protected Cardinality cardinality
protected ExecutableBlock<Boolean> optionalAst
protected ExecutableBlock<Boolean> activeAst
protected boolean isActiveCache
public void build()
build in class AbstractModuleElementpublic Cardinality getCardinality()
public boolean isActive(IEolContext context) throws EolRuntimeException
EolRuntimeExceptionpublic boolean isActive(IEolContext context, boolean forceRecompute) throws EolRuntimeException
EolRuntimeExceptionpublic boolean isOptional(IEolContext context) throws EolRuntimeException
EolRuntimeExceptionpublic boolean isNegative()
public List<?> getModuleElements()
getModuleElements in interface ModuleElementgetModuleElements in class AbstractModuleElementpublic Domain getDomain()
public ExecutableBlock<Boolean> getGuard()
public List<Object> getInstances(IEolContext context) throws EolRuntimeException
EolRuntimeExceptionprotected List<Object> getAll(DynamicList<Object> instances, IEolContext context)
protected List<Object> getNegative(DynamicList<Object> instances, IEolContext context)
Copyright © 2016. All rights reserved.