Class ASTSetEnumerationTOP
- java.lang.Object
-
- de.monticore.ast.ASTCNode
-
- de.monticore.ocl.setexpressions._ast.ASTSetEnumerationTOP
-
- All Implemented Interfaces:
de.monticore.ast.ASTNode,ASTExpression,ASTExpressionsBasisNode,ASTSetExpressionsNode,java.lang.Cloneable
- Direct Known Subclasses:
ASTSetEnumeration
public abstract class ASTSetEnumerationTOP extends de.monticore.ast.ASTCNode implements ASTExpression, ASTSetExpressionsNode
-
-
Field Summary
Fields Modifier and Type Field Description protected ISetExpressionsScopeenclosingScopeprotected java.util.Optional<java.lang.String>openingBracketprotected java.util.Optional<java.lang.String>setprotected java.util.List<ASTSetCollectionItem>setCollectionItems
-
Constructor Summary
Constructors Modifier Constructor Description protectedASTSetEnumerationTOP()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected ASTSetEnumeration_construct()voidaccept(ExpressionsBasisTraverser visitor)Entry point for the Visitor pattern.voidaccept(MCLiteralsBasisTraverser visitor)Entry point for the Visitor pattern.voidaccept(MCBasicsTraverser visitor)Entry point for the Visitor pattern.voidaccept(SetExpressionsTraverser visitor)Entry point for the Visitor pattern.voidaccept(BasicSymbolsTraverser visitor)Entry point for the Visitor pattern.voidaccept(MCBasicTypesTraverser visitor)Entry point for the Visitor pattern.voidaccept(de.monticore.visitor.ITraverser visitor)Entry point for the Visitor pattern.booleanaddAllSetCollectionItems(int index, java.util.Collection<? extends ASTSetCollectionItem> collection)booleanaddAllSetCollectionItems(java.util.Collection<? extends ASTSetCollectionItem> collection)voidaddSetCollectionItem(int index, ASTSetCollectionItem element)booleanaddSetCollectionItem(ASTSetCollectionItem element)voidclearSetCollectionItems()booleancontainsAllSetCollectionItems(java.util.Collection<?> collection)booleancontainsSetCollectionItem(java.lang.Object element)ASTSetEnumerationdeepClone()ASTSetEnumerationdeepClone(ASTSetEnumeration result)booleandeepEquals(java.lang.Object o)booleandeepEquals(java.lang.Object o, boolean forceSameOrder)booleandeepEqualsWithComments(java.lang.Object o)booleandeepEqualsWithComments(java.lang.Object o, boolean forceSameOrder)booleanequalAttributes(java.lang.Object o)booleanequalsSetCollectionItems(java.lang.Object o)booleanequalsWithComments(java.lang.Object o)de.monticore.interpreter.Valueevaluate(de.monticore.interpreter.ModelInterpreter interpreter)de.monticore.interpreter.Valueevaluate(ISetExpressionsInterpreter interpreter)voidforEachSetCollectionItems(java.util.function.Consumer<? super ASTSetCollectionItem> action)ISetExpressionsScopegetEnclosingScope()java.lang.StringgetOpeningBracket()java.lang.StringgetSet()ASTSetCollectionItemgetSetCollectionItem(int index)java.util.List<ASTSetCollectionItem>getSetCollectionItemList()inthashCodeSetCollectionItems()intindexOfSetCollectionItem(java.lang.Object element)booleanisEmptySetCollectionItems()booleanisPresentOpeningBracket()booleanisPresentSet()java.util.Iterator<ASTSetCollectionItem>iteratorSetCollectionItems()intlastIndexOfSetCollectionItem(java.lang.Object element)java.util.ListIterator<ASTSetCollectionItem>listIteratorSetCollectionItems()java.util.ListIterator<ASTSetCollectionItem>listIteratorSetCollectionItems(int index)java.util.stream.Stream<ASTSetCollectionItem>parallelStreamSetCollectionItems()booleanremoveAllSetCollectionItems(java.util.Collection<?> collection)booleanremoveIfSetCollectionItem(java.util.function.Predicate<? super ASTSetCollectionItem> filter)ASTSetCollectionItemremoveSetCollectionItem(int index)booleanremoveSetCollectionItem(java.lang.Object element)voidreplaceAllSetCollectionItems(java.util.function.UnaryOperator<ASTSetCollectionItem> operator)booleanretainAllSetCollectionItems(java.util.Collection<?> collection)voidsetEnclosingScope(IExpressionsBasisScope enclosingScope)voidsetEnclosingScope(IMCLiteralsBasisScope enclosingScope)voidsetEnclosingScope(IMCBasicsScope enclosingScope)voidsetEnclosingScope(ISetExpressionsScope enclosingScope)voidsetEnclosingScope(IBasicSymbolsScope enclosingScope)voidsetEnclosingScope(IMCBasicTypesScope enclosingScope)voidsetOpeningBracket(java.lang.String openingBracket)voidsetOpeningBracketAbsent()voidsetSet(java.lang.String set)voidsetSetAbsent()ASTSetCollectionItemsetSetCollectionItem(int index, ASTSetCollectionItem element)voidsetSetCollectionItemList(java.util.List<ASTSetCollectionItem> setCollectionItems)intsizeSetCollectionItems()voidsortSetCollectionItems(java.util.Comparator<? super ASTSetCollectionItem> comparator)java.util.Spliterator<ASTSetCollectionItem>spliteratorSetCollectionItems()java.util.stream.Stream<ASTSetCollectionItem>streamSetCollectionItems()java.util.List<ASTSetCollectionItem>subListSetCollectionItems(int start, int end)java.lang.Object[]toArraySetCollectionItems()ASTSetCollectionItem[]toArraySetCollectionItems(ASTSetCollectionItem[] array)-
Methods inherited from class de.monticore.ast.ASTCNode
add_PostComment, add_PostComment, add_PreComment, add_PreComment, addAll_PostComments, addAll_PostComments, addAll_PreComments, addAll_PreComments, clear_PostComments, clear_PreComments, contains_PostComment, contains_PreComment, containsAll_PostComments, containsAll_PreComments, equals_PostComments, equals_PreComments, forEach_PostComments, forEach_PreComments, get_PostComment, get_PostCommentList, get_PreComment, get_PreCommentList, get_SourcePositionEnd, get_SourcePositionStart, hashCode_PostComments, hashCode_PreComments, indexOf_PostComment, indexOf_PreComment, isEmpty_PostComments, isEmpty_PreComments, isPresent_SourcePositionEnd, isPresent_SourcePositionStart, iterator_PostComments, iterator_PreComments, lastIndexOf_PostComment, lastIndexOf_PreComment, listIterator_PostComments, listIterator_PostComments, listIterator_PreComments, listIterator_PreComments, parallelStream_PostComments, parallelStream_PreComments, remove_PostComment, remove_PostComment, remove_PreComment, remove_PreComment, removeAll_PostComments, removeAll_PreComments, removeIf_PostComment, removeIf_PreComment, replaceAll_PostComments, replaceAll_PreComments, retainAll_PostComments, retainAll_PreComments, set_PostComment, set_PostCommentList, set_PreComment, set_PreCommentList, set_SourcePositionEnd, set_SourcePositionEndAbsent, set_SourcePositionStart, set_SourcePositionStartAbsent, size_PostComments, size_PreComments, sort_PostComments, sort_PreComments, spliterator_PostComments, spliterator_PreComments, stream_PostComments, stream_PreComments, subList_PostComments, subList_PreComments, toArray_PostComments, toArray_PostComments, toArray_PreComments, toArray_PreComments
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface de.monticore.ast.ASTNode
add_PostComment, add_PostComment, add_PreComment, add_PreComment, addAll_PostComments, addAll_PostComments, addAll_PreComments, addAll_PreComments, clear_PostComments, clear_PreComments, contains_PostComment, contains_PreComment, containsAll_PostComments, containsAll_PreComments, equals_PostComments, equals_PreComments, forEach_PostComments, forEach_PreComments, get_PostComment, get_PostCommentList, get_PreComment, get_PreCommentList, get_SourcePositionEnd, get_SourcePositionStart, hashCode_PostComments, hashCode_PreComments, indexOf_PostComment, indexOf_PreComment, isEmpty_PostComments, isEmpty_PreComments, isPresent_SourcePositionEnd, isPresent_SourcePositionStart, iterator_PostComments, iterator_PreComments, lastIndexOf_PostComment, lastIndexOf_PreComment, listIterator_PostComments, listIterator_PostComments, listIterator_PreComments, listIterator_PreComments, parallelStream_PostComments, parallelStream_PreComments, remove_PostComment, remove_PostComment, remove_PreComment, remove_PreComment, removeAll_PostComments, removeAll_PreComments, removeIf_PostComment, removeIf_PreComment, replaceAll_PostComments, replaceAll_PreComments, retainAll_PostComments, retainAll_PreComments, set_PostComment, set_PostCommentList, set_PreComment, set_PreCommentList, set_SourcePositionEnd, set_SourcePositionEndAbsent, set_SourcePositionStart, set_SourcePositionStartAbsent, size_PostComments, size_PreComments, sort_PostComments, sort_PreComments, spliterator_PostComments, spliterator_PreComments, stream_PostComments, stream_PreComments, subList_PostComments, subList_PreComments, toArray_PostComments, toArray_PostComments, toArray_PreComments, toArray_PreComments
-
-
-
-
Field Detail
-
setCollectionItems
protected java.util.List<ASTSetCollectionItem> setCollectionItems
-
set
protected java.util.Optional<java.lang.String> set
-
openingBracket
protected java.util.Optional<java.lang.String> openingBracket
-
enclosingScope
protected ISetExpressionsScope enclosingScope
-
-
Method Detail
-
deepEquals
public boolean deepEquals(java.lang.Object o)
- Specified by:
deepEqualsin interfaceASTExpression- Specified by:
deepEqualsin interfacede.monticore.ast.ASTNode
-
deepEquals
public boolean deepEquals(java.lang.Object o, boolean forceSameOrder)- Specified by:
deepEqualsin interfaceASTExpression- Specified by:
deepEqualsin interfacede.monticore.ast.ASTNode
-
deepEqualsWithComments
public boolean deepEqualsWithComments(java.lang.Object o)
- Specified by:
deepEqualsWithCommentsin interfaceASTExpression- Specified by:
deepEqualsWithCommentsin interfacede.monticore.ast.ASTNode
-
deepEqualsWithComments
public boolean deepEqualsWithComments(java.lang.Object o, boolean forceSameOrder)- Specified by:
deepEqualsWithCommentsin interfaceASTExpression- Specified by:
deepEqualsWithCommentsin interfacede.monticore.ast.ASTNode
-
equalAttributes
public boolean equalAttributes(java.lang.Object o)
- Specified by:
equalAttributesin interfaceASTExpression- Specified by:
equalAttributesin interfacede.monticore.ast.ASTNode
-
equalsWithComments
public boolean equalsWithComments(java.lang.Object o)
- Specified by:
equalsWithCommentsin interfaceASTExpression- Specified by:
equalsWithCommentsin interfacede.monticore.ast.ASTNode
-
deepClone
public ASTSetEnumeration deepClone()
- Specified by:
deepClonein interfaceASTExpression- Specified by:
deepClonein interfacede.monticore.ast.ASTNode- Specified by:
deepClonein classde.monticore.ast.ASTCNode
-
deepClone
public ASTSetEnumeration deepClone(ASTSetEnumeration result)
-
containsSetCollectionItem
public boolean containsSetCollectionItem(java.lang.Object element)
-
containsAllSetCollectionItems
public boolean containsAllSetCollectionItems(java.util.Collection<?> collection)
-
isEmptySetCollectionItems
public boolean isEmptySetCollectionItems()
-
iteratorSetCollectionItems
public java.util.Iterator<ASTSetCollectionItem> iteratorSetCollectionItems()
-
sizeSetCollectionItems
public int sizeSetCollectionItems()
-
toArraySetCollectionItems
public ASTSetCollectionItem[] toArraySetCollectionItems(ASTSetCollectionItem[] array)
-
toArraySetCollectionItems
public java.lang.Object[] toArraySetCollectionItems()
-
spliteratorSetCollectionItems
public java.util.Spliterator<ASTSetCollectionItem> spliteratorSetCollectionItems()
-
streamSetCollectionItems
public java.util.stream.Stream<ASTSetCollectionItem> streamSetCollectionItems()
-
parallelStreamSetCollectionItems
public java.util.stream.Stream<ASTSetCollectionItem> parallelStreamSetCollectionItems()
-
getSetCollectionItem
public ASTSetCollectionItem getSetCollectionItem(int index)
-
indexOfSetCollectionItem
public int indexOfSetCollectionItem(java.lang.Object element)
-
lastIndexOfSetCollectionItem
public int lastIndexOfSetCollectionItem(java.lang.Object element)
-
equalsSetCollectionItems
public boolean equalsSetCollectionItems(java.lang.Object o)
-
hashCodeSetCollectionItems
public int hashCodeSetCollectionItems()
-
listIteratorSetCollectionItems
public java.util.ListIterator<ASTSetCollectionItem> listIteratorSetCollectionItems()
-
listIteratorSetCollectionItems
public java.util.ListIterator<ASTSetCollectionItem> listIteratorSetCollectionItems(int index)
-
subListSetCollectionItems
public java.util.List<ASTSetCollectionItem> subListSetCollectionItems(int start, int end)
-
getSetCollectionItemList
public java.util.List<ASTSetCollectionItem> getSetCollectionItemList()
-
getSet
public java.lang.String getSet()
-
isPresentSet
public boolean isPresentSet()
-
getOpeningBracket
public java.lang.String getOpeningBracket()
-
isPresentOpeningBracket
public boolean isPresentOpeningBracket()
-
clearSetCollectionItems
public void clearSetCollectionItems()
-
addSetCollectionItem
public boolean addSetCollectionItem(ASTSetCollectionItem element)
-
addAllSetCollectionItems
public boolean addAllSetCollectionItems(java.util.Collection<? extends ASTSetCollectionItem> collection)
-
removeSetCollectionItem
public boolean removeSetCollectionItem(java.lang.Object element)
-
removeAllSetCollectionItems
public boolean removeAllSetCollectionItems(java.util.Collection<?> collection)
-
retainAllSetCollectionItems
public boolean retainAllSetCollectionItems(java.util.Collection<?> collection)
-
removeIfSetCollectionItem
public boolean removeIfSetCollectionItem(java.util.function.Predicate<? super ASTSetCollectionItem> filter)
-
forEachSetCollectionItems
public void forEachSetCollectionItems(java.util.function.Consumer<? super ASTSetCollectionItem> action)
-
addSetCollectionItem
public void addSetCollectionItem(int index, ASTSetCollectionItem element)
-
addAllSetCollectionItems
public boolean addAllSetCollectionItems(int index, java.util.Collection<? extends ASTSetCollectionItem> collection)
-
removeSetCollectionItem
public ASTSetCollectionItem removeSetCollectionItem(int index)
-
setSetCollectionItem
public ASTSetCollectionItem setSetCollectionItem(int index, ASTSetCollectionItem element)
-
replaceAllSetCollectionItems
public void replaceAllSetCollectionItems(java.util.function.UnaryOperator<ASTSetCollectionItem> operator)
-
sortSetCollectionItems
public void sortSetCollectionItems(java.util.Comparator<? super ASTSetCollectionItem> comparator)
-
setSetCollectionItemList
public void setSetCollectionItemList(java.util.List<ASTSetCollectionItem> setCollectionItems)
-
setSet
public void setSet(java.lang.String set)
-
setSetAbsent
public void setSetAbsent()
-
setOpeningBracket
public void setOpeningBracket(java.lang.String openingBracket)
-
setOpeningBracketAbsent
public void setOpeningBracketAbsent()
-
accept
public void accept(SetExpressionsTraverser visitor)
Entry point for the Visitor pattern. Cf. MontiCore handbook chapter 8.- Specified by:
acceptin interfaceASTSetExpressionsNode- Parameters:
visitor- the visitor to dispatch to
-
accept
public void accept(ExpressionsBasisTraverser visitor)
Entry point for the Visitor pattern. Cf. MontiCore handbook chapter 8.- Specified by:
acceptin interfaceASTExpressionsBasisNode- Parameters:
visitor- the visitor to dispatch to
-
accept
public void accept(MCBasicTypesTraverser visitor)
Entry point for the Visitor pattern. Cf. MontiCore handbook chapter 8.- Parameters:
visitor- the visitor to dispatch to
-
accept
public void accept(BasicSymbolsTraverser visitor)
Entry point for the Visitor pattern. Cf. MontiCore handbook chapter 8.- Parameters:
visitor- the visitor to dispatch to
-
accept
public void accept(MCBasicsTraverser visitor)
Entry point for the Visitor pattern. Cf. MontiCore handbook chapter 8.- Parameters:
visitor- the visitor to dispatch to
-
accept
public void accept(MCLiteralsBasisTraverser visitor)
Entry point for the Visitor pattern. Cf. MontiCore handbook chapter 8.- Parameters:
visitor- the visitor to dispatch to
-
accept
public void accept(de.monticore.visitor.ITraverser visitor)
Entry point for the Visitor pattern. Cf. MontiCore handbook chapter 8.- Specified by:
acceptin interfacede.monticore.ast.ASTNode- Parameters:
visitor- the visitor to dispatch to
-
_construct
protected ASTSetEnumeration _construct()
-
getEnclosingScope
public ISetExpressionsScope getEnclosingScope()
- Specified by:
getEnclosingScopein interfaceASTExpression- Specified by:
getEnclosingScopein interfacede.monticore.ast.ASTNode
-
setEnclosingScope
public void setEnclosingScope(ISetExpressionsScope enclosingScope)
-
setEnclosingScope
public void setEnclosingScope(IExpressionsBasisScope enclosingScope)
- Specified by:
setEnclosingScopein interfaceASTExpression
-
setEnclosingScope
public void setEnclosingScope(IMCBasicTypesScope enclosingScope)
-
setEnclosingScope
public void setEnclosingScope(IBasicSymbolsScope enclosingScope)
-
setEnclosingScope
public void setEnclosingScope(IMCBasicsScope enclosingScope)
- Specified by:
setEnclosingScopein interfaceASTExpression
-
setEnclosingScope
public void setEnclosingScope(IMCLiteralsBasisScope enclosingScope)
- Specified by:
setEnclosingScopein interfaceASTExpression
-
evaluate
public de.monticore.interpreter.Value evaluate(ISetExpressionsInterpreter interpreter)
-
evaluate
public de.monticore.interpreter.Value evaluate(de.monticore.interpreter.ModelInterpreter interpreter)
- Specified by:
evaluatein interfacede.monticore.ast.ASTNode
-
-