Class ASTPattern
java.lang.Object
de.monticore.ast.ASTCNode
de.monticore.tf.odrulegeneration._ast.ASTPattern
- All Implemented Interfaces:
de.monticore.ast.ASTNode,ASTODRuleGenerationNode,Cloneable
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected List<ASTAssociation> protected IODRuleGenerationScopeprotected List<ASTMatchingObject> protected List<ASTLinkCondition> protected List<ASTMatchingObject> protected List<ASTObjectCondition> Fields inherited from class de.monticore.ast.ASTCNode
end, postcomments, precomments, start -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected ASTPatternvoidaccept(MCBasicsTraverser visitor) Entry point for the Visitor pattern.voidaccept(ODRuleGenerationTraverser visitor) Entry point for the Visitor pattern.voidaccept(MCBasicTypesTraverser visitor) Entry point for the Visitor pattern.voidaccept(MCCollectionTypesTraverser visitor) Entry point for the Visitor pattern.voidaccept(MCFullGenericTypesTraverser visitor) Entry point for the Visitor pattern.voidaccept(MCSimpleGenericTypesTraverser visitor) Entry point for the Visitor pattern.voidaccept(de.monticore.visitor.ITraverser visitor) Entry point for the Visitor pattern.booleanaddAllAssoc(int index, Collection<? extends ASTAssociation> collection) booleanaddAllAssoc(Collection<? extends ASTAssociation> collection) booleanaddAllLHSObjects(int index, Collection<? extends ASTMatchingObject> collection) booleanaddAllLHSObjects(Collection<? extends ASTMatchingObject> collection) booleanaddAllLinkConditions(int index, Collection<? extends ASTLinkCondition> collection) booleanaddAllLinkConditions(Collection<? extends ASTLinkCondition> collection) booleanaddAllMatchingObjects(int index, Collection<? extends ASTMatchingObject> collection) booleanaddAllMatchingObjects(Collection<? extends ASTMatchingObject> collection) booleanaddAllObjectConditions(int index, Collection<? extends ASTObjectCondition> collection) booleanaddAllObjectConditions(Collection<? extends ASTObjectCondition> collection) booleanaddAllTypes(int index, Collection<? extends String> collection) booleanaddAllTypes(Collection<? extends String> collection) voidaddAssoc(int index, ASTAssociation element) booleanaddAssoc(ASTAssociation element) voidaddLHSObjects(int index, ASTMatchingObject element) booleanaddLHSObjects(ASTMatchingObject element) voidaddLinkConditions(int index, ASTLinkCondition element) booleanaddLinkConditions(ASTLinkCondition element) voidaddMatchingObjects(int index, ASTMatchingObject element) booleanaddMatchingObjects(ASTMatchingObject element) voidaddObjectConditions(int index, ASTObjectCondition element) booleanaddObjectConditions(ASTObjectCondition element) voidbooleanvoidvoidvoidvoidvoidvoidbooleancontainsAllAssoc(Collection<?> collection) booleancontainsAllLHSObjects(Collection<?> collection) booleancontainsAllLinkConditions(Collection<?> collection) booleancontainsAllMatchingObjects(Collection<?> collection) booleancontainsAllObjectConditions(Collection<?> collection) booleancontainsAllTypes(Collection<?> collection) booleancontainsAssoc(Object element) booleancontainsLHSObjects(Object element) booleancontainsLinkConditions(Object element) booleancontainsMatchingObjects(Object element) booleancontainsObjectConditions(Object element) booleancontainsTypes(Object element) deepClone(ASTPattern result) booleandeepEquals(Object o) booleandeepEquals(Object o, boolean forceSameOrder) booleanbooleandeepEqualsWithComments(Object o, boolean forceSameOrder) booleanbooleanbooleanbooleanbooleanbooleanbooleanbooleanvoidforEachAssoc(Consumer<? super ASTAssociation> action) voidforEachLHSObjects(Consumer<? super ASTMatchingObject> action) voidforEachLinkConditions(Consumer<? super ASTLinkCondition> action) voidforEachMatchingObjects(Consumer<? super ASTMatchingObject> action) voidforEachObjectConditions(Consumer<? super ASTObjectCondition> action) voidforEachTypes(Consumer<? super String> action) getAssoc(int index) getLHSObjects(int index) getLinkConditions(int index) getMatchingObjects(int index) getObjectConditions(int index) getTypes(int index) intintintintintintintindexOfAssoc(Object element) intindexOfLHSObjects(Object element) intindexOfLinkConditions(Object element) intindexOfMatchingObjects(Object element) intindexOfObjectConditions(Object element) intindexOfTypes(Object element) booleanbooleanbooleanbooleanbooleanbooleanintlastIndexOfAssoc(Object element) intlastIndexOfLHSObjects(Object element) intlastIndexOfLinkConditions(Object element) intlastIndexOfMatchingObjects(Object element) intlastIndexOfObjectConditions(Object element) intlastIndexOfTypes(Object element) listIteratorAssoc(int index) listIteratorLHSObjects(int index) listIteratorLinkConditions(int index) listIteratorMatchingObjects(int index) listIteratorObjectConditions(int index) listIteratorTypes(int index) booleanremoveAllAssoc(Collection<?> collection) booleanremoveAllLHSObjects(Collection<?> collection) booleanremoveAllLinkConditions(Collection<?> collection) booleanremoveAllMatchingObjects(Collection<?> collection) booleanremoveAllObjectConditions(Collection<?> collection) booleanremoveAllTypes(Collection<?> collection) removeAssoc(int index) booleanremoveAssoc(Object element) booleanremoveIfAssoc(Predicate<? super ASTAssociation> filter) booleanremoveIfLHSObjects(Predicate<? super ASTMatchingObject> filter) booleanremoveIfLinkConditions(Predicate<? super ASTLinkCondition> filter) booleanremoveIfMatchingObjects(Predicate<? super ASTMatchingObject> filter) booleanremoveIfObjectConditions(Predicate<? super ASTObjectCondition> filter) booleanremoveIfTypes(Predicate<? super String> filter) removeLHSObjects(int index) booleanremoveLHSObjects(Object element) removeLinkConditions(int index) booleanremoveLinkConditions(Object element) removeMatchingObjects(int index) booleanremoveMatchingObjects(Object element) removeObjectConditions(int index) booleanremoveObjectConditions(Object element) removeTypes(int index) booleanremoveTypes(Object element) voidreplaceAllAssoc(UnaryOperator<ASTAssociation> operator) voidreplaceAllLHSObjects(UnaryOperator<ASTMatchingObject> operator) voidvoidvoidvoidreplaceAllTypes(UnaryOperator<String> operator) booleanretainAllAssoc(Collection<?> collection) booleanretainAllLHSObjects(Collection<?> collection) booleanretainAllLinkConditions(Collection<?> collection) booleanretainAllMatchingObjects(Collection<?> collection) booleanretainAllObjectConditions(Collection<?> collection) booleanretainAllTypes(Collection<?> collection) setAssoc(int index, ASTAssociation element) voidsetAssocList(List<ASTAssociation> assoc) voidsetEnclosingScope(IMCBasicsScope enclosingScope) voidsetEnclosingScope(IODRuleGenerationScope enclosingScope) voidsetEnclosingScope(IMCBasicTypesScope enclosingScope) voidsetEnclosingScope(IMCCollectionTypesScope enclosingScope) voidsetEnclosingScope(IMCFullGenericTypesScope enclosingScope) voidsetEnclosingScope(IMCSimpleGenericTypesScope enclosingScope) setLHSObjects(int index, ASTMatchingObject element) voidsetLHSObjectsList(List<ASTMatchingObject> lHSObjects) setLinkConditions(int index, ASTLinkCondition element) voidsetLinkConditionsList(List<ASTLinkCondition> linkConditions) setMatchingObjects(int index, ASTMatchingObject element) voidsetMatchingObjectsList(List<ASTMatchingObject> matchingObjects) setObjectConditions(int index, ASTObjectCondition element) voidsetObjectConditionsList(List<ASTObjectCondition> objectConditions) voidsetTypesList(List<String> types) intintintintintintvoidsortAssoc(Comparator<? super ASTAssociation> comparator) voidsortLHSObjects(Comparator<? super ASTMatchingObject> comparator) voidsortLinkConditions(Comparator<? super ASTLinkCondition> comparator) voidsortMatchingObjects(Comparator<? super ASTMatchingObject> comparator) voidsortObjectConditions(Comparator<? super ASTObjectCondition> comparator) voidsortTypes(Comparator<? super String> comparator) subListAssoc(int start, int end) subListLHSObjects(int start, int end) subListLinkConditions(int start, int end) subListMatchingObjects(int start, int end) subListObjectConditions(int start, int end) subListTypes(int start, int end) Object[]toArrayAssoc(ASTAssociation[] array) Object[]toArrayLHSObjects(ASTMatchingObject[] array) Object[]toArrayLinkConditions(ASTLinkCondition[] array) Object[]toArrayMatchingObjects(ASTMatchingObject[] array) Object[]Object[]String[]toArrayTypes(String[] 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_PreCommentsMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods 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 Details
-
matchingObjects
-
lHSObjects
-
assoc
-
objectConditions
-
linkConditions
-
types
-
enclosingScope
-
-
Constructor Details
-
ASTPattern
protected ASTPattern()
-
-
Method Details
-
deepEquals
- Specified by:
deepEqualsin interfacede.monticore.ast.ASTNode
-
deepEquals
- Specified by:
deepEqualsin interfacede.monticore.ast.ASTNode
-
deepEqualsWithComments
- Specified by:
deepEqualsWithCommentsin interfacede.monticore.ast.ASTNode
-
deepEqualsWithComments
- Specified by:
deepEqualsWithCommentsin interfacede.monticore.ast.ASTNode
-
equalAttributes
- Specified by:
equalAttributesin interfacede.monticore.ast.ASTNode
-
equalsWithComments
- Specified by:
equalsWithCommentsin interfacede.monticore.ast.ASTNode
-
deepClone
- Specified by:
deepClonein interfacede.monticore.ast.ASTNode- Specified by:
deepClonein classde.monticore.ast.ASTCNode
-
deepClone
-
containsMatchingObjects
-
containsAllMatchingObjects
-
isEmptyMatchingObjects
public boolean isEmptyMatchingObjects() -
iteratorMatchingObjects
-
sizeMatchingObjects
public int sizeMatchingObjects() -
toArrayMatchingObjects
-
toArrayMatchingObjects
-
spliteratorMatchingObjects
-
streamMatchingObjects
-
parallelStreamMatchingObjects
-
getMatchingObjects
-
indexOfMatchingObjects
-
lastIndexOfMatchingObjects
-
equalsMatchingObjects
-
hashCodeMatchingObjects
public int hashCodeMatchingObjects() -
listIteratorMatchingObjects
-
listIteratorMatchingObjects
-
subListMatchingObjects
-
getMatchingObjectsList
-
containsLHSObjects
-
containsAllLHSObjects
-
isEmptyLHSObjects
public boolean isEmptyLHSObjects() -
iteratorLHSObjects
-
sizeLHSObjects
public int sizeLHSObjects() -
toArrayLHSObjects
-
toArrayLHSObjects
-
spliteratorLHSObjects
-
streamLHSObjects
-
parallelStreamLHSObjects
-
getLHSObjects
-
indexOfLHSObjects
-
lastIndexOfLHSObjects
-
equalsLHSObjects
-
hashCodeLHSObjects
public int hashCodeLHSObjects() -
listIteratorLHSObjects
-
listIteratorLHSObjects
-
subListLHSObjects
-
getLHSObjectsList
-
containsAssoc
-
containsAllAssoc
-
isEmptyAssoc
public boolean isEmptyAssoc() -
iteratorAssoc
-
sizeAssoc
public int sizeAssoc() -
toArrayAssoc
-
toArrayAssoc
-
spliteratorAssoc
-
streamAssoc
-
parallelStreamAssoc
-
getAssoc
-
indexOfAssoc
-
lastIndexOfAssoc
-
equalsAssoc
-
hashCodeAssoc
public int hashCodeAssoc() -
listIteratorAssoc
-
listIteratorAssoc
-
subListAssoc
-
getAssocList
-
containsObjectConditions
-
containsAllObjectConditions
-
isEmptyObjectConditions
public boolean isEmptyObjectConditions() -
iteratorObjectConditions
-
sizeObjectConditions
public int sizeObjectConditions() -
toArrayObjectConditions
-
toArrayObjectConditions
-
spliteratorObjectConditions
-
streamObjectConditions
-
parallelStreamObjectConditions
-
getObjectConditions
-
indexOfObjectConditions
-
lastIndexOfObjectConditions
-
equalsObjectConditions
-
hashCodeObjectConditions
public int hashCodeObjectConditions() -
listIteratorObjectConditions
-
listIteratorObjectConditions
-
subListObjectConditions
-
getObjectConditionsList
-
containsLinkConditions
-
containsAllLinkConditions
-
isEmptyLinkConditions
public boolean isEmptyLinkConditions() -
iteratorLinkConditions
-
sizeLinkConditions
public int sizeLinkConditions() -
toArrayLinkConditions
-
toArrayLinkConditions
-
spliteratorLinkConditions
-
streamLinkConditions
-
parallelStreamLinkConditions
-
getLinkConditions
-
indexOfLinkConditions
-
lastIndexOfLinkConditions
-
equalsLinkConditions
-
hashCodeLinkConditions
public int hashCodeLinkConditions() -
listIteratorLinkConditions
-
listIteratorLinkConditions
-
subListLinkConditions
-
getLinkConditionsList
-
containsTypes
-
containsAllTypes
-
isEmptyTypes
public boolean isEmptyTypes() -
iteratorTypes
-
sizeTypes
public int sizeTypes() -
toArrayTypes
-
toArrayTypes
-
spliteratorTypes
-
streamTypes
-
parallelStreamTypes
-
getTypes
-
indexOfTypes
-
lastIndexOfTypes
-
equalsTypes
-
hashCodeTypes
public int hashCodeTypes() -
listIteratorTypes
-
listIteratorTypes
-
subListTypes
-
getTypesList
-
clearMatchingObjects
public void clearMatchingObjects() -
addMatchingObjects
-
addAllMatchingObjects
-
removeMatchingObjects
-
removeAllMatchingObjects
-
retainAllMatchingObjects
-
removeIfMatchingObjects
-
forEachMatchingObjects
-
addMatchingObjects
-
addAllMatchingObjects
-
removeMatchingObjects
-
setMatchingObjects
-
replaceAllMatchingObjects
-
sortMatchingObjects
-
setMatchingObjectsList
-
clearLHSObjects
public void clearLHSObjects() -
addLHSObjects
-
addAllLHSObjects
-
removeLHSObjects
-
removeAllLHSObjects
-
retainAllLHSObjects
-
removeIfLHSObjects
-
forEachLHSObjects
-
addLHSObjects
-
addAllLHSObjects
-
removeLHSObjects
-
setLHSObjects
-
replaceAllLHSObjects
-
sortLHSObjects
-
setLHSObjectsList
-
clearAssoc
public void clearAssoc() -
addAssoc
-
addAllAssoc
-
removeAssoc
-
removeAllAssoc
-
retainAllAssoc
-
removeIfAssoc
-
forEachAssoc
-
addAssoc
-
addAllAssoc
-
removeAssoc
-
setAssoc
-
replaceAllAssoc
-
sortAssoc
-
setAssocList
-
clearObjectConditions
public void clearObjectConditions() -
addObjectConditions
-
addAllObjectConditions
-
removeObjectConditions
-
removeAllObjectConditions
-
retainAllObjectConditions
-
removeIfObjectConditions
-
forEachObjectConditions
-
addObjectConditions
-
addAllObjectConditions
public boolean addAllObjectConditions(int index, Collection<? extends ASTObjectCondition> collection) -
removeObjectConditions
-
setObjectConditions
-
replaceAllObjectConditions
-
sortObjectConditions
-
setObjectConditionsList
-
clearLinkConditions
public void clearLinkConditions() -
addLinkConditions
-
addAllLinkConditions
-
removeLinkConditions
-
removeAllLinkConditions
-
retainAllLinkConditions
-
removeIfLinkConditions
-
forEachLinkConditions
-
addLinkConditions
-
addAllLinkConditions
-
removeLinkConditions
-
setLinkConditions
-
replaceAllLinkConditions
-
sortLinkConditions
-
setLinkConditionsList
-
clearTypes
public void clearTypes() -
addTypes
-
addAllTypes
-
removeTypes
-
removeAllTypes
-
retainAllTypes
-
removeIfTypes
-
forEachTypes
-
addTypes
-
addAllTypes
-
removeTypes
-
setTypes
-
replaceAllTypes
-
sortTypes
-
setTypesList
-
accept
Entry point for the Visitor pattern. Cf. MontiCore handbook chapter 8.- Specified by:
acceptin interfaceASTODRuleGenerationNode- Parameters:
visitor- the visitor to dispatch to
-
accept
Entry point for the Visitor pattern. Cf. MontiCore handbook chapter 8.- Parameters:
visitor- the visitor to dispatch to
-
accept
Entry point for the Visitor pattern. Cf. MontiCore handbook chapter 8.- Parameters:
visitor- the visitor to dispatch to
-
accept
Entry point for the Visitor pattern. Cf. MontiCore handbook chapter 8.- Parameters:
visitor- the visitor to dispatch to
-
accept
Entry point for the Visitor pattern. Cf. MontiCore handbook chapter 8.- Parameters:
visitor- the visitor to dispatch to
-
accept
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
-
getEnclosingScope
- Specified by:
getEnclosingScopein interfacede.monticore.ast.ASTNode
-
setEnclosingScope
-
setEnclosingScope
-
setEnclosingScope
-
setEnclosingScope
-
setEnclosingScope
-
setEnclosingScope
-