Class ASTTransformationStructureTOP
java.lang.Object
de.monticore.ast.ASTCNode
de.monticore.tf.odrulegeneration._ast.ASTTransformationStructureTOP
- All Implemented Interfaces:
de.monticore.ast.ASTNode,ASTODRuleGenerationNode,Cloneable
- Direct Known Subclasses:
ASTTransformationStructure
public abstract class ASTTransformationStructureTOP
extends de.monticore.ast.ASTCNode
implements ASTODRuleGenerationNode
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected Stringprotected Stringprotected Stringprotected IODRuleGenerationScopeprotected ASTPatternprotected Stringprotected ASTReplacementprotected booleanprotected Stringprotected List<ASTVariable> Fields inherited from class de.monticore.ast.ASTCNode
end, postcomments, precomments, start -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected ASTTransformationStructurevoidaccept(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.booleanaddAllAssignments(int index, Collection<? extends String> collection) booleanaddAllAssignments(Collection<? extends String> collection) booleanaddAllImports(int index, Collection<? extends String> collection) booleanaddAllImports(Collection<? extends String> collection) booleanaddAllVariables(int index, Collection<? extends ASTVariable> collection) booleanaddAllVariables(Collection<? extends ASTVariable> collection) voidaddAssignments(int index, String element) booleanaddAssignments(String element) voidaddImports(int index, String element) booleanaddImports(String element) voidaddVariable(int index, ASTVariable element) booleanaddVariable(ASTVariable element) voidvoidvoidbooleancontainsAllAssignments(Collection<?> collection) booleancontainsAllImports(Collection<?> collection) booleancontainsAllVariables(Collection<?> collection) booleancontainsAssignments(Object element) booleancontainsImports(Object element) booleancontainsVariable(Object element) deepClone(ASTTransformationStructure result) booleandeepEquals(Object o) booleandeepEquals(Object o, boolean forceSameOrder) booleanbooleandeepEqualsWithComments(Object o, boolean forceSameOrder) booleanbooleanbooleanbooleanbooleanvoidforEachAssignments(Consumer<? super String> action) voidforEachImports(Consumer<? super String> action) voidforEachVariables(Consumer<? super ASTVariable> action) getAssignments(int index) getImports(int index) getVariable(int index) intintintintindexOfAssignments(Object element) intindexOfImports(Object element) intindexOfVariable(Object element) booleanbooleanbooleanbooleanisTop()intlastIndexOfAssignments(Object element) intlastIndexOfImports(Object element) intlastIndexOfVariable(Object element) listIteratorAssignments(int index) listIteratorImports(int index) listIteratorVariables(int index) booleanremoveAllAssignments(Collection<?> collection) booleanremoveAllImports(Collection<?> collection) booleanremoveAllVariables(Collection<?> collection) removeAssignments(int index) booleanremoveAssignments(Object element) booleanremoveIfAssignments(Predicate<? super String> filter) booleanremoveIfImports(Predicate<? super String> filter) booleanremoveIfVariable(Predicate<? super ASTVariable> filter) removeImports(int index) booleanremoveImports(Object element) removeVariable(int index) booleanremoveVariable(Object element) voidreplaceAllAssignments(UnaryOperator<String> operator) voidreplaceAllImports(UnaryOperator<String> operator) voidreplaceAllVariables(UnaryOperator<ASTVariable> operator) voidreplaceChild(de.monticore.ast.ASTNode currentChild, de.monticore.ast.ASTNode replacement) booleanretainAllAssignments(Collection<?> collection) booleanretainAllImports(Collection<?> collection) booleanretainAllVariables(Collection<?> collection) setAssignments(int index, String element) voidsetAssignmentsList(List<String> assignments) voidsetClassname(String classname) voidsetConstraintExpression(String constraintExpression) voidsetDoStatement(String doStatement) voidsetEnclosingScope(IMCBasicsScope enclosingScope) voidsetEnclosingScope(IODRuleGenerationScope enclosingScope) voidsetEnclosingScope(IMCBasicTypesScope enclosingScope) voidsetEnclosingScope(IMCCollectionTypesScope enclosingScope) voidsetEnclosingScope(IMCFullGenericTypesScope enclosingScope) voidsetEnclosingScope(IMCSimpleGenericTypesScope enclosingScope) setImports(int index, String element) voidsetImportsList(List<String> imports) voidsetPackage(String r__package) voidsetPattern(ASTPattern pattern) voidsetReplacement(ASTReplacement replacement) voidsetTop(boolean top) voidsetUndoStatement(String undoStatement) setVariable(int index, ASTVariable element) voidsetVariableList(List<ASTVariable> variables) intintintvoidsortAssignments(Comparator<? super String> comparator) voidsortImports(Comparator<? super String> comparator) voidsortVariables(Comparator<? super ASTVariable> comparator) subListAssignments(int start, int end) subListImports(int start, int end) subListVariables(int start, int end) Object[]String[]toArrayAssignments(String[] array) Object[]String[]toArrayImports(String[] array) Object[]toArrayVariables(ASTVariable[] 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
-
r__package
-
imports
-
classname
-
pattern
-
replacement
-
constraintExpression
-
doStatement
-
undoStatement
-
assignments
-
variables
-
top
protected boolean top -
enclosingScope
-
-
Constructor Details
-
ASTTransformationStructureTOP
protected ASTTransformationStructureTOP()
-
-
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
-
replaceChild
public void replaceChild(de.monticore.ast.ASTNode currentChild, de.monticore.ast.ASTNode replacement) - Specified by:
replaceChildin interfacede.monticore.ast.ASTNode
-
deepClone
-
getPackage
-
containsImports
-
containsAllImports
-
isEmptyImports
public boolean isEmptyImports() -
iteratorImports
-
sizeImports
public int sizeImports() -
toArrayImports
-
toArrayImports
-
spliteratorImports
-
streamImports
-
parallelStreamImports
-
getImports
-
indexOfImports
-
lastIndexOfImports
-
equalsImports
-
hashCodeImports
public int hashCodeImports() -
listIteratorImports
-
listIteratorImports
-
subListImports
-
getImportsList
-
getClassname
-
getPattern
-
getReplacement
-
getConstraintExpression
-
getDoStatement
-
getUndoStatement
-
containsAssignments
-
containsAllAssignments
-
isEmptyAssignments
public boolean isEmptyAssignments() -
iteratorAssignments
-
sizeAssignments
public int sizeAssignments() -
toArrayAssignments
-
toArrayAssignments
-
spliteratorAssignments
-
streamAssignments
-
parallelStreamAssignments
-
getAssignments
-
indexOfAssignments
-
lastIndexOfAssignments
-
equalsAssignments
-
hashCodeAssignments
public int hashCodeAssignments() -
listIteratorAssignments
-
listIteratorAssignments
-
subListAssignments
-
getAssignmentsList
-
containsVariable
-
containsAllVariables
-
isEmptyVariables
public boolean isEmptyVariables() -
iteratorVariables
-
sizeVariables
public int sizeVariables() -
toArrayVariables
-
toArrayVariables
-
spliteratorVariables
-
streamVariables
-
parallelStreamVariables
-
getVariable
-
indexOfVariable
-
lastIndexOfVariable
-
equalsVariables
-
hashCodeVariables
public int hashCodeVariables() -
listIteratorVariables
-
listIteratorVariables
-
subListVariables
-
getVariableList
-
isTop
public boolean isTop() -
setPackage
-
clearImports
public void clearImports() -
addImports
-
addAllImports
-
removeImports
-
removeAllImports
-
retainAllImports
-
removeIfImports
-
forEachImports
-
addImports
-
addAllImports
-
removeImports
-
setImports
-
replaceAllImports
-
sortImports
-
setImportsList
-
setClassname
-
setPattern
-
setReplacement
-
setConstraintExpression
-
setDoStatement
-
setUndoStatement
-
clearAssignments
public void clearAssignments() -
addAssignments
-
addAllAssignments
-
removeAssignments
-
removeAllAssignments
-
retainAllAssignments
-
removeIfAssignments
-
forEachAssignments
-
addAssignments
-
addAllAssignments
-
removeAssignments
-
setAssignments
-
replaceAllAssignments
-
sortAssignments
-
setAssignmentsList
-
clearVariables
public void clearVariables() -
addVariable
-
addAllVariables
-
removeVariable
-
removeAllVariables
-
retainAllVariables
-
removeIfVariable
-
forEachVariables
-
addVariable
-
addAllVariables
-
removeVariable
-
setVariable
-
replaceAllVariables
-
sortVariables
-
setVariableList
-
setTop
public void setTop(boolean top) -
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
-