Package de.monticore.umlstereotype._ast
Class ASTStereotype
- java.lang.Object
-
- de.monticore.ast.ASTCNode
-
- de.monticore.umlstereotype._ast.ASTStereotype
-
- All Implemented Interfaces:
de.monticore.ast.ASTNode,ASTUMLStereotypeNode,java.lang.Cloneable
public class ASTStereotype extends de.monticore.ast.ASTCNode implements ASTUMLStereotypeNode
-
-
Field Summary
Fields Modifier and Type Field Description protected IUMLStereotypeScopeenclosingScopeprotected java.util.List<ASTStereoValue>values
-
Constructor Summary
Constructors Modifier Constructor Description protectedASTStereotype()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected ASTStereotype_construct()voidaccept(ExpressionsBasisTraverser visitor)Entry point for the Visitor pattern.voidaccept(MCCommonLiteralsTraverser 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(UMLStereotypeTraverser visitor)Entry point for the Visitor pattern.voidaccept(de.monticore.visitor.ITraverser visitor)Entry point for the Visitor pattern.booleanaddAllValues(int index, java.util.Collection<? extends ASTStereoValue> collection)booleanaddAllValues(java.util.Collection<? extends ASTStereoValue> collection)voidaddValues(int index, ASTStereoValue element)booleanaddValues(ASTStereoValue element)voidclearValues()booleancontains(java.lang.String name)booleancontains(java.lang.String name, java.lang.String value)booleancontainsAllValues(java.util.Collection<?> collection)booleancontainsValues(java.lang.Object element)ASTStereotypedeepClone()ASTStereotypedeepClone(ASTStereotype 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)booleanequalsValues(java.lang.Object o)booleanequalsWithComments(java.lang.Object o)de.monticore.interpreter.Valueevaluate(de.monticore.interpreter.ModelInterpreter interpreter)de.monticore.interpreter.Valueevaluate(IUMLStereotypeInterpreter interpreter)voidforEachValues(java.util.function.Consumer<? super ASTStereoValue> action)IUMLStereotypeScopegetEnclosingScope()java.lang.StringgetValue(java.lang.String name)ASTStereoValuegetValues(int index)java.util.List<ASTStereoValue>getValuesList()inthashCodeValues()intindexOfValues(java.lang.Object element)booleanisEmptyValues()java.util.Iterator<ASTStereoValue>iteratorValues()intlastIndexOfValues(java.lang.Object element)java.util.ListIterator<ASTStereoValue>listIteratorValues()java.util.ListIterator<ASTStereoValue>listIteratorValues(int index)java.util.stream.Stream<ASTStereoValue>parallelStreamValues()booleanremoveAllValues(java.util.Collection<?> collection)booleanremoveIfValues(java.util.function.Predicate<? super ASTStereoValue> filter)ASTStereoValueremoveValues(int index)booleanremoveValues(java.lang.Object element)voidreplaceAllValues(java.util.function.UnaryOperator<ASTStereoValue> operator)booleanretainAllValues(java.util.Collection<?> collection)voidsetEnclosingScope(IExpressionsBasisScope enclosingScope)voidsetEnclosingScope(IMCCommonLiteralsScope enclosingScope)voidsetEnclosingScope(IMCLiteralsBasisScope enclosingScope)voidsetEnclosingScope(IMCBasicsScope enclosingScope)voidsetEnclosingScope(IUMLStereotypeScope enclosingScope)ASTStereoValuesetValues(int index, ASTStereoValue element)voidsetValuesList(java.util.List<ASTStereoValue> values)intsizeValues()voidsortValues(java.util.Comparator<? super ASTStereoValue> comparator)java.util.Spliterator<ASTStereoValue>spliteratorValues()java.util.stream.Stream<ASTStereoValue>streamValues()java.util.List<ASTStereoValue>subListValues(int start, int end)java.lang.Object[]toArrayValues()ASTStereoValue[]toArrayValues(ASTStereoValue[] 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
-
values
protected java.util.List<ASTStereoValue> values
-
enclosingScope
protected IUMLStereotypeScope enclosingScope
-
-
Method Detail
-
contains
public boolean contains(java.lang.String name)
-
contains
public boolean contains(java.lang.String name, java.lang.String value)
-
getValue
public java.lang.String getValue(java.lang.String name)
-
deepEquals
public boolean deepEquals(java.lang.Object o)
- Specified by:
deepEqualsin interfacede.monticore.ast.ASTNode
-
deepEquals
public boolean deepEquals(java.lang.Object o, boolean forceSameOrder)- Specified by:
deepEqualsin interfacede.monticore.ast.ASTNode
-
deepEqualsWithComments
public boolean deepEqualsWithComments(java.lang.Object o)
- Specified by:
deepEqualsWithCommentsin interfacede.monticore.ast.ASTNode
-
deepEqualsWithComments
public boolean deepEqualsWithComments(java.lang.Object o, boolean forceSameOrder)- Specified by:
deepEqualsWithCommentsin interfacede.monticore.ast.ASTNode
-
equalAttributes
public boolean equalAttributes(java.lang.Object o)
- Specified by:
equalAttributesin interfacede.monticore.ast.ASTNode
-
equalsWithComments
public boolean equalsWithComments(java.lang.Object o)
- Specified by:
equalsWithCommentsin interfacede.monticore.ast.ASTNode
-
deepClone
public ASTStereotype deepClone()
- Specified by:
deepClonein interfacede.monticore.ast.ASTNode- Specified by:
deepClonein classde.monticore.ast.ASTCNode
-
deepClone
public ASTStereotype deepClone(ASTStereotype result)
-
containsValues
public boolean containsValues(java.lang.Object element)
-
containsAllValues
public boolean containsAllValues(java.util.Collection<?> collection)
-
isEmptyValues
public boolean isEmptyValues()
-
iteratorValues
public java.util.Iterator<ASTStereoValue> iteratorValues()
-
sizeValues
public int sizeValues()
-
toArrayValues
public ASTStereoValue[] toArrayValues(ASTStereoValue[] array)
-
toArrayValues
public java.lang.Object[] toArrayValues()
-
spliteratorValues
public java.util.Spliterator<ASTStereoValue> spliteratorValues()
-
streamValues
public java.util.stream.Stream<ASTStereoValue> streamValues()
-
parallelStreamValues
public java.util.stream.Stream<ASTStereoValue> parallelStreamValues()
-
getValues
public ASTStereoValue getValues(int index)
-
indexOfValues
public int indexOfValues(java.lang.Object element)
-
lastIndexOfValues
public int lastIndexOfValues(java.lang.Object element)
-
equalsValues
public boolean equalsValues(java.lang.Object o)
-
hashCodeValues
public int hashCodeValues()
-
listIteratorValues
public java.util.ListIterator<ASTStereoValue> listIteratorValues()
-
listIteratorValues
public java.util.ListIterator<ASTStereoValue> listIteratorValues(int index)
-
subListValues
public java.util.List<ASTStereoValue> subListValues(int start, int end)
-
getValuesList
public java.util.List<ASTStereoValue> getValuesList()
-
clearValues
public void clearValues()
-
addValues
public boolean addValues(ASTStereoValue element)
-
addAllValues
public boolean addAllValues(java.util.Collection<? extends ASTStereoValue> collection)
-
removeValues
public boolean removeValues(java.lang.Object element)
-
removeAllValues
public boolean removeAllValues(java.util.Collection<?> collection)
-
retainAllValues
public boolean retainAllValues(java.util.Collection<?> collection)
-
removeIfValues
public boolean removeIfValues(java.util.function.Predicate<? super ASTStereoValue> filter)
-
forEachValues
public void forEachValues(java.util.function.Consumer<? super ASTStereoValue> action)
-
addValues
public void addValues(int index, ASTStereoValue element)
-
addAllValues
public boolean addAllValues(int index, java.util.Collection<? extends ASTStereoValue> collection)
-
removeValues
public ASTStereoValue removeValues(int index)
-
setValues
public ASTStereoValue setValues(int index, ASTStereoValue element)
-
replaceAllValues
public void replaceAllValues(java.util.function.UnaryOperator<ASTStereoValue> operator)
-
sortValues
public void sortValues(java.util.Comparator<? super ASTStereoValue> comparator)
-
setValuesList
public void setValuesList(java.util.List<ASTStereoValue> values)
-
accept
public void accept(UMLStereotypeTraverser visitor)
Entry point for the Visitor pattern. Cf. MontiCore handbook chapter 8.- Specified by:
acceptin interfaceASTUMLStereotypeNode- Parameters:
visitor- the visitor to dispatch to
-
accept
public void accept(ExpressionsBasisTraverser visitor)
Entry point for the Visitor pattern. Cf. MontiCore handbook chapter 8.- Parameters:
visitor- the visitor to dispatch to
-
accept
public void accept(MCCommonLiteralsTraverser 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 ASTStereotype _construct()
-
getEnclosingScope
public IUMLStereotypeScope getEnclosingScope()
- Specified by:
getEnclosingScopein interfacede.monticore.ast.ASTNode
-
setEnclosingScope
public void setEnclosingScope(IUMLStereotypeScope enclosingScope)
-
setEnclosingScope
public void setEnclosingScope(IExpressionsBasisScope enclosingScope)
-
setEnclosingScope
public void setEnclosingScope(IMCCommonLiteralsScope enclosingScope)
-
setEnclosingScope
public void setEnclosingScope(IMCBasicsScope enclosingScope)
-
setEnclosingScope
public void setEnclosingScope(IMCLiteralsBasisScope enclosingScope)
-
evaluate
public de.monticore.interpreter.Value evaluate(IUMLStereotypeInterpreter interpreter)
-
evaluate
public de.monticore.interpreter.Value evaluate(de.monticore.interpreter.ModelInterpreter interpreter)
- Specified by:
evaluatein interfacede.monticore.ast.ASTNode
-
-