Class ASTTransformationStructureBuilderTOP
java.lang.Object
de.monticore.ast.ASTNodeBuilder<ASTTransformationStructureBuilder>
de.monticore.tf.odrulegeneration._ast.ASTTransformationStructureBuilderTOP
- Direct Known Subclasses:
ASTTransformationStructureBuilder
public abstract class ASTTransformationStructureBuilderTOP
extends de.monticore.ast.ASTNodeBuilder<ASTTransformationStructureBuilder>
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected Stringprotected Stringprotected Stringprotected ASTPatternprotected Stringprotected ASTTransformationStructureBuilderprotected ASTReplacementprotected booleanprotected Stringprotected List<ASTVariable> Fields 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) addAllAssignments(int index, Collection<? extends String> collection) addAllAssignments(Collection<? extends String> collection) addAllImports(int index, Collection<? extends String> collection) addAllImports(Collection<? extends String> collection) addAllVariables(int index, Collection<? extends ASTVariable> collection) addAllVariables(Collection<? extends ASTVariable> collection) addAssignments(int index, String element) addAssignments(String element) addImports(int index, String element) addImports(String element) addVariable(int index, ASTVariable element) addVariable(ASTVariable element) build()booleancontainsAllAssignments(Collection<?> collection) booleancontainsAllImports(Collection<?> collection) booleancontainsAllVariables(Collection<?> collection) booleancontainsAssignments(Object element) booleancontainsImports(Object element) booleancontainsVariable(Object element) booleanbooleanbooleanforEach_PostComments(Consumer<? super de.monticore.ast.Comment> action) forEach_PreComments(Consumer<? super de.monticore.ast.Comment> action) forEachAssignments(Consumer<? super String> action) forEachImports(Consumer<? super String> action) forEachVariables(Consumer<? super ASTVariable> action) getAssignments(int index) getImports(int index) getVariable(int index) intintintintindexOfAssignments(Object element) intindexOfImports(Object element) intindexOfVariable(Object element) booleanbooleanbooleanbooleanisTop()booleanisValid()intlastIndexOfAssignments(Object element) intlastIndexOfImports(Object element) intlastIndexOfVariable(Object element) listIteratorAssignments(int index) listIteratorImports(int index) listIteratorVariables(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) removeAllAssignments(Collection<?> collection) removeAllImports(Collection<?> collection) removeAllVariables(Collection<?> collection) removeAssignments(int index) removeAssignments(Object element) removeIf_PostComment(Predicate<? super de.monticore.ast.Comment> filter) removeIf_PreComment(Predicate<? super de.monticore.ast.Comment> filter) removeIfAssignments(Predicate<? super String> filter) removeIfImports(Predicate<? super String> filter) removeIfVariable(Predicate<? super ASTVariable> filter) removeImports(int index) removeImports(Object element) removeVariable(int index) removeVariable(Object element) replaceAll_PostComments(UnaryOperator<de.monticore.ast.Comment> operator) replaceAll_PreComments(UnaryOperator<de.monticore.ast.Comment> operator) replaceAllAssignments(UnaryOperator<String> operator) replaceAllImports(UnaryOperator<String> operator) replaceAllVariables(UnaryOperator<ASTVariable> operator) retainAll_PostComments(Collection<?> element) retainAll_PreComments(Collection<?> element) retainAllAssignments(Collection<?> collection) retainAllImports(Collection<?> collection) retainAllVariables(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) setAssignments(int index, String element) setAssignmentsList(List<String> assignments) setClassname(String classname) setConstraintExpression(String constraintExpression) setDoStatement(String doStatement) setImports(int index, String element) setImportsList(List<String> imports) setPackage(String r__package) setPattern(ASTPattern pattern) setReplacement(ASTReplacement replacement) setTop(boolean top) setUndoStatement(String undoStatement) setVariable(int index, ASTVariable element) setVariablesList(List<ASTVariable> variables) intintintsort_PostComments(Comparator<? super de.monticore.ast.Comment> comparator) sort_PreComments(Comparator<? super de.monticore.ast.Comment> comparator) sortAssignments(Comparator<? super String> comparator) sortImports(Comparator<? super String> comparator) sortVariables(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.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
-
r__package
-
imports
-
classname
-
pattern
-
replacement
-
constraintExpression
-
doStatement
-
undoStatement
-
assignments
-
variables
-
top
protected boolean top
-
-
Constructor Details
-
ASTTransformationStructureBuilderTOP
public ASTTransformationStructureBuilderTOP()
-
-
Method Details
-
build
-
isValid
public boolean isValid() -
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
-
addImports
-
addAllImports
-
removeImports
-
removeAllImports
-
retainAllImports
-
removeIfImports
-
forEachImports
-
addImports
-
addAllImports
public ASTTransformationStructureBuilder addAllImports(int index, Collection<? extends String> collection) -
removeImports
-
setImports
-
replaceAllImports
-
sortImports
-
setImportsList
-
setClassname
-
setPattern
-
setReplacement
-
setConstraintExpression
-
setDoStatement
-
setUndoStatement
-
clearAssignments
-
addAssignments
-
addAllAssignments
-
removeAssignments
-
removeAllAssignments
-
retainAllAssignments
-
removeIfAssignments
-
forEachAssignments
-
addAssignments
-
addAllAssignments
public ASTTransformationStructureBuilder addAllAssignments(int index, Collection<? extends String> collection) -
removeAssignments
-
setAssignments
-
replaceAllAssignments
-
sortAssignments
-
setAssignmentsList
-
clearVariables
-
addVariable
-
addAllVariables
public ASTTransformationStructureBuilder addAllVariables(Collection<? extends ASTVariable> collection) -
removeVariable
-
removeAllVariables
-
retainAllVariables
-
removeIfVariable
-
forEachVariables
-
addVariable
-
addAllVariables
public ASTTransformationStructureBuilder addAllVariables(int index, Collection<? extends ASTVariable> collection) -
removeVariable
-
setVariable
-
replaceAllVariables
-
sortVariables
-
setVariablesList
-
setTop
-
set_SourcePositionEnd
public ASTTransformationStructureBuilder set_SourcePositionEnd(de.se_rwth.commons.SourcePosition end) - Overrides:
set_SourcePositionEndin classde.monticore.ast.ASTNodeBuilder<ASTTransformationStructureBuilder>
-
set_SourcePositionEndAbsent
- Overrides:
set_SourcePositionEndAbsentin classde.monticore.ast.ASTNodeBuilder<ASTTransformationStructureBuilder>
-
set_SourcePositionStart
public ASTTransformationStructureBuilder set_SourcePositionStart(de.se_rwth.commons.SourcePosition start) - Overrides:
set_SourcePositionStartin classde.monticore.ast.ASTNodeBuilder<ASTTransformationStructureBuilder>
-
set_SourcePositionStartAbsent
- Overrides:
set_SourcePositionStartAbsentin classde.monticore.ast.ASTNodeBuilder<ASTTransformationStructureBuilder>
-
clear_PreComments
- Overrides:
clear_PreCommentsin classde.monticore.ast.ASTNodeBuilder<ASTTransformationStructureBuilder>
-
add_PreComment
- Overrides:
add_PreCommentin classde.monticore.ast.ASTNodeBuilder<ASTTransformationStructureBuilder>
-
add_PreComment
public ASTTransformationStructureBuilder add_PreComment(int index, de.monticore.ast.Comment precomment) - Overrides:
add_PreCommentin classde.monticore.ast.ASTNodeBuilder<ASTTransformationStructureBuilder>
-
addAll_PreComments
public ASTTransformationStructureBuilder addAll_PreComments(Collection<de.monticore.ast.Comment> precomments) - Overrides:
addAll_PreCommentsin classde.monticore.ast.ASTNodeBuilder<ASTTransformationStructureBuilder>
-
addAll_PreComments
public ASTTransformationStructureBuilder addAll_PreComments(int index, Collection<de.monticore.ast.Comment> precomments) - Overrides:
addAll_PreCommentsin classde.monticore.ast.ASTNodeBuilder<ASTTransformationStructureBuilder>
-
remove_PreComment
- Overrides:
remove_PreCommentin classde.monticore.ast.ASTNodeBuilder<ASTTransformationStructureBuilder>
-
remove_PreComment
- Overrides:
remove_PreCommentin classde.monticore.ast.ASTNodeBuilder<ASTTransformationStructureBuilder>
-
removeAll_PreComments
- Overrides:
removeAll_PreCommentsin classde.monticore.ast.ASTNodeBuilder<ASTTransformationStructureBuilder>
-
retainAll_PreComments
- Overrides:
retainAll_PreCommentsin classde.monticore.ast.ASTNodeBuilder<ASTTransformationStructureBuilder>
-
removeIf_PreComment
public ASTTransformationStructureBuilder removeIf_PreComment(Predicate<? super de.monticore.ast.Comment> filter) - Overrides:
removeIf_PreCommentin classde.monticore.ast.ASTNodeBuilder<ASTTransformationStructureBuilder>
-
forEach_PreComments
public ASTTransformationStructureBuilder forEach_PreComments(Consumer<? super de.monticore.ast.Comment> action) - Overrides:
forEach_PreCommentsin classde.monticore.ast.ASTNodeBuilder<ASTTransformationStructureBuilder>
-
replaceAll_PreComments
public ASTTransformationStructureBuilder replaceAll_PreComments(UnaryOperator<de.monticore.ast.Comment> operator) - Overrides:
replaceAll_PreCommentsin classde.monticore.ast.ASTNodeBuilder<ASTTransformationStructureBuilder>
-
sort_PreComments
public ASTTransformationStructureBuilder sort_PreComments(Comparator<? super de.monticore.ast.Comment> comparator) - Overrides:
sort_PreCommentsin classde.monticore.ast.ASTNodeBuilder<ASTTransformationStructureBuilder>
-
set_PreCommentList
public ASTTransformationStructureBuilder set_PreCommentList(List<de.monticore.ast.Comment> preComments) - Overrides:
set_PreCommentListin classde.monticore.ast.ASTNodeBuilder<ASTTransformationStructureBuilder>
-
set_PreComment
public ASTTransformationStructureBuilder set_PreComment(int index, de.monticore.ast.Comment precomment) - Overrides:
set_PreCommentin classde.monticore.ast.ASTNodeBuilder<ASTTransformationStructureBuilder>
-
clear_PostComments
- Overrides:
clear_PostCommentsin classde.monticore.ast.ASTNodeBuilder<ASTTransformationStructureBuilder>
-
add_PostComment
- Overrides:
add_PostCommentin classde.monticore.ast.ASTNodeBuilder<ASTTransformationStructureBuilder>
-
add_PostComment
public ASTTransformationStructureBuilder add_PostComment(int index, de.monticore.ast.Comment postcomment) - Overrides:
add_PostCommentin classde.monticore.ast.ASTNodeBuilder<ASTTransformationStructureBuilder>
-
addAll_PostComments
public ASTTransformationStructureBuilder addAll_PostComments(Collection<de.monticore.ast.Comment> postcomments) - Overrides:
addAll_PostCommentsin classde.monticore.ast.ASTNodeBuilder<ASTTransformationStructureBuilder>
-
addAll_PostComments
public ASTTransformationStructureBuilder addAll_PostComments(int index, Collection<de.monticore.ast.Comment> postcomments) - Overrides:
addAll_PostCommentsin classde.monticore.ast.ASTNodeBuilder<ASTTransformationStructureBuilder>
-
remove_PostComment
- Overrides:
remove_PostCommentin classde.monticore.ast.ASTNodeBuilder<ASTTransformationStructureBuilder>
-
remove_PostComment
- Overrides:
remove_PostCommentin classde.monticore.ast.ASTNodeBuilder<ASTTransformationStructureBuilder>
-
removeAll_PostComments
- Overrides:
removeAll_PostCommentsin classde.monticore.ast.ASTNodeBuilder<ASTTransformationStructureBuilder>
-
retainAll_PostComments
- Overrides:
retainAll_PostCommentsin classde.monticore.ast.ASTNodeBuilder<ASTTransformationStructureBuilder>
-
removeIf_PostComment
public ASTTransformationStructureBuilder removeIf_PostComment(Predicate<? super de.monticore.ast.Comment> filter) - Overrides:
removeIf_PostCommentin classde.monticore.ast.ASTNodeBuilder<ASTTransformationStructureBuilder>
-
forEach_PostComments
public ASTTransformationStructureBuilder forEach_PostComments(Consumer<? super de.monticore.ast.Comment> action) - Overrides:
forEach_PostCommentsin classde.monticore.ast.ASTNodeBuilder<ASTTransformationStructureBuilder>
-
replaceAll_PostComments
public ASTTransformationStructureBuilder replaceAll_PostComments(UnaryOperator<de.monticore.ast.Comment> operator) - Overrides:
replaceAll_PostCommentsin classde.monticore.ast.ASTNodeBuilder<ASTTransformationStructureBuilder>
-
sort_PostComments
public ASTTransformationStructureBuilder sort_PostComments(Comparator<? super de.monticore.ast.Comment> comparator) - Overrides:
sort_PostCommentsin classde.monticore.ast.ASTNodeBuilder<ASTTransformationStructureBuilder>
-
set_PostCommentList
public ASTTransformationStructureBuilder set_PostCommentList(List<de.monticore.ast.Comment> postComments) - Overrides:
set_PostCommentListin classde.monticore.ast.ASTNodeBuilder<ASTTransformationStructureBuilder>
-
set_PostComment
public ASTTransformationStructureBuilder set_PostComment(int index, de.monticore.ast.Comment postcomment) - Overrides:
set_PostCommentin classde.monticore.ast.ASTNodeBuilder<ASTTransformationStructureBuilder>
-
uncheckedBuild
-