Class ASTGrammarOptionBuilder
java.lang.Object
de.monticore.ast.ASTNodeBuilder<ASTGrammarOptionBuilder>
de.monticore.grammar.grammar._ast.ASTGrammarOptionBuilder
public class ASTGrammarOptionBuilder
extends de.monticore.ast.ASTNodeBuilder<ASTGrammarOptionBuilder>
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected List<ASTAntlrOption> protected List<ASTFollowOption> protected List<ASTKeywordOption> protected ASTGrammarOptionBuilderFields 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) addAllAntlrOptions(int index, Collection<? extends ASTAntlrOption> collection) addAllAntlrOptions(Collection<? extends ASTAntlrOption> collection) addAllFollowOptions(int index, Collection<? extends ASTFollowOption> collection) addAllFollowOptions(Collection<? extends ASTFollowOption> collection) addAllKeywordOptions(int index, Collection<? extends ASTKeywordOption> collection) addAllKeywordOptions(Collection<? extends ASTKeywordOption> collection) addAntlrOption(int index, ASTAntlrOption element) addAntlrOption(ASTAntlrOption element) addFollowOption(int index, ASTFollowOption element) addFollowOption(ASTFollowOption element) addKeywordOption(int index, ASTKeywordOption element) addKeywordOption(ASTKeywordOption element) build()booleancontainsAllAntlrOptions(Collection<?> collection) booleancontainsAllFollowOptions(Collection<?> collection) booleancontainsAllKeywordOptions(Collection<?> collection) booleancontainsAntlrOption(Object element) booleancontainsFollowOption(Object element) booleancontainsKeywordOption(Object element) booleanbooleanbooleanforEach_PostComments(Consumer<? super de.monticore.ast.Comment> action) forEach_PreComments(Consumer<? super de.monticore.ast.Comment> action) forEachAntlrOptions(Consumer<? super ASTAntlrOption> action) forEachFollowOptions(Consumer<? super ASTFollowOption> action) forEachKeywordOptions(Consumer<? super ASTKeywordOption> action) getAntlrOption(int index) getFollowOption(int index) getKeywordOption(int index) intintintintindexOfAntlrOption(Object element) intindexOfFollowOption(Object element) intindexOfKeywordOption(Object element) booleanbooleanbooleanbooleanisValid()intlastIndexOfAntlrOption(Object element) intlastIndexOfFollowOption(Object element) intlastIndexOfKeywordOption(Object element) listIteratorAntlrOptions(int index) listIteratorFollowOptions(int index) listIteratorKeywordOptions(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) removeAllAntlrOptions(Collection<?> collection) removeAllFollowOptions(Collection<?> collection) removeAllKeywordOptions(Collection<?> collection) removeAntlrOption(int index) removeAntlrOption(Object element) removeFollowOption(int index) removeFollowOption(Object element) removeIf_PostComment(Predicate<? super de.monticore.ast.Comment> filter) removeIf_PreComment(Predicate<? super de.monticore.ast.Comment> filter) removeIfAntlrOption(Predicate<? super ASTAntlrOption> filter) removeIfFollowOption(Predicate<? super ASTFollowOption> filter) removeIfKeywordOption(Predicate<? super ASTKeywordOption> filter) removeKeywordOption(int index) removeKeywordOption(Object element) replaceAll_PostComments(UnaryOperator<de.monticore.ast.Comment> operator) replaceAll_PreComments(UnaryOperator<de.monticore.ast.Comment> operator) replaceAllAntlrOptions(UnaryOperator<ASTAntlrOption> operator) replaceAllFollowOptions(UnaryOperator<ASTFollowOption> operator) retainAll_PostComments(Collection<?> element) retainAll_PreComments(Collection<?> element) retainAllAntlrOptions(Collection<?> collection) retainAllFollowOptions(Collection<?> collection) retainAllKeywordOptions(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) setAntlrOption(int index, ASTAntlrOption element) setAntlrOptionsList(List<ASTAntlrOption> antlrOptions) setFollowOption(int index, ASTFollowOption element) setFollowOptionsList(List<ASTFollowOption> followOptions) setKeywordOption(int index, ASTKeywordOption element) setKeywordOptionsList(List<ASTKeywordOption> keywordOptions) intintintsort_PostComments(Comparator<? super de.monticore.ast.Comment> comparator) sort_PreComments(Comparator<? super de.monticore.ast.Comment> comparator) sortAntlrOptions(Comparator<? super ASTAntlrOption> comparator) sortFollowOptions(Comparator<? super ASTFollowOption> comparator) sortKeywordOptions(Comparator<? super ASTKeywordOption> comparator) subListAntlrOptions(int start, int end) subListFollowOptions(int start, int end) subListKeywordOptions(int start, int end) Object[]toArrayAntlrOptions(ASTAntlrOption[] array) Object[]toArrayFollowOptions(ASTFollowOption[] array) Object[]toArrayKeywordOptions(ASTKeywordOption[] 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
-
followOptions
-
antlrOptions
-
keywordOptions
-
-
Constructor Details
-
ASTGrammarOptionBuilder
public ASTGrammarOptionBuilder()
-
-
Method Details
-
build
-
isValid
public boolean isValid() -
containsFollowOption
-
containsAllFollowOptions
-
isEmptyFollowOptions
public boolean isEmptyFollowOptions() -
iteratorFollowOptions
-
sizeFollowOptions
public int sizeFollowOptions() -
toArrayFollowOptions
-
toArrayFollowOptions
-
spliteratorFollowOptions
-
streamFollowOptions
-
parallelStreamFollowOptions
-
getFollowOption
-
indexOfFollowOption
-
lastIndexOfFollowOption
-
equalsFollowOptions
-
hashCodeFollowOptions
public int hashCodeFollowOptions() -
listIteratorFollowOptions
-
listIteratorFollowOptions
-
subListFollowOptions
-
getFollowOptionList
-
containsAntlrOption
-
containsAllAntlrOptions
-
isEmptyAntlrOptions
public boolean isEmptyAntlrOptions() -
iteratorAntlrOptions
-
sizeAntlrOptions
public int sizeAntlrOptions() -
toArrayAntlrOptions
-
toArrayAntlrOptions
-
spliteratorAntlrOptions
-
streamAntlrOptions
-
parallelStreamAntlrOptions
-
getAntlrOption
-
indexOfAntlrOption
-
lastIndexOfAntlrOption
-
equalsAntlrOptions
-
hashCodeAntlrOptions
public int hashCodeAntlrOptions() -
listIteratorAntlrOptions
-
listIteratorAntlrOptions
-
subListAntlrOptions
-
getAntlrOptionList
-
containsKeywordOption
-
containsAllKeywordOptions
-
isEmptyKeywordOptions
public boolean isEmptyKeywordOptions() -
iteratorKeywordOptions
-
sizeKeywordOptions
public int sizeKeywordOptions() -
toArrayKeywordOptions
-
toArrayKeywordOptions
-
spliteratorKeywordOptions
-
streamKeywordOptions
-
parallelStreamKeywordOptions
-
getKeywordOption
-
indexOfKeywordOption
-
lastIndexOfKeywordOption
-
equalsKeywordOptions
-
hashCodeKeywordOptions
public int hashCodeKeywordOptions() -
listIteratorKeywordOptions
-
listIteratorKeywordOptions
-
subListKeywordOptions
-
getKeywordOptionList
-
clearFollowOptions
-
addFollowOption
-
addAllFollowOptions
public ASTGrammarOptionBuilder addAllFollowOptions(Collection<? extends ASTFollowOption> collection) -
removeFollowOption
-
removeAllFollowOptions
-
retainAllFollowOptions
-
removeIfFollowOption
-
forEachFollowOptions
-
addFollowOption
-
addAllFollowOptions
public ASTGrammarOptionBuilder addAllFollowOptions(int index, Collection<? extends ASTFollowOption> collection) -
removeFollowOption
-
setFollowOption
-
replaceAllFollowOptions
-
sortFollowOptions
-
setFollowOptionsList
-
clearAntlrOptions
-
addAntlrOption
-
addAllAntlrOptions
-
removeAntlrOption
-
removeAllAntlrOptions
-
retainAllAntlrOptions
-
removeIfAntlrOption
-
forEachAntlrOptions
-
addAntlrOption
-
addAllAntlrOptions
public ASTGrammarOptionBuilder addAllAntlrOptions(int index, Collection<? extends ASTAntlrOption> collection) -
removeAntlrOption
-
setAntlrOption
-
replaceAllAntlrOptions
-
sortAntlrOptions
-
setAntlrOptionsList
-
clearKeywordOptions
-
addKeywordOption
-
addAllKeywordOptions
public ASTGrammarOptionBuilder addAllKeywordOptions(Collection<? extends ASTKeywordOption> collection) -
removeKeywordOption
-
removeAllKeywordOptions
-
retainAllKeywordOptions
-
removeIfKeywordOption
-
forEachKeywordOptions
-
addKeywordOption
-
addAllKeywordOptions
public ASTGrammarOptionBuilder addAllKeywordOptions(int index, Collection<? extends ASTKeywordOption> collection) -
removeKeywordOption
-
setKeywordOption
-
replaceAllKeywordOptions
-
sortKeywordOptions
-
setKeywordOptionsList
-
set_SourcePositionEnd
- Overrides:
set_SourcePositionEndin classde.monticore.ast.ASTNodeBuilder<ASTGrammarOptionBuilder>
-
set_SourcePositionEndAbsent
- Overrides:
set_SourcePositionEndAbsentin classde.monticore.ast.ASTNodeBuilder<ASTGrammarOptionBuilder>
-
set_SourcePositionStart
- Overrides:
set_SourcePositionStartin classde.monticore.ast.ASTNodeBuilder<ASTGrammarOptionBuilder>
-
set_SourcePositionStartAbsent
- Overrides:
set_SourcePositionStartAbsentin classde.monticore.ast.ASTNodeBuilder<ASTGrammarOptionBuilder>
-
clear_PreComments
- Overrides:
clear_PreCommentsin classde.monticore.ast.ASTNodeBuilder<ASTGrammarOptionBuilder>
-
add_PreComment
- Overrides:
add_PreCommentin classde.monticore.ast.ASTNodeBuilder<ASTGrammarOptionBuilder>
-
add_PreComment
- Overrides:
add_PreCommentin classde.monticore.ast.ASTNodeBuilder<ASTGrammarOptionBuilder>
-
addAll_PreComments
- Overrides:
addAll_PreCommentsin classde.monticore.ast.ASTNodeBuilder<ASTGrammarOptionBuilder>
-
addAll_PreComments
public ASTGrammarOptionBuilder addAll_PreComments(int index, Collection<de.monticore.ast.Comment> precomments) - Overrides:
addAll_PreCommentsin classde.monticore.ast.ASTNodeBuilder<ASTGrammarOptionBuilder>
-
remove_PreComment
- Overrides:
remove_PreCommentin classde.monticore.ast.ASTNodeBuilder<ASTGrammarOptionBuilder>
-
remove_PreComment
- Overrides:
remove_PreCommentin classde.monticore.ast.ASTNodeBuilder<ASTGrammarOptionBuilder>
-
removeAll_PreComments
- Overrides:
removeAll_PreCommentsin classde.monticore.ast.ASTNodeBuilder<ASTGrammarOptionBuilder>
-
retainAll_PreComments
- Overrides:
retainAll_PreCommentsin classde.monticore.ast.ASTNodeBuilder<ASTGrammarOptionBuilder>
-
removeIf_PreComment
public ASTGrammarOptionBuilder removeIf_PreComment(Predicate<? super de.monticore.ast.Comment> filter) - Overrides:
removeIf_PreCommentin classde.monticore.ast.ASTNodeBuilder<ASTGrammarOptionBuilder>
-
forEach_PreComments
public ASTGrammarOptionBuilder forEach_PreComments(Consumer<? super de.monticore.ast.Comment> action) - Overrides:
forEach_PreCommentsin classde.monticore.ast.ASTNodeBuilder<ASTGrammarOptionBuilder>
-
replaceAll_PreComments
public ASTGrammarOptionBuilder replaceAll_PreComments(UnaryOperator<de.monticore.ast.Comment> operator) - Overrides:
replaceAll_PreCommentsin classde.monticore.ast.ASTNodeBuilder<ASTGrammarOptionBuilder>
-
sort_PreComments
public ASTGrammarOptionBuilder sort_PreComments(Comparator<? super de.monticore.ast.Comment> comparator) - Overrides:
sort_PreCommentsin classde.monticore.ast.ASTNodeBuilder<ASTGrammarOptionBuilder>
-
set_PreCommentList
- Overrides:
set_PreCommentListin classde.monticore.ast.ASTNodeBuilder<ASTGrammarOptionBuilder>
-
set_PreComment
- Overrides:
set_PreCommentin classde.monticore.ast.ASTNodeBuilder<ASTGrammarOptionBuilder>
-
clear_PostComments
- Overrides:
clear_PostCommentsin classde.monticore.ast.ASTNodeBuilder<ASTGrammarOptionBuilder>
-
add_PostComment
- Overrides:
add_PostCommentin classde.monticore.ast.ASTNodeBuilder<ASTGrammarOptionBuilder>
-
add_PostComment
- Overrides:
add_PostCommentin classde.monticore.ast.ASTNodeBuilder<ASTGrammarOptionBuilder>
-
addAll_PostComments
public ASTGrammarOptionBuilder addAll_PostComments(Collection<de.monticore.ast.Comment> postcomments) - Overrides:
addAll_PostCommentsin classde.monticore.ast.ASTNodeBuilder<ASTGrammarOptionBuilder>
-
addAll_PostComments
public ASTGrammarOptionBuilder addAll_PostComments(int index, Collection<de.monticore.ast.Comment> postcomments) - Overrides:
addAll_PostCommentsin classde.monticore.ast.ASTNodeBuilder<ASTGrammarOptionBuilder>
-
remove_PostComment
- Overrides:
remove_PostCommentin classde.monticore.ast.ASTNodeBuilder<ASTGrammarOptionBuilder>
-
remove_PostComment
- Overrides:
remove_PostCommentin classde.monticore.ast.ASTNodeBuilder<ASTGrammarOptionBuilder>
-
removeAll_PostComments
- Overrides:
removeAll_PostCommentsin classde.monticore.ast.ASTNodeBuilder<ASTGrammarOptionBuilder>
-
retainAll_PostComments
- Overrides:
retainAll_PostCommentsin classde.monticore.ast.ASTNodeBuilder<ASTGrammarOptionBuilder>
-
removeIf_PostComment
public ASTGrammarOptionBuilder removeIf_PostComment(Predicate<? super de.monticore.ast.Comment> filter) - Overrides:
removeIf_PostCommentin classde.monticore.ast.ASTNodeBuilder<ASTGrammarOptionBuilder>
-
forEach_PostComments
public ASTGrammarOptionBuilder forEach_PostComments(Consumer<? super de.monticore.ast.Comment> action) - Overrides:
forEach_PostCommentsin classde.monticore.ast.ASTNodeBuilder<ASTGrammarOptionBuilder>
-
replaceAll_PostComments
public ASTGrammarOptionBuilder replaceAll_PostComments(UnaryOperator<de.monticore.ast.Comment> operator) - Overrides:
replaceAll_PostCommentsin classde.monticore.ast.ASTNodeBuilder<ASTGrammarOptionBuilder>
-
sort_PostComments
public ASTGrammarOptionBuilder sort_PostComments(Comparator<? super de.monticore.ast.Comment> comparator) - Overrides:
sort_PostCommentsin classde.monticore.ast.ASTNodeBuilder<ASTGrammarOptionBuilder>
-
set_PostCommentList
- Overrides:
set_PostCommentListin classde.monticore.ast.ASTNodeBuilder<ASTGrammarOptionBuilder>
-
set_PostComment
- Overrides:
set_PostCommentin classde.monticore.ast.ASTNodeBuilder<ASTGrammarOptionBuilder>
-
uncheckedBuild
-