Class ASTJavaCodeBuilder
java.lang.Object
de.monticore.ast.ASTNodeBuilder<ASTJavaCodeBuilder>
de.monticore.grammar.grammar_withconcepts._ast.ASTJavaCodeBuilder
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected List<ASTClassBodyDeclaration> protected ASTJavaCodeBuilderFields 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) addAllClassBodyDeclarations(int index, Collection<? extends ASTClassBodyDeclaration> collection) addAllClassBodyDeclarations(Collection<? extends ASTClassBodyDeclaration> collection) addClassBodyDeclaration(int index, ASTClassBodyDeclaration element) build()booleancontainsAllClassBodyDeclarations(Collection<?> collection) booleancontainsClassBodyDeclaration(Object element) booleanforEach_PostComments(Consumer<? super de.monticore.ast.Comment> action) forEach_PreComments(Consumer<? super de.monticore.ast.Comment> action) forEachClassBodyDeclarations(Consumer<? super ASTClassBodyDeclaration> action) getClassBodyDeclaration(int index) intintindexOfClassBodyDeclaration(Object element) booleanbooleanisValid()intlastIndexOfClassBodyDeclaration(Object element) listIteratorClassBodyDeclarations(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) removeAllClassBodyDeclarations(Collection<?> collection) removeClassBodyDeclaration(int index) removeClassBodyDeclaration(Object element) removeIf_PostComment(Predicate<? super de.monticore.ast.Comment> filter) removeIf_PreComment(Predicate<? super de.monticore.ast.Comment> filter) removeIfClassBodyDeclaration(Predicate<? super ASTClassBodyDeclaration> filter) replaceAll_PostComments(UnaryOperator<de.monticore.ast.Comment> operator) replaceAll_PreComments(UnaryOperator<de.monticore.ast.Comment> operator) retainAll_PostComments(Collection<?> element) retainAll_PreComments(Collection<?> element) retainAllClassBodyDeclarations(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) setClassBodyDeclaration(int index, ASTClassBodyDeclaration element) setClassBodyDeclarationsList(List<ASTClassBodyDeclaration> classBodyDeclarations) intsort_PostComments(Comparator<? super de.monticore.ast.Comment> comparator) sort_PreComments(Comparator<? super de.monticore.ast.Comment> comparator) sortClassBodyDeclarations(Comparator<? super ASTClassBodyDeclaration> comparator) subListClassBodyDeclarations(int start, int end) Object[]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
-
classBodyDeclarations
-
-
Constructor Details
-
ASTJavaCodeBuilder
public ASTJavaCodeBuilder()
-
-
Method Details
-
build
-
isValid
public boolean isValid() -
containsClassBodyDeclaration
-
containsAllClassBodyDeclarations
-
isEmptyClassBodyDeclarations
public boolean isEmptyClassBodyDeclarations() -
iteratorClassBodyDeclarations
-
sizeClassBodyDeclarations
public int sizeClassBodyDeclarations() -
toArrayClassBodyDeclarations
-
toArrayClassBodyDeclarations
-
spliteratorClassBodyDeclarations
-
streamClassBodyDeclarations
-
parallelStreamClassBodyDeclarations
-
getClassBodyDeclaration
-
indexOfClassBodyDeclaration
-
lastIndexOfClassBodyDeclaration
-
equalsClassBodyDeclarations
-
hashCodeClassBodyDeclarations
public int hashCodeClassBodyDeclarations() -
listIteratorClassBodyDeclarations
-
listIteratorClassBodyDeclarations
-
subListClassBodyDeclarations
-
getClassBodyDeclarationList
-
clearClassBodyDeclarations
-
addClassBodyDeclaration
-
addAllClassBodyDeclarations
public ASTJavaCodeBuilder addAllClassBodyDeclarations(Collection<? extends ASTClassBodyDeclaration> collection) -
removeClassBodyDeclaration
-
removeAllClassBodyDeclarations
-
retainAllClassBodyDeclarations
-
removeIfClassBodyDeclaration
public ASTJavaCodeBuilder removeIfClassBodyDeclaration(Predicate<? super ASTClassBodyDeclaration> filter) -
forEachClassBodyDeclarations
public ASTJavaCodeBuilder forEachClassBodyDeclarations(Consumer<? super ASTClassBodyDeclaration> action) -
addClassBodyDeclaration
-
addAllClassBodyDeclarations
public ASTJavaCodeBuilder addAllClassBodyDeclarations(int index, Collection<? extends ASTClassBodyDeclaration> collection) -
removeClassBodyDeclaration
-
setClassBodyDeclaration
-
replaceAllClassBodyDeclarations
public ASTJavaCodeBuilder replaceAllClassBodyDeclarations(UnaryOperator<ASTClassBodyDeclaration> operator) -
sortClassBodyDeclarations
public ASTJavaCodeBuilder sortClassBodyDeclarations(Comparator<? super ASTClassBodyDeclaration> comparator) -
setClassBodyDeclarationsList
public ASTJavaCodeBuilder setClassBodyDeclarationsList(List<ASTClassBodyDeclaration> classBodyDeclarations) -
set_SourcePositionEnd
- Overrides:
set_SourcePositionEndin classde.monticore.ast.ASTNodeBuilder<ASTJavaCodeBuilder>
-
set_SourcePositionEndAbsent
- Overrides:
set_SourcePositionEndAbsentin classde.monticore.ast.ASTNodeBuilder<ASTJavaCodeBuilder>
-
set_SourcePositionStart
- Overrides:
set_SourcePositionStartin classde.monticore.ast.ASTNodeBuilder<ASTJavaCodeBuilder>
-
set_SourcePositionStartAbsent
- Overrides:
set_SourcePositionStartAbsentin classde.monticore.ast.ASTNodeBuilder<ASTJavaCodeBuilder>
-
clear_PreComments
- Overrides:
clear_PreCommentsin classde.monticore.ast.ASTNodeBuilder<ASTJavaCodeBuilder>
-
add_PreComment
- Overrides:
add_PreCommentin classde.monticore.ast.ASTNodeBuilder<ASTJavaCodeBuilder>
-
add_PreComment
- Overrides:
add_PreCommentin classde.monticore.ast.ASTNodeBuilder<ASTJavaCodeBuilder>
-
addAll_PreComments
- Overrides:
addAll_PreCommentsin classde.monticore.ast.ASTNodeBuilder<ASTJavaCodeBuilder>
-
addAll_PreComments
public ASTJavaCodeBuilder addAll_PreComments(int index, Collection<de.monticore.ast.Comment> precomments) - Overrides:
addAll_PreCommentsin classde.monticore.ast.ASTNodeBuilder<ASTJavaCodeBuilder>
-
remove_PreComment
- Overrides:
remove_PreCommentin classde.monticore.ast.ASTNodeBuilder<ASTJavaCodeBuilder>
-
remove_PreComment
- Overrides:
remove_PreCommentin classde.monticore.ast.ASTNodeBuilder<ASTJavaCodeBuilder>
-
removeAll_PreComments
- Overrides:
removeAll_PreCommentsin classde.monticore.ast.ASTNodeBuilder<ASTJavaCodeBuilder>
-
retainAll_PreComments
- Overrides:
retainAll_PreCommentsin classde.monticore.ast.ASTNodeBuilder<ASTJavaCodeBuilder>
-
removeIf_PreComment
- Overrides:
removeIf_PreCommentin classde.monticore.ast.ASTNodeBuilder<ASTJavaCodeBuilder>
-
forEach_PreComments
- Overrides:
forEach_PreCommentsin classde.monticore.ast.ASTNodeBuilder<ASTJavaCodeBuilder>
-
replaceAll_PreComments
- Overrides:
replaceAll_PreCommentsin classde.monticore.ast.ASTNodeBuilder<ASTJavaCodeBuilder>
-
sort_PreComments
- Overrides:
sort_PreCommentsin classde.monticore.ast.ASTNodeBuilder<ASTJavaCodeBuilder>
-
set_PreCommentList
- Overrides:
set_PreCommentListin classde.monticore.ast.ASTNodeBuilder<ASTJavaCodeBuilder>
-
set_PreComment
- Overrides:
set_PreCommentin classde.monticore.ast.ASTNodeBuilder<ASTJavaCodeBuilder>
-
clear_PostComments
- Overrides:
clear_PostCommentsin classde.monticore.ast.ASTNodeBuilder<ASTJavaCodeBuilder>
-
add_PostComment
- Overrides:
add_PostCommentin classde.monticore.ast.ASTNodeBuilder<ASTJavaCodeBuilder>
-
add_PostComment
- Overrides:
add_PostCommentin classde.monticore.ast.ASTNodeBuilder<ASTJavaCodeBuilder>
-
addAll_PostComments
- Overrides:
addAll_PostCommentsin classde.monticore.ast.ASTNodeBuilder<ASTJavaCodeBuilder>
-
addAll_PostComments
public ASTJavaCodeBuilder addAll_PostComments(int index, Collection<de.monticore.ast.Comment> postcomments) - Overrides:
addAll_PostCommentsin classde.monticore.ast.ASTNodeBuilder<ASTJavaCodeBuilder>
-
remove_PostComment
- Overrides:
remove_PostCommentin classde.monticore.ast.ASTNodeBuilder<ASTJavaCodeBuilder>
-
remove_PostComment
- Overrides:
remove_PostCommentin classde.monticore.ast.ASTNodeBuilder<ASTJavaCodeBuilder>
-
removeAll_PostComments
- Overrides:
removeAll_PostCommentsin classde.monticore.ast.ASTNodeBuilder<ASTJavaCodeBuilder>
-
retainAll_PostComments
- Overrides:
retainAll_PostCommentsin classde.monticore.ast.ASTNodeBuilder<ASTJavaCodeBuilder>
-
removeIf_PostComment
- Overrides:
removeIf_PostCommentin classde.monticore.ast.ASTNodeBuilder<ASTJavaCodeBuilder>
-
forEach_PostComments
- Overrides:
forEach_PostCommentsin classde.monticore.ast.ASTNodeBuilder<ASTJavaCodeBuilder>
-
replaceAll_PostComments
- Overrides:
replaceAll_PostCommentsin classde.monticore.ast.ASTNodeBuilder<ASTJavaCodeBuilder>
-
sort_PostComments
public ASTJavaCodeBuilder sort_PostComments(Comparator<? super de.monticore.ast.Comment> comparator) - Overrides:
sort_PostCommentsin classde.monticore.ast.ASTNodeBuilder<ASTJavaCodeBuilder>
-
set_PostCommentList
- Overrides:
set_PostCommentListin classde.monticore.ast.ASTNodeBuilder<ASTJavaCodeBuilder>
-
set_PostComment
- Overrides:
set_PostCommentin classde.monticore.ast.ASTNodeBuilder<ASTJavaCodeBuilder>
-
uncheckedBuild
-