Class ASTASTRuleBuilder
java.lang.Object
de.monticore.ast.ASTNodeBuilder<ASTASTRuleBuilder>
de.monticore.grammar.grammar._ast.ASTASTRuleBuilder
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected List<ASTAdditionalAttribute> protected List<ASTGrammarMethod> protected ASTASTRuleBuilderprotected StringFields 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) addAdditionalAttribute(int index, ASTAdditionalAttribute element) 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) addAllAdditionalAttributes(int index, Collection<? extends ASTAdditionalAttribute> collection) addAllAdditionalAttributes(Collection<? extends ASTAdditionalAttribute> collection) addAllASTSuperClass(int index, Collection<? extends ASTMCType> collection) addAllASTSuperClass(Collection<? extends ASTMCType> collection) addAllASTSuperInterface(int index, Collection<? extends ASTMCType> collection) addAllASTSuperInterface(Collection<? extends ASTMCType> collection) addAllGrammarMethods(int index, Collection<? extends ASTGrammarMethod> collection) addAllGrammarMethods(Collection<? extends ASTGrammarMethod> collection) addASTSuperClass(int index, ASTMCType element) addASTSuperClass(ASTMCType element) addASTSuperInterface(int index, ASTMCType element) addASTSuperInterface(ASTMCType element) addGrammarMethod(int index, ASTGrammarMethod element) addGrammarMethod(ASTGrammarMethod element) build()booleancontainsAdditionalAttribute(Object element) booleancontainsAllAdditionalAttributes(Collection<?> collection) booleancontainsAllASTSuperClass(Collection<?> collection) booleancontainsAllASTSuperInterface(Collection<?> collection) booleancontainsAllGrammarMethods(Collection<?> collection) booleancontainsASTSuperClass(Object element) booleancontainsASTSuperInterface(Object element) booleancontainsGrammarMethod(Object element) booleanbooleanbooleanbooleanforEach_PostComments(Consumer<? super de.monticore.ast.Comment> action) forEach_PreComments(Consumer<? super de.monticore.ast.Comment> action) forEachAdditionalAttributes(Consumer<? super ASTAdditionalAttribute> action) forEachASTSuperClass(Consumer<? super ASTMCType> action) forEachASTSuperInterface(Consumer<? super ASTMCType> action) forEachGrammarMethods(Consumer<? super ASTGrammarMethod> action) getAdditionalAttribute(int index) getASTSuperClass(int index) getASTSuperInterface(int index) getGrammarMethod(int index) getType()intintintintintindexOfAdditionalAttribute(Object element) intindexOfASTSuperClass(Object element) intindexOfASTSuperInterface(Object element) intindexOfGrammarMethod(Object element) booleanbooleanbooleanbooleanbooleanisValid()intlastIndexOfAdditionalAttribute(Object element) intlastIndexOfASTSuperClass(Object element) intlastIndexOfASTSuperInterface(Object element) intlastIndexOfGrammarMethod(Object element) listIteratorAdditionalAttributes(int index) listIteratorASTSuperClass(int index) listIteratorASTSuperInterface(int index) listIteratorGrammarMethods(int index) remove_PostComment(int index) remove_PostComment(Object element) remove_PreComment(int index) remove_PreComment(Object element) removeAdditionalAttribute(int index) removeAdditionalAttribute(Object element) removeAll_PostComments(Collection<?> element) removeAll_PreComments(Collection<?> element) removeAllAdditionalAttributes(Collection<?> collection) removeAllASTSuperClass(Collection<?> collection) removeAllASTSuperInterface(Collection<?> collection) removeAllGrammarMethods(Collection<?> collection) removeASTSuperClass(int index) removeASTSuperClass(Object element) removeASTSuperInterface(int index) removeASTSuperInterface(Object element) removeGrammarMethod(int index) removeGrammarMethod(Object element) removeIf_PostComment(Predicate<? super de.monticore.ast.Comment> filter) removeIf_PreComment(Predicate<? super de.monticore.ast.Comment> filter) removeIfAdditionalAttribute(Predicate<? super ASTAdditionalAttribute> filter) removeIfASTSuperClass(Predicate<? super ASTMCType> filter) removeIfASTSuperInterface(Predicate<? super ASTMCType> filter) removeIfGrammarMethod(Predicate<? super ASTGrammarMethod> filter) replaceAll_PostComments(UnaryOperator<de.monticore.ast.Comment> operator) replaceAll_PreComments(UnaryOperator<de.monticore.ast.Comment> operator) replaceAllASTSuperClass(UnaryOperator<ASTMCType> operator) replaceAllASTSuperInterface(UnaryOperator<ASTMCType> operator) retainAll_PostComments(Collection<?> element) retainAll_PreComments(Collection<?> element) retainAllAdditionalAttributes(Collection<?> collection) retainAllASTSuperClass(Collection<?> collection) retainAllASTSuperInterface(Collection<?> collection) retainAllGrammarMethods(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) setAdditionalAttribute(int index, ASTAdditionalAttribute element) setAdditionalAttributesList(List<ASTAdditionalAttribute> additionalAttributes) setASTSuperClass(int index, ASTMCType element) setASTSuperClassList(List<ASTMCType> aSTSuperClass) setASTSuperInterface(int index, ASTMCType element) setASTSuperInterfaceList(List<ASTMCType> aSTSuperInterface) setGrammarMethod(int index, ASTGrammarMethod element) setGrammarMethodsList(List<ASTGrammarMethod> grammarMethods) intintintintsort_PostComments(Comparator<? super de.monticore.ast.Comment> comparator) sort_PreComments(Comparator<? super de.monticore.ast.Comment> comparator) sortAdditionalAttributes(Comparator<? super ASTAdditionalAttribute> comparator) sortASTSuperClass(Comparator<? super ASTMCType> comparator) sortASTSuperInterface(Comparator<? super ASTMCType> comparator) sortGrammarMethods(Comparator<? super ASTGrammarMethod> comparator) subListAdditionalAttributes(int start, int end) subListASTSuperClass(int start, int end) subListASTSuperInterface(int start, int end) subListGrammarMethods(int start, int end) Object[]Object[]toArrayASTSuperClass(ASTMCType[] array) Object[]toArrayASTSuperInterface(ASTMCType[] array) Object[]toArrayGrammarMethods(ASTGrammarMethod[] 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
-
type
-
aSTSuperClass
-
aSTSuperInterface
-
grammarMethods
-
additionalAttributes
-
-
Constructor Details
-
ASTASTRuleBuilder
public ASTASTRuleBuilder()
-
-
Method Details
-
build
-
isValid
public boolean isValid() -
getType
-
containsASTSuperClass
-
containsAllASTSuperClass
-
isEmptyASTSuperClass
public boolean isEmptyASTSuperClass() -
iteratorASTSuperClass
-
sizeASTSuperClass
public int sizeASTSuperClass() -
toArrayASTSuperClass
-
toArrayASTSuperClass
-
spliteratorASTSuperClass
-
streamASTSuperClass
-
parallelStreamASTSuperClass
-
getASTSuperClass
-
indexOfASTSuperClass
-
lastIndexOfASTSuperClass
-
equalsASTSuperClass
-
hashCodeASTSuperClass
public int hashCodeASTSuperClass() -
listIteratorASTSuperClass
-
listIteratorASTSuperClass
-
subListASTSuperClass
-
getASTSuperClassList
-
containsASTSuperInterface
-
containsAllASTSuperInterface
-
isEmptyASTSuperInterface
public boolean isEmptyASTSuperInterface() -
iteratorASTSuperInterface
-
sizeASTSuperInterface
public int sizeASTSuperInterface() -
toArrayASTSuperInterface
-
toArrayASTSuperInterface
-
spliteratorASTSuperInterface
-
streamASTSuperInterface
-
parallelStreamASTSuperInterface
-
getASTSuperInterface
-
indexOfASTSuperInterface
-
lastIndexOfASTSuperInterface
-
equalsASTSuperInterface
-
hashCodeASTSuperInterface
public int hashCodeASTSuperInterface() -
listIteratorASTSuperInterface
-
listIteratorASTSuperInterface
-
subListASTSuperInterface
-
getASTSuperInterfaceList
-
containsGrammarMethod
-
containsAllGrammarMethods
-
isEmptyGrammarMethods
public boolean isEmptyGrammarMethods() -
iteratorGrammarMethods
-
sizeGrammarMethods
public int sizeGrammarMethods() -
toArrayGrammarMethods
-
toArrayGrammarMethods
-
spliteratorGrammarMethods
-
streamGrammarMethods
-
parallelStreamGrammarMethods
-
getGrammarMethod
-
indexOfGrammarMethod
-
lastIndexOfGrammarMethod
-
equalsGrammarMethods
-
hashCodeGrammarMethods
public int hashCodeGrammarMethods() -
listIteratorGrammarMethods
-
listIteratorGrammarMethods
-
subListGrammarMethods
-
getGrammarMethodList
-
containsAdditionalAttribute
-
containsAllAdditionalAttributes
-
isEmptyAdditionalAttributes
public boolean isEmptyAdditionalAttributes() -
iteratorAdditionalAttributes
-
sizeAdditionalAttributes
public int sizeAdditionalAttributes() -
toArrayAdditionalAttributes
-
toArrayAdditionalAttributes
-
spliteratorAdditionalAttributes
-
streamAdditionalAttributes
-
parallelStreamAdditionalAttributes
-
getAdditionalAttribute
-
indexOfAdditionalAttribute
-
lastIndexOfAdditionalAttribute
-
equalsAdditionalAttributes
-
hashCodeAdditionalAttributes
public int hashCodeAdditionalAttributes() -
listIteratorAdditionalAttributes
-
listIteratorAdditionalAttributes
-
subListAdditionalAttributes
-
getAdditionalAttributeList
-
setType
-
clearASTSuperClass
-
addASTSuperClass
-
addAllASTSuperClass
-
removeASTSuperClass
-
removeAllASTSuperClass
-
retainAllASTSuperClass
-
removeIfASTSuperClass
-
forEachASTSuperClass
-
addASTSuperClass
-
addAllASTSuperClass
-
removeASTSuperClass
-
setASTSuperClass
-
replaceAllASTSuperClass
-
sortASTSuperClass
-
setASTSuperClassList
-
clearASTSuperInterface
-
addASTSuperInterface
-
addAllASTSuperInterface
-
removeASTSuperInterface
-
removeAllASTSuperInterface
-
retainAllASTSuperInterface
-
removeIfASTSuperInterface
-
forEachASTSuperInterface
-
addASTSuperInterface
-
addAllASTSuperInterface
public ASTASTRuleBuilder addAllASTSuperInterface(int index, Collection<? extends ASTMCType> collection) -
removeASTSuperInterface
-
setASTSuperInterface
-
replaceAllASTSuperInterface
-
sortASTSuperInterface
-
setASTSuperInterfaceList
-
clearGrammarMethods
-
addGrammarMethod
-
addAllGrammarMethods
-
removeGrammarMethod
-
removeAllGrammarMethods
-
retainAllGrammarMethods
-
removeIfGrammarMethod
-
forEachGrammarMethods
-
addGrammarMethod
-
addAllGrammarMethods
public ASTASTRuleBuilder addAllGrammarMethods(int index, Collection<? extends ASTGrammarMethod> collection) -
removeGrammarMethod
-
setGrammarMethod
-
replaceAllGrammarMethods
-
sortGrammarMethods
-
setGrammarMethodsList
-
clearAdditionalAttributes
-
addAdditionalAttribute
-
addAllAdditionalAttributes
public ASTASTRuleBuilder addAllAdditionalAttributes(Collection<? extends ASTAdditionalAttribute> collection) -
removeAdditionalAttribute
-
removeAllAdditionalAttributes
-
retainAllAdditionalAttributes
-
removeIfAdditionalAttribute
public ASTASTRuleBuilder removeIfAdditionalAttribute(Predicate<? super ASTAdditionalAttribute> filter) -
forEachAdditionalAttributes
public ASTASTRuleBuilder forEachAdditionalAttributes(Consumer<? super ASTAdditionalAttribute> action) -
addAdditionalAttribute
-
addAllAdditionalAttributes
public ASTASTRuleBuilder addAllAdditionalAttributes(int index, Collection<? extends ASTAdditionalAttribute> collection) -
removeAdditionalAttribute
-
setAdditionalAttribute
-
replaceAllAdditionalAttributes
public ASTASTRuleBuilder replaceAllAdditionalAttributes(UnaryOperator<ASTAdditionalAttribute> operator) -
sortAdditionalAttributes
public ASTASTRuleBuilder sortAdditionalAttributes(Comparator<? super ASTAdditionalAttribute> comparator) -
setAdditionalAttributesList
public ASTASTRuleBuilder setAdditionalAttributesList(List<ASTAdditionalAttribute> additionalAttributes) -
set_SourcePositionEnd
- Overrides:
set_SourcePositionEndin classde.monticore.ast.ASTNodeBuilder<ASTASTRuleBuilder>
-
set_SourcePositionEndAbsent
- Overrides:
set_SourcePositionEndAbsentin classde.monticore.ast.ASTNodeBuilder<ASTASTRuleBuilder>
-
set_SourcePositionStart
- Overrides:
set_SourcePositionStartin classde.monticore.ast.ASTNodeBuilder<ASTASTRuleBuilder>
-
set_SourcePositionStartAbsent
- Overrides:
set_SourcePositionStartAbsentin classde.monticore.ast.ASTNodeBuilder<ASTASTRuleBuilder>
-
clear_PreComments
- Overrides:
clear_PreCommentsin classde.monticore.ast.ASTNodeBuilder<ASTASTRuleBuilder>
-
add_PreComment
- Overrides:
add_PreCommentin classde.monticore.ast.ASTNodeBuilder<ASTASTRuleBuilder>
-
add_PreComment
- Overrides:
add_PreCommentin classde.monticore.ast.ASTNodeBuilder<ASTASTRuleBuilder>
-
addAll_PreComments
- Overrides:
addAll_PreCommentsin classde.monticore.ast.ASTNodeBuilder<ASTASTRuleBuilder>
-
addAll_PreComments
public ASTASTRuleBuilder addAll_PreComments(int index, Collection<de.monticore.ast.Comment> precomments) - Overrides:
addAll_PreCommentsin classde.monticore.ast.ASTNodeBuilder<ASTASTRuleBuilder>
-
remove_PreComment
- Overrides:
remove_PreCommentin classde.monticore.ast.ASTNodeBuilder<ASTASTRuleBuilder>
-
remove_PreComment
- Overrides:
remove_PreCommentin classde.monticore.ast.ASTNodeBuilder<ASTASTRuleBuilder>
-
removeAll_PreComments
- Overrides:
removeAll_PreCommentsin classde.monticore.ast.ASTNodeBuilder<ASTASTRuleBuilder>
-
retainAll_PreComments
- Overrides:
retainAll_PreCommentsin classde.monticore.ast.ASTNodeBuilder<ASTASTRuleBuilder>
-
removeIf_PreComment
- Overrides:
removeIf_PreCommentin classde.monticore.ast.ASTNodeBuilder<ASTASTRuleBuilder>
-
forEach_PreComments
- Overrides:
forEach_PreCommentsin classde.monticore.ast.ASTNodeBuilder<ASTASTRuleBuilder>
-
replaceAll_PreComments
- Overrides:
replaceAll_PreCommentsin classde.monticore.ast.ASTNodeBuilder<ASTASTRuleBuilder>
-
sort_PreComments
- Overrides:
sort_PreCommentsin classde.monticore.ast.ASTNodeBuilder<ASTASTRuleBuilder>
-
set_PreCommentList
- Overrides:
set_PreCommentListin classde.monticore.ast.ASTNodeBuilder<ASTASTRuleBuilder>
-
set_PreComment
- Overrides:
set_PreCommentin classde.monticore.ast.ASTNodeBuilder<ASTASTRuleBuilder>
-
clear_PostComments
- Overrides:
clear_PostCommentsin classde.monticore.ast.ASTNodeBuilder<ASTASTRuleBuilder>
-
add_PostComment
- Overrides:
add_PostCommentin classde.monticore.ast.ASTNodeBuilder<ASTASTRuleBuilder>
-
add_PostComment
- Overrides:
add_PostCommentin classde.monticore.ast.ASTNodeBuilder<ASTASTRuleBuilder>
-
addAll_PostComments
- Overrides:
addAll_PostCommentsin classde.monticore.ast.ASTNodeBuilder<ASTASTRuleBuilder>
-
addAll_PostComments
public ASTASTRuleBuilder addAll_PostComments(int index, Collection<de.monticore.ast.Comment> postcomments) - Overrides:
addAll_PostCommentsin classde.monticore.ast.ASTNodeBuilder<ASTASTRuleBuilder>
-
remove_PostComment
- Overrides:
remove_PostCommentin classde.monticore.ast.ASTNodeBuilder<ASTASTRuleBuilder>
-
remove_PostComment
- Overrides:
remove_PostCommentin classde.monticore.ast.ASTNodeBuilder<ASTASTRuleBuilder>
-
removeAll_PostComments
- Overrides:
removeAll_PostCommentsin classde.monticore.ast.ASTNodeBuilder<ASTASTRuleBuilder>
-
retainAll_PostComments
- Overrides:
retainAll_PostCommentsin classde.monticore.ast.ASTNodeBuilder<ASTASTRuleBuilder>
-
removeIf_PostComment
- Overrides:
removeIf_PostCommentin classde.monticore.ast.ASTNodeBuilder<ASTASTRuleBuilder>
-
forEach_PostComments
- Overrides:
forEach_PostCommentsin classde.monticore.ast.ASTNodeBuilder<ASTASTRuleBuilder>
-
replaceAll_PostComments
- Overrides:
replaceAll_PostCommentsin classde.monticore.ast.ASTNodeBuilder<ASTASTRuleBuilder>
-
sort_PostComments
- Overrides:
sort_PostCommentsin classde.monticore.ast.ASTNodeBuilder<ASTASTRuleBuilder>
-
set_PostCommentList
- Overrides:
set_PostCommentListin classde.monticore.ast.ASTNodeBuilder<ASTASTRuleBuilder>
-
set_PostComment
- Overrides:
set_PostCommentin classde.monticore.ast.ASTNodeBuilder<ASTASTRuleBuilder>
-
uncheckedBuild
-