Class ASTPatternBuilder
java.lang.Object
de.monticore.ast.ASTNodeBuilder<ASTPatternBuilder>
de.monticore.tf.odrulegeneration._ast.ASTPatternBuilder
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected List<ASTAssociation> protected List<ASTMatchingObject> protected List<ASTLinkCondition> protected List<ASTMatchingObject> protected List<ASTObjectCondition> protected ASTPatternBuilderFields inherited from class de.monticore.ast.ASTNodeBuilder
postcomments, precomments, sourcePositionEnd, sourcePositionStart -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionadd_PostComment(int index, de.monticore.ast.Comment postcomment) add_PostComment(de.monticore.ast.Comment postcomment) add_PreComment(int index, de.monticore.ast.Comment precomment) add_PreComment(de.monticore.ast.Comment precomment) addAll_PostComments(int index, Collection<de.monticore.ast.Comment> postcomments) addAll_PostComments(Collection<de.monticore.ast.Comment> postcomments) addAll_PreComments(int index, Collection<de.monticore.ast.Comment> precomments) addAll_PreComments(Collection<de.monticore.ast.Comment> precomments) addAllAssoc(int index, Collection<? extends ASTAssociation> collection) addAllAssoc(Collection<? extends ASTAssociation> collection) addAllLHSObjects(int index, Collection<? extends ASTMatchingObject> collection) addAllLHSObjects(Collection<? extends ASTMatchingObject> collection) addAllLinkConditions(int index, Collection<? extends ASTLinkCondition> collection) addAllLinkConditions(Collection<? extends ASTLinkCondition> collection) addAllMatchingObjects(int index, Collection<? extends ASTMatchingObject> collection) addAllMatchingObjects(Collection<? extends ASTMatchingObject> collection) addAllObjectConditions(int index, Collection<? extends ASTObjectCondition> collection) addAllObjectConditions(Collection<? extends ASTObjectCondition> collection) addAllTypes(int index, Collection<? extends String> collection) addAllTypes(Collection<? extends String> collection) addAssoc(int index, ASTAssociation element) addAssoc(ASTAssociation element) addLHSObjects(int index, ASTMatchingObject element) addLHSObjects(ASTMatchingObject element) addLinkConditions(int index, ASTLinkCondition element) addLinkConditions(ASTLinkCondition element) addMatchingObjects(int index, ASTMatchingObject element) addMatchingObjects(ASTMatchingObject element) addObjectConditions(int index, ASTObjectCondition element) addObjectConditions(ASTObjectCondition element) build()booleancontainsAllAssoc(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) booleanbooleanbooleanbooleanbooleanbooleanforEach_PostComments(Consumer<? super de.monticore.ast.Comment> action) forEach_PreComments(Consumer<? super de.monticore.ast.Comment> action) forEachAssoc(Consumer<? super ASTAssociation> action) forEachLHSObjects(Consumer<? super ASTMatchingObject> action) forEachLinkConditions(Consumer<? super ASTLinkCondition> action) forEachMatchingObjects(Consumer<? super ASTMatchingObject> action) forEachObjectConditions(Consumer<? super ASTObjectCondition> action) forEachTypes(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) booleanbooleanbooleanbooleanbooleanbooleanbooleanisValid()intlastIndexOfAssoc(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) remove_PostComment(int index) remove_PostComment(Object element) remove_PreComment(int index) remove_PreComment(Object element) removeAll_PostComments(Collection<?> element) removeAll_PreComments(Collection<?> element) removeAllAssoc(Collection<?> collection) removeAllLHSObjects(Collection<?> collection) removeAllLinkConditions(Collection<?> collection) removeAllMatchingObjects(Collection<?> collection) removeAllObjectConditions(Collection<?> collection) removeAllTypes(Collection<?> collection) removeAssoc(int index) removeAssoc(Object element) removeIf_PostComment(Predicate<? super de.monticore.ast.Comment> filter) removeIf_PreComment(Predicate<? super de.monticore.ast.Comment> filter) removeIfAssoc(Predicate<? super ASTAssociation> filter) removeIfLHSObjects(Predicate<? super ASTMatchingObject> filter) removeIfLinkConditions(Predicate<? super ASTLinkCondition> filter) removeIfMatchingObjects(Predicate<? super ASTMatchingObject> filter) removeIfObjectConditions(Predicate<? super ASTObjectCondition> filter) removeIfTypes(Predicate<? super String> filter) removeLHSObjects(int index) removeLHSObjects(Object element) removeLinkConditions(int index) removeLinkConditions(Object element) removeMatchingObjects(int index) removeMatchingObjects(Object element) removeObjectConditions(int index) removeObjectConditions(Object element) removeTypes(int index) removeTypes(Object element) replaceAll_PostComments(UnaryOperator<de.monticore.ast.Comment> operator) replaceAll_PreComments(UnaryOperator<de.monticore.ast.Comment> operator) replaceAllAssoc(UnaryOperator<ASTAssociation> operator) replaceAllLHSObjects(UnaryOperator<ASTMatchingObject> operator) replaceAllTypes(UnaryOperator<String> operator) retainAll_PostComments(Collection<?> element) retainAll_PreComments(Collection<?> element) retainAllAssoc(Collection<?> collection) retainAllLHSObjects(Collection<?> collection) retainAllLinkConditions(Collection<?> collection) retainAllMatchingObjects(Collection<?> collection) retainAllObjectConditions(Collection<?> collection) retainAllTypes(Collection<?> collection) set_PostComment(int index, de.monticore.ast.Comment postcomment) set_PostCommentList(List<de.monticore.ast.Comment> postComments) set_PreComment(int index, de.monticore.ast.Comment precomment) set_PreCommentList(List<de.monticore.ast.Comment> preComments) set_SourcePositionEnd(de.se_rwth.commons.SourcePosition end) set_SourcePositionStart(de.se_rwth.commons.SourcePosition start) setAssoc(int index, ASTAssociation element) setAssocList(List<ASTAssociation> assoc) setLHSObjects(int index, ASTMatchingObject element) setLHSObjectsList(List<ASTMatchingObject> lHSObjects) setLinkConditions(int index, ASTLinkCondition element) setLinkConditionsList(List<ASTLinkCondition> linkConditions) setMatchingObjects(int index, ASTMatchingObject element) setMatchingObjectsList(List<ASTMatchingObject> matchingObjects) setObjectConditions(int index, ASTObjectCondition element) setObjectConditionsList(List<ASTObjectCondition> objectConditions) setTypesList(List<String> types) intintintintintintsort_PostComments(Comparator<? super de.monticore.ast.Comment> comparator) sort_PreComments(Comparator<? super de.monticore.ast.Comment> comparator) sortAssoc(Comparator<? super ASTAssociation> comparator) sortLHSObjects(Comparator<? super ASTMatchingObject> comparator) sortLinkConditions(Comparator<? super ASTLinkCondition> comparator) sortMatchingObjects(Comparator<? super ASTMatchingObject> comparator) sortObjectConditions(Comparator<? super ASTObjectCondition> comparator) sortTypes(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.ASTNodeBuilder
contains_PostComment, contains_PreComment, containsAll_PostComments, containsAll_PreComments, equals_PostComments, equals_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, size_PostComments, size_PreComments, spliterator_PostComments, spliterator_PreComments, stream_PostComments, stream_PreComments, subList_PostComments, subList_PreComments, toArray_PostComments, toArray_PostComments, toArray_PreComments, toArray_PreComments
-
Field Details
-
realBuilder
-
matchingObjects
-
lHSObjects
-
assoc
-
objectConditions
-
linkConditions
-
types
-
-
Constructor Details
-
ASTPatternBuilder
public ASTPatternBuilder()
-
-
Method Details
-
build
-
isValid
public boolean isValid() -
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
-
addMatchingObjects
-
addAllMatchingObjects
-
removeMatchingObjects
-
removeAllMatchingObjects
-
retainAllMatchingObjects
-
removeIfMatchingObjects
-
forEachMatchingObjects
-
addMatchingObjects
-
addAllMatchingObjects
public ASTPatternBuilder addAllMatchingObjects(int index, Collection<? extends ASTMatchingObject> collection) -
removeMatchingObjects
-
setMatchingObjects
-
replaceAllMatchingObjects
-
sortMatchingObjects
-
setMatchingObjectsList
-
clearLHSObjects
-
addLHSObjects
-
addAllLHSObjects
-
removeLHSObjects
-
removeAllLHSObjects
-
retainAllLHSObjects
-
removeIfLHSObjects
-
forEachLHSObjects
-
addLHSObjects
-
addAllLHSObjects
public ASTPatternBuilder addAllLHSObjects(int index, Collection<? extends ASTMatchingObject> collection) -
removeLHSObjects
-
setLHSObjects
-
replaceAllLHSObjects
-
sortLHSObjects
-
setLHSObjectsList
-
clearAssoc
-
addAssoc
-
addAllAssoc
-
removeAssoc
-
removeAllAssoc
-
retainAllAssoc
-
removeIfAssoc
-
forEachAssoc
-
addAssoc
-
addAllAssoc
-
removeAssoc
-
setAssoc
-
replaceAllAssoc
-
sortAssoc
-
setAssocList
-
clearObjectConditions
-
addObjectConditions
-
addAllObjectConditions
public ASTPatternBuilder addAllObjectConditions(Collection<? extends ASTObjectCondition> collection) -
removeObjectConditions
-
removeAllObjectConditions
-
retainAllObjectConditions
-
removeIfObjectConditions
-
forEachObjectConditions
-
addObjectConditions
-
addAllObjectConditions
public ASTPatternBuilder addAllObjectConditions(int index, Collection<? extends ASTObjectCondition> collection) -
removeObjectConditions
-
setObjectConditions
-
replaceAllObjectConditions
-
sortObjectConditions
-
setObjectConditionsList
-
clearLinkConditions
-
addLinkConditions
-
addAllLinkConditions
-
removeLinkConditions
-
removeAllLinkConditions
-
retainAllLinkConditions
-
removeIfLinkConditions
-
forEachLinkConditions
-
addLinkConditions
-
addAllLinkConditions
public ASTPatternBuilder addAllLinkConditions(int index, Collection<? extends ASTLinkCondition> collection) -
removeLinkConditions
-
setLinkConditions
-
replaceAllLinkConditions
-
sortLinkConditions
-
setLinkConditionsList
-
clearTypes
-
addTypes
-
addAllTypes
-
removeTypes
-
removeAllTypes
-
retainAllTypes
-
removeIfTypes
-
forEachTypes
-
addTypes
-
addAllTypes
-
removeTypes
-
setTypes
-
replaceAllTypes
-
sortTypes
-
setTypesList
-
set_SourcePositionEnd
- Overrides:
set_SourcePositionEndin classde.monticore.ast.ASTNodeBuilder<ASTPatternBuilder>
-
set_SourcePositionEndAbsent
- Overrides:
set_SourcePositionEndAbsentin classde.monticore.ast.ASTNodeBuilder<ASTPatternBuilder>
-
set_SourcePositionStart
- Overrides:
set_SourcePositionStartin classde.monticore.ast.ASTNodeBuilder<ASTPatternBuilder>
-
set_SourcePositionStartAbsent
- Overrides:
set_SourcePositionStartAbsentin classde.monticore.ast.ASTNodeBuilder<ASTPatternBuilder>
-
clear_PreComments
- Overrides:
clear_PreCommentsin classde.monticore.ast.ASTNodeBuilder<ASTPatternBuilder>
-
add_PreComment
- Overrides:
add_PreCommentin classde.monticore.ast.ASTNodeBuilder<ASTPatternBuilder>
-
add_PreComment
- Overrides:
add_PreCommentin classde.monticore.ast.ASTNodeBuilder<ASTPatternBuilder>
-
addAll_PreComments
- Overrides:
addAll_PreCommentsin classde.monticore.ast.ASTNodeBuilder<ASTPatternBuilder>
-
addAll_PreComments
public ASTPatternBuilder addAll_PreComments(int index, Collection<de.monticore.ast.Comment> precomments) - Overrides:
addAll_PreCommentsin classde.monticore.ast.ASTNodeBuilder<ASTPatternBuilder>
-
remove_PreComment
- Overrides:
remove_PreCommentin classde.monticore.ast.ASTNodeBuilder<ASTPatternBuilder>
-
remove_PreComment
- Overrides:
remove_PreCommentin classde.monticore.ast.ASTNodeBuilder<ASTPatternBuilder>
-
removeAll_PreComments
- Overrides:
removeAll_PreCommentsin classde.monticore.ast.ASTNodeBuilder<ASTPatternBuilder>
-
retainAll_PreComments
- Overrides:
retainAll_PreCommentsin classde.monticore.ast.ASTNodeBuilder<ASTPatternBuilder>
-
removeIf_PreComment
- Overrides:
removeIf_PreCommentin classde.monticore.ast.ASTNodeBuilder<ASTPatternBuilder>
-
forEach_PreComments
- Overrides:
forEach_PreCommentsin classde.monticore.ast.ASTNodeBuilder<ASTPatternBuilder>
-
replaceAll_PreComments
- Overrides:
replaceAll_PreCommentsin classde.monticore.ast.ASTNodeBuilder<ASTPatternBuilder>
-
sort_PreComments
- Overrides:
sort_PreCommentsin classde.monticore.ast.ASTNodeBuilder<ASTPatternBuilder>
-
set_PreCommentList
- Overrides:
set_PreCommentListin classde.monticore.ast.ASTNodeBuilder<ASTPatternBuilder>
-
set_PreComment
- Overrides:
set_PreCommentin classde.monticore.ast.ASTNodeBuilder<ASTPatternBuilder>
-
clear_PostComments
- Overrides:
clear_PostCommentsin classde.monticore.ast.ASTNodeBuilder<ASTPatternBuilder>
-
add_PostComment
- Overrides:
add_PostCommentin classde.monticore.ast.ASTNodeBuilder<ASTPatternBuilder>
-
add_PostComment
- Overrides:
add_PostCommentin classde.monticore.ast.ASTNodeBuilder<ASTPatternBuilder>
-
addAll_PostComments
- Overrides:
addAll_PostCommentsin classde.monticore.ast.ASTNodeBuilder<ASTPatternBuilder>
-
addAll_PostComments
public ASTPatternBuilder addAll_PostComments(int index, Collection<de.monticore.ast.Comment> postcomments) - Overrides:
addAll_PostCommentsin classde.monticore.ast.ASTNodeBuilder<ASTPatternBuilder>
-
remove_PostComment
- Overrides:
remove_PostCommentin classde.monticore.ast.ASTNodeBuilder<ASTPatternBuilder>
-
remove_PostComment
- Overrides:
remove_PostCommentin classde.monticore.ast.ASTNodeBuilder<ASTPatternBuilder>
-
removeAll_PostComments
- Overrides:
removeAll_PostCommentsin classde.monticore.ast.ASTNodeBuilder<ASTPatternBuilder>
-
retainAll_PostComments
- Overrides:
retainAll_PostCommentsin classde.monticore.ast.ASTNodeBuilder<ASTPatternBuilder>
-
removeIf_PostComment
- Overrides:
removeIf_PostCommentin classde.monticore.ast.ASTNodeBuilder<ASTPatternBuilder>
-
forEach_PostComments
- Overrides:
forEach_PostCommentsin classde.monticore.ast.ASTNodeBuilder<ASTPatternBuilder>
-
replaceAll_PostComments
- Overrides:
replaceAll_PostCommentsin classde.monticore.ast.ASTNodeBuilder<ASTPatternBuilder>
-
sort_PostComments
- Overrides:
sort_PostCommentsin classde.monticore.ast.ASTNodeBuilder<ASTPatternBuilder>
-
set_PostCommentList
- Overrides:
set_PostCommentListin classde.monticore.ast.ASTNodeBuilder<ASTPatternBuilder>
-
set_PostComment
- Overrides:
set_PostCommentin classde.monticore.ast.ASTNodeBuilder<ASTPatternBuilder>
-
uncheckedBuild
-