Class ASTReplacement
java.lang.Object
de.monticore.ast.ASTCNode
de.monticore.tf.odrulegeneration._ast.ASTReplacement
- All Implemented Interfaces:
de.monticore.ast.ASTNode,ASTODRuleGenerationNode,Cloneable
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected List<ASTCreateOperation> protected List<ASTDeleteOperation> protected IODRuleGenerationScopeprotected List<ASTRequirement> Fields inherited from class de.monticore.ast.ASTCNode
end, postcomments, precomments, start -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected ASTReplacementvoidaccept(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.booleanaddAllChanges(int index, Collection<? extends ASTChange> collection) booleanaddAllChanges(Collection<? extends ASTChange> collection) booleanaddAllCreateObjects(int index, Collection<? extends ASTCreateOperation> collection) booleanaddAllCreateObjects(Collection<? extends ASTCreateOperation> collection) booleanaddAllDeleteObjects(int index, Collection<? extends ASTDeleteOperation> collection) booleanaddAllDeleteObjects(Collection<? extends ASTDeleteOperation> collection) booleanaddAllRequirements(int index, Collection<? extends ASTRequirement> collection) booleanaddAllRequirements(Collection<? extends ASTRequirement> collection) voidaddChanges(int index, ASTChange element) booleanaddChanges(ASTChange element) voidaddCreateObjects(int index, ASTCreateOperation element) booleanaddCreateObjects(ASTCreateOperation element) voidaddDeleteObjects(int index, ASTDeleteOperation element) booleanaddDeleteObjects(ASTDeleteOperation element) voidaddRequirements(int index, ASTRequirement element) booleanaddRequirements(ASTRequirement element) voidvoidvoidvoidbooleancontainsAllChanges(Collection<?> collection) booleancontainsAllCreateObjects(Collection<?> collection) booleancontainsAllDeleteObjects(Collection<?> collection) booleancontainsAllRequirements(Collection<?> collection) booleancontainsChanges(Object element) booleancontainsCreateObjects(Object element) booleancontainsDeleteObjects(Object element) booleancontainsRequirements(Object element) deepClone(ASTReplacement result) booleandeepEquals(Object o) booleandeepEquals(Object o, boolean forceSameOrder) booleanbooleandeepEqualsWithComments(Object o, boolean forceSameOrder) booleanbooleanbooleanbooleanbooleanbooleanvoidforEachChanges(Consumer<? super ASTChange> action) voidforEachCreateObjects(Consumer<? super ASTCreateOperation> action) voidforEachDeleteObjects(Consumer<? super ASTDeleteOperation> action) voidforEachRequirements(Consumer<? super ASTRequirement> action) getChanges(int index) getCreateObjects(int index) getDeleteObjects(int index) getRequirements(int index) intintintintintindexOfChanges(Object element) intindexOfCreateObjects(Object element) intindexOfDeleteObjects(Object element) intindexOfRequirements(Object element) booleanbooleanbooleanbooleanintlastIndexOfChanges(Object element) intlastIndexOfCreateObjects(Object element) intlastIndexOfDeleteObjects(Object element) intlastIndexOfRequirements(Object element) listIteratorChanges(int index) listIteratorCreateObjects(int index) listIteratorDeleteObjects(int index) listIteratorRequirements(int index) booleanremoveAllChanges(Collection<?> collection) booleanremoveAllCreateObjects(Collection<?> collection) booleanremoveAllDeleteObjects(Collection<?> collection) booleanremoveAllRequirements(Collection<?> collection) removeChanges(int index) booleanremoveChanges(Object element) removeCreateObjects(int index) booleanremoveCreateObjects(Object element) removeDeleteObjects(int index) booleanremoveDeleteObjects(Object element) booleanremoveIfChanges(Predicate<? super ASTChange> filter) booleanremoveIfCreateObjects(Predicate<? super ASTCreateOperation> filter) booleanremoveIfDeleteObjects(Predicate<? super ASTDeleteOperation> filter) booleanremoveIfRequirements(Predicate<? super ASTRequirement> filter) removeRequirements(int index) booleanremoveRequirements(Object element) voidreplaceAllChanges(UnaryOperator<ASTChange> operator) voidvoidvoidreplaceAllRequirements(UnaryOperator<ASTRequirement> operator) booleanretainAllChanges(Collection<?> collection) booleanretainAllCreateObjects(Collection<?> collection) booleanretainAllDeleteObjects(Collection<?> collection) booleanretainAllRequirements(Collection<?> collection) setChanges(int index, ASTChange element) voidsetChangesList(List<ASTChange> changes) setCreateObjects(int index, ASTCreateOperation element) voidsetCreateObjectsList(List<ASTCreateOperation> createObjects) setDeleteObjects(int index, ASTDeleteOperation element) voidsetDeleteObjectsList(List<ASTDeleteOperation> deleteObjects) voidsetEnclosingScope(IMCBasicsScope enclosingScope) voidsetEnclosingScope(IODRuleGenerationScope enclosingScope) voidsetEnclosingScope(IMCBasicTypesScope enclosingScope) voidsetEnclosingScope(IMCCollectionTypesScope enclosingScope) voidsetEnclosingScope(IMCFullGenericTypesScope enclosingScope) voidsetEnclosingScope(IMCSimpleGenericTypesScope enclosingScope) setRequirements(int index, ASTRequirement element) voidsetRequirementsList(List<ASTRequirement> requirements) intintintintvoidsortChanges(Comparator<? super ASTChange> comparator) voidsortCreateObjects(Comparator<? super ASTCreateOperation> comparator) voidsortDeleteObjects(Comparator<? super ASTDeleteOperation> comparator) voidsortRequirements(Comparator<? super ASTRequirement> comparator) subListChanges(int start, int end) subListCreateObjects(int start, int end) subListDeleteObjects(int start, int end) subListRequirements(int start, int end) Object[]toArrayChanges(ASTChange[] array) Object[]toArrayCreateObjects(ASTCreateOperation[] array) Object[]toArrayDeleteObjects(ASTDeleteOperation[] array) Object[]toArrayRequirements(ASTRequirement[] 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
-
requirements
-
changes
-
createObjects
-
deleteObjects
-
enclosingScope
-
-
Constructor Details
-
ASTReplacement
protected ASTReplacement()
-
-
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
-
containsRequirements
-
containsAllRequirements
-
isEmptyRequirements
public boolean isEmptyRequirements() -
iteratorRequirements
-
sizeRequirements
public int sizeRequirements() -
toArrayRequirements
-
toArrayRequirements
-
spliteratorRequirements
-
streamRequirements
-
parallelStreamRequirements
-
getRequirements
-
indexOfRequirements
-
lastIndexOfRequirements
-
equalsRequirements
-
hashCodeRequirements
public int hashCodeRequirements() -
listIteratorRequirements
-
listIteratorRequirements
-
subListRequirements
-
getRequirementsList
-
containsChanges
-
containsAllChanges
-
isEmptyChanges
public boolean isEmptyChanges() -
iteratorChanges
-
sizeChanges
public int sizeChanges() -
toArrayChanges
-
toArrayChanges
-
spliteratorChanges
-
streamChanges
-
parallelStreamChanges
-
getChanges
-
indexOfChanges
-
lastIndexOfChanges
-
equalsChanges
-
hashCodeChanges
public int hashCodeChanges() -
listIteratorChanges
-
listIteratorChanges
-
subListChanges
-
getChangesList
-
containsCreateObjects
-
containsAllCreateObjects
-
isEmptyCreateObjects
public boolean isEmptyCreateObjects() -
iteratorCreateObjects
-
sizeCreateObjects
public int sizeCreateObjects() -
toArrayCreateObjects
-
toArrayCreateObjects
-
spliteratorCreateObjects
-
streamCreateObjects
-
parallelStreamCreateObjects
-
getCreateObjects
-
indexOfCreateObjects
-
lastIndexOfCreateObjects
-
equalsCreateObjects
-
hashCodeCreateObjects
public int hashCodeCreateObjects() -
listIteratorCreateObjects
-
listIteratorCreateObjects
-
subListCreateObjects
-
getCreateObjectsList
-
containsDeleteObjects
-
containsAllDeleteObjects
-
isEmptyDeleteObjects
public boolean isEmptyDeleteObjects() -
iteratorDeleteObjects
-
sizeDeleteObjects
public int sizeDeleteObjects() -
toArrayDeleteObjects
-
toArrayDeleteObjects
-
spliteratorDeleteObjects
-
streamDeleteObjects
-
parallelStreamDeleteObjects
-
getDeleteObjects
-
indexOfDeleteObjects
-
lastIndexOfDeleteObjects
-
equalsDeleteObjects
-
hashCodeDeleteObjects
public int hashCodeDeleteObjects() -
listIteratorDeleteObjects
-
listIteratorDeleteObjects
-
subListDeleteObjects
-
getDeleteObjectsList
-
clearRequirements
public void clearRequirements() -
addRequirements
-
addAllRequirements
-
removeRequirements
-
removeAllRequirements
-
retainAllRequirements
-
removeIfRequirements
-
forEachRequirements
-
addRequirements
-
addAllRequirements
-
removeRequirements
-
setRequirements
-
replaceAllRequirements
-
sortRequirements
-
setRequirementsList
-
clearChanges
public void clearChanges() -
addChanges
-
addAllChanges
-
removeChanges
-
removeAllChanges
-
retainAllChanges
-
removeIfChanges
-
forEachChanges
-
addChanges
-
addAllChanges
-
removeChanges
-
setChanges
-
replaceAllChanges
-
sortChanges
-
setChangesList
-
clearCreateObjects
public void clearCreateObjects() -
addCreateObjects
-
addAllCreateObjects
-
removeCreateObjects
-
removeAllCreateObjects
-
retainAllCreateObjects
-
removeIfCreateObjects
-
forEachCreateObjects
-
addCreateObjects
-
addAllCreateObjects
-
removeCreateObjects
-
setCreateObjects
-
replaceAllCreateObjects
-
sortCreateObjects
-
setCreateObjectsList
-
clearDeleteObjects
public void clearDeleteObjects() -
addDeleteObjects
-
addAllDeleteObjects
-
removeDeleteObjects
-
removeAllDeleteObjects
-
retainAllDeleteObjects
-
removeIfDeleteObjects
-
forEachDeleteObjects
-
addDeleteObjects
-
addAllDeleteObjects
-
removeDeleteObjects
-
setDeleteObjects
-
replaceAllDeleteObjects
-
sortDeleteObjects
-
setDeleteObjectsList
-
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
-