Class ASTLocalVariableDeclarationBuilder
java.lang.Object
de.monticore.ast.ASTNodeBuilder<ASTLocalVariableDeclarationBuilder>
de.monticore.statements.mcvardeclarationstatements._ast.ASTLocalVariableDeclarationBuilder
public class ASTLocalVariableDeclarationBuilder
extends de.monticore.ast.ASTNodeBuilder<ASTLocalVariableDeclarationBuilder>
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected List<ASTMCModifier> protected ASTMCTypeprotected ASTLocalVariableDeclarationBuilderprotected List<ASTVariableDeclarator> 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) addAllMCModifiers(int index, Collection<? extends ASTMCModifier> collection) addAllMCModifiers(Collection<? extends ASTMCModifier> collection) addAllVariableDeclarators(int index, Collection<? extends ASTVariableDeclarator> collection) addAllVariableDeclarators(Collection<? extends ASTVariableDeclarator> collection) addMCModifier(int index, ASTMCModifier element) addMCModifier(ASTMCModifier element) addVariableDeclarator(int index, ASTVariableDeclarator element) build()booleancontainsAllMCModifiers(Collection<?> collection) booleancontainsAllVariableDeclarators(Collection<?> collection) booleancontainsMCModifier(Object element) booleancontainsVariableDeclarator(Object element) booleanbooleanforEach_PostComments(Consumer<? super de.monticore.ast.Comment> action) forEach_PreComments(Consumer<? super de.monticore.ast.Comment> action) forEachMCModifiers(Consumer<? super ASTMCModifier> action) forEachVariableDeclarators(Consumer<? super ASTVariableDeclarator> action) getMCModifier(int index) getVariableDeclarator(int index) intintintindexOfMCModifier(Object element) intindexOfVariableDeclarator(Object element) booleanbooleanbooleanisValid()intlastIndexOfMCModifier(Object element) intlastIndexOfVariableDeclarator(Object element) listIteratorMCModifiers(int index) listIteratorVariableDeclarators(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) removeAllMCModifiers(Collection<?> collection) removeAllVariableDeclarators(Collection<?> collection) removeIf_PostComment(Predicate<? super de.monticore.ast.Comment> filter) removeIf_PreComment(Predicate<? super de.monticore.ast.Comment> filter) removeIfMCModifier(Predicate<? super ASTMCModifier> filter) removeIfVariableDeclarator(Predicate<? super ASTVariableDeclarator> filter) removeMCModifier(int index) removeMCModifier(Object element) removeVariableDeclarator(int index) removeVariableDeclarator(Object element) replaceAll_PostComments(UnaryOperator<de.monticore.ast.Comment> operator) replaceAll_PreComments(UnaryOperator<de.monticore.ast.Comment> operator) replaceAllMCModifiers(UnaryOperator<ASTMCModifier> operator) retainAll_PostComments(Collection<?> element) retainAll_PreComments(Collection<?> element) retainAllMCModifiers(Collection<?> collection) retainAllVariableDeclarators(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) setMCModifier(int index, ASTMCModifier element) setMCModifiersList(List<ASTMCModifier> mCModifiers) setVariableDeclarator(int index, ASTVariableDeclarator element) setVariableDeclaratorsList(List<ASTVariableDeclarator> variableDeclarators) intintsort_PostComments(Comparator<? super de.monticore.ast.Comment> comparator) sort_PreComments(Comparator<? super de.monticore.ast.Comment> comparator) sortMCModifiers(Comparator<? super ASTMCModifier> comparator) sortVariableDeclarators(Comparator<? super ASTVariableDeclarator> comparator) subListMCModifiers(int start, int end) subListVariableDeclarators(int start, int end) Object[]toArrayMCModifiers(ASTMCModifier[] array) 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
-
mCModifiers
-
mCType
-
variableDeclarators
-
-
Constructor Details
-
ASTLocalVariableDeclarationBuilder
public ASTLocalVariableDeclarationBuilder()
-
-
Method Details
-
build
-
isValid
public boolean isValid() -
containsMCModifier
-
containsAllMCModifiers
-
isEmptyMCModifiers
public boolean isEmptyMCModifiers() -
iteratorMCModifiers
-
sizeMCModifiers
public int sizeMCModifiers() -
toArrayMCModifiers
-
toArrayMCModifiers
-
spliteratorMCModifiers
-
streamMCModifiers
-
parallelStreamMCModifiers
-
getMCModifier
-
indexOfMCModifier
-
lastIndexOfMCModifier
-
equalsMCModifiers
-
hashCodeMCModifiers
public int hashCodeMCModifiers() -
listIteratorMCModifiers
-
listIteratorMCModifiers
-
subListMCModifiers
-
getMCModifierList
-
getMCType
-
containsVariableDeclarator
-
containsAllVariableDeclarators
-
isEmptyVariableDeclarators
public boolean isEmptyVariableDeclarators() -
iteratorVariableDeclarators
-
sizeVariableDeclarators
public int sizeVariableDeclarators() -
toArrayVariableDeclarators
-
toArrayVariableDeclarators
-
spliteratorVariableDeclarators
-
streamVariableDeclarators
-
parallelStreamVariableDeclarators
-
getVariableDeclarator
-
indexOfVariableDeclarator
-
lastIndexOfVariableDeclarator
-
equalsVariableDeclarators
-
hashCodeVariableDeclarators
public int hashCodeVariableDeclarators() -
listIteratorVariableDeclarators
-
listIteratorVariableDeclarators
-
subListVariableDeclarators
-
getVariableDeclaratorList
-
clearMCModifiers
-
addMCModifier
-
addAllMCModifiers
public ASTLocalVariableDeclarationBuilder addAllMCModifiers(Collection<? extends ASTMCModifier> collection) -
removeMCModifier
-
removeAllMCModifiers
-
retainAllMCModifiers
-
removeIfMCModifier
public ASTLocalVariableDeclarationBuilder removeIfMCModifier(Predicate<? super ASTMCModifier> filter) -
forEachMCModifiers
public ASTLocalVariableDeclarationBuilder forEachMCModifiers(Consumer<? super ASTMCModifier> action) -
addMCModifier
-
addAllMCModifiers
public ASTLocalVariableDeclarationBuilder addAllMCModifiers(int index, Collection<? extends ASTMCModifier> collection) -
removeMCModifier
-
setMCModifier
-
replaceAllMCModifiers
public ASTLocalVariableDeclarationBuilder replaceAllMCModifiers(UnaryOperator<ASTMCModifier> operator) -
sortMCModifiers
public ASTLocalVariableDeclarationBuilder sortMCModifiers(Comparator<? super ASTMCModifier> comparator) -
setMCModifiersList
-
setMCType
-
clearVariableDeclarators
-
addVariableDeclarator
-
addAllVariableDeclarators
public ASTLocalVariableDeclarationBuilder addAllVariableDeclarators(Collection<? extends ASTVariableDeclarator> collection) -
removeVariableDeclarator
-
removeAllVariableDeclarators
-
retainAllVariableDeclarators
-
removeIfVariableDeclarator
public ASTLocalVariableDeclarationBuilder removeIfVariableDeclarator(Predicate<? super ASTVariableDeclarator> filter) -
forEachVariableDeclarators
public ASTLocalVariableDeclarationBuilder forEachVariableDeclarators(Consumer<? super ASTVariableDeclarator> action) -
addVariableDeclarator
public ASTLocalVariableDeclarationBuilder addVariableDeclarator(int index, ASTVariableDeclarator element) -
addAllVariableDeclarators
public ASTLocalVariableDeclarationBuilder addAllVariableDeclarators(int index, Collection<? extends ASTVariableDeclarator> collection) -
removeVariableDeclarator
-
setVariableDeclarator
public ASTLocalVariableDeclarationBuilder setVariableDeclarator(int index, ASTVariableDeclarator element) -
replaceAllVariableDeclarators
public ASTLocalVariableDeclarationBuilder replaceAllVariableDeclarators(UnaryOperator<ASTVariableDeclarator> operator) -
sortVariableDeclarators
public ASTLocalVariableDeclarationBuilder sortVariableDeclarators(Comparator<? super ASTVariableDeclarator> comparator) -
setVariableDeclaratorsList
public ASTLocalVariableDeclarationBuilder setVariableDeclaratorsList(List<ASTVariableDeclarator> variableDeclarators) -
set_SourcePositionEnd
public ASTLocalVariableDeclarationBuilder set_SourcePositionEnd(de.se_rwth.commons.SourcePosition end) - Overrides:
set_SourcePositionEndin classde.monticore.ast.ASTNodeBuilder<ASTLocalVariableDeclarationBuilder>
-
set_SourcePositionEndAbsent
- Overrides:
set_SourcePositionEndAbsentin classde.monticore.ast.ASTNodeBuilder<ASTLocalVariableDeclarationBuilder>
-
set_SourcePositionStart
public ASTLocalVariableDeclarationBuilder set_SourcePositionStart(de.se_rwth.commons.SourcePosition start) - Overrides:
set_SourcePositionStartin classde.monticore.ast.ASTNodeBuilder<ASTLocalVariableDeclarationBuilder>
-
set_SourcePositionStartAbsent
- Overrides:
set_SourcePositionStartAbsentin classde.monticore.ast.ASTNodeBuilder<ASTLocalVariableDeclarationBuilder>
-
clear_PreComments
- Overrides:
clear_PreCommentsin classde.monticore.ast.ASTNodeBuilder<ASTLocalVariableDeclarationBuilder>
-
add_PreComment
- Overrides:
add_PreCommentin classde.monticore.ast.ASTNodeBuilder<ASTLocalVariableDeclarationBuilder>
-
add_PreComment
public ASTLocalVariableDeclarationBuilder add_PreComment(int index, de.monticore.ast.Comment precomment) - Overrides:
add_PreCommentin classde.monticore.ast.ASTNodeBuilder<ASTLocalVariableDeclarationBuilder>
-
addAll_PreComments
public ASTLocalVariableDeclarationBuilder addAll_PreComments(Collection<de.monticore.ast.Comment> precomments) - Overrides:
addAll_PreCommentsin classde.monticore.ast.ASTNodeBuilder<ASTLocalVariableDeclarationBuilder>
-
addAll_PreComments
public ASTLocalVariableDeclarationBuilder addAll_PreComments(int index, Collection<de.monticore.ast.Comment> precomments) - Overrides:
addAll_PreCommentsin classde.monticore.ast.ASTNodeBuilder<ASTLocalVariableDeclarationBuilder>
-
remove_PreComment
- Overrides:
remove_PreCommentin classde.monticore.ast.ASTNodeBuilder<ASTLocalVariableDeclarationBuilder>
-
remove_PreComment
- Overrides:
remove_PreCommentin classde.monticore.ast.ASTNodeBuilder<ASTLocalVariableDeclarationBuilder>
-
removeAll_PreComments
- Overrides:
removeAll_PreCommentsin classde.monticore.ast.ASTNodeBuilder<ASTLocalVariableDeclarationBuilder>
-
retainAll_PreComments
- Overrides:
retainAll_PreCommentsin classde.monticore.ast.ASTNodeBuilder<ASTLocalVariableDeclarationBuilder>
-
removeIf_PreComment
public ASTLocalVariableDeclarationBuilder removeIf_PreComment(Predicate<? super de.monticore.ast.Comment> filter) - Overrides:
removeIf_PreCommentin classde.monticore.ast.ASTNodeBuilder<ASTLocalVariableDeclarationBuilder>
-
forEach_PreComments
public ASTLocalVariableDeclarationBuilder forEach_PreComments(Consumer<? super de.monticore.ast.Comment> action) - Overrides:
forEach_PreCommentsin classde.monticore.ast.ASTNodeBuilder<ASTLocalVariableDeclarationBuilder>
-
replaceAll_PreComments
public ASTLocalVariableDeclarationBuilder replaceAll_PreComments(UnaryOperator<de.monticore.ast.Comment> operator) - Overrides:
replaceAll_PreCommentsin classde.monticore.ast.ASTNodeBuilder<ASTLocalVariableDeclarationBuilder>
-
sort_PreComments
public ASTLocalVariableDeclarationBuilder sort_PreComments(Comparator<? super de.monticore.ast.Comment> comparator) - Overrides:
sort_PreCommentsin classde.monticore.ast.ASTNodeBuilder<ASTLocalVariableDeclarationBuilder>
-
set_PreCommentList
public ASTLocalVariableDeclarationBuilder set_PreCommentList(List<de.monticore.ast.Comment> preComments) - Overrides:
set_PreCommentListin classde.monticore.ast.ASTNodeBuilder<ASTLocalVariableDeclarationBuilder>
-
set_PreComment
public ASTLocalVariableDeclarationBuilder set_PreComment(int index, de.monticore.ast.Comment precomment) - Overrides:
set_PreCommentin classde.monticore.ast.ASTNodeBuilder<ASTLocalVariableDeclarationBuilder>
-
clear_PostComments
- Overrides:
clear_PostCommentsin classde.monticore.ast.ASTNodeBuilder<ASTLocalVariableDeclarationBuilder>
-
add_PostComment
- Overrides:
add_PostCommentin classde.monticore.ast.ASTNodeBuilder<ASTLocalVariableDeclarationBuilder>
-
add_PostComment
public ASTLocalVariableDeclarationBuilder add_PostComment(int index, de.monticore.ast.Comment postcomment) - Overrides:
add_PostCommentin classde.monticore.ast.ASTNodeBuilder<ASTLocalVariableDeclarationBuilder>
-
addAll_PostComments
public ASTLocalVariableDeclarationBuilder addAll_PostComments(Collection<de.monticore.ast.Comment> postcomments) - Overrides:
addAll_PostCommentsin classde.monticore.ast.ASTNodeBuilder<ASTLocalVariableDeclarationBuilder>
-
addAll_PostComments
public ASTLocalVariableDeclarationBuilder addAll_PostComments(int index, Collection<de.monticore.ast.Comment> postcomments) - Overrides:
addAll_PostCommentsin classde.monticore.ast.ASTNodeBuilder<ASTLocalVariableDeclarationBuilder>
-
remove_PostComment
- Overrides:
remove_PostCommentin classde.monticore.ast.ASTNodeBuilder<ASTLocalVariableDeclarationBuilder>
-
remove_PostComment
- Overrides:
remove_PostCommentin classde.monticore.ast.ASTNodeBuilder<ASTLocalVariableDeclarationBuilder>
-
removeAll_PostComments
- Overrides:
removeAll_PostCommentsin classde.monticore.ast.ASTNodeBuilder<ASTLocalVariableDeclarationBuilder>
-
retainAll_PostComments
- Overrides:
retainAll_PostCommentsin classde.monticore.ast.ASTNodeBuilder<ASTLocalVariableDeclarationBuilder>
-
removeIf_PostComment
public ASTLocalVariableDeclarationBuilder removeIf_PostComment(Predicate<? super de.monticore.ast.Comment> filter) - Overrides:
removeIf_PostCommentin classde.monticore.ast.ASTNodeBuilder<ASTLocalVariableDeclarationBuilder>
-
forEach_PostComments
public ASTLocalVariableDeclarationBuilder forEach_PostComments(Consumer<? super de.monticore.ast.Comment> action) - Overrides:
forEach_PostCommentsin classde.monticore.ast.ASTNodeBuilder<ASTLocalVariableDeclarationBuilder>
-
replaceAll_PostComments
public ASTLocalVariableDeclarationBuilder replaceAll_PostComments(UnaryOperator<de.monticore.ast.Comment> operator) - Overrides:
replaceAll_PostCommentsin classde.monticore.ast.ASTNodeBuilder<ASTLocalVariableDeclarationBuilder>
-
sort_PostComments
public ASTLocalVariableDeclarationBuilder sort_PostComments(Comparator<? super de.monticore.ast.Comment> comparator) - Overrides:
sort_PostCommentsin classde.monticore.ast.ASTNodeBuilder<ASTLocalVariableDeclarationBuilder>
-
set_PostCommentList
public ASTLocalVariableDeclarationBuilder set_PostCommentList(List<de.monticore.ast.Comment> postComments) - Overrides:
set_PostCommentListin classde.monticore.ast.ASTNodeBuilder<ASTLocalVariableDeclarationBuilder>
-
set_PostComment
public ASTLocalVariableDeclarationBuilder set_PostComment(int index, de.monticore.ast.Comment postcomment) - Overrides:
set_PostCommentin classde.monticore.ast.ASTNodeBuilder<ASTLocalVariableDeclarationBuilder>
-
uncheckedBuild
-