Class ASTSymbolRuleBuilder
java.lang.Object
de.monticore.ast.ASTNodeBuilder<ASTSymbolRuleBuilder>
de.monticore.grammar.grammar._ast.ASTSymbolRuleBuilder
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected List<ASTAdditionalAttribute> protected List<ASTGrammarMethod> protected ASTSymbolRuleBuilderprotected 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) addAllGrammarMethods(int index, Collection<? extends ASTGrammarMethod> collection) addAllGrammarMethods(Collection<? extends ASTGrammarMethod> collection) addAllSuperClass(int index, Collection<? extends ASTMCType> collection) addAllSuperClass(Collection<? extends ASTMCType> collection) addAllSuperInterface(int index, Collection<? extends ASTMCType> collection) addAllSuperInterface(Collection<? extends ASTMCType> collection) addGrammarMethod(int index, ASTGrammarMethod element) addGrammarMethod(ASTGrammarMethod element) addSuperClass(int index, ASTMCType element) addSuperClass(ASTMCType element) addSuperInterface(int index, ASTMCType element) addSuperInterface(ASTMCType element) build()booleancontainsAdditionalAttribute(Object element) booleancontainsAllAdditionalAttributes(Collection<?> collection) booleancontainsAllGrammarMethods(Collection<?> collection) booleancontainsAllSuperClass(Collection<?> collection) booleancontainsAllSuperInterface(Collection<?> collection) booleancontainsGrammarMethod(Object element) booleancontainsSuperClass(Object element) booleancontainsSuperInterface(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) forEachGrammarMethods(Consumer<? super ASTGrammarMethod> action) forEachSuperClass(Consumer<? super ASTMCType> action) forEachSuperInterface(Consumer<? super ASTMCType> action) getAdditionalAttribute(int index) getGrammarMethod(int index) getSuperClass(int index) getSuperInterface(int index) getType()intintintintintindexOfAdditionalAttribute(Object element) intindexOfGrammarMethod(Object element) intindexOfSuperClass(Object element) intindexOfSuperInterface(Object element) booleanbooleanbooleanbooleanbooleanisValid()intlastIndexOfAdditionalAttribute(Object element) intlastIndexOfGrammarMethod(Object element) intlastIndexOfSuperClass(Object element) intlastIndexOfSuperInterface(Object element) listIteratorAdditionalAttributes(int index) listIteratorGrammarMethods(int index) listIteratorSuperClass(int index) listIteratorSuperInterface(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) removeAllGrammarMethods(Collection<?> collection) removeAllSuperClass(Collection<?> collection) removeAllSuperInterface(Collection<?> collection) 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) removeIfGrammarMethod(Predicate<? super ASTGrammarMethod> filter) removeIfSuperClass(Predicate<? super ASTMCType> filter) removeIfSuperInterface(Predicate<? super ASTMCType> filter) removeSuperClass(int index) removeSuperClass(Object element) removeSuperInterface(int index) removeSuperInterface(Object element) replaceAll_PostComments(UnaryOperator<de.monticore.ast.Comment> operator) replaceAll_PreComments(UnaryOperator<de.monticore.ast.Comment> operator) replaceAllSuperClass(UnaryOperator<ASTMCType> operator) replaceAllSuperInterface(UnaryOperator<ASTMCType> operator) retainAll_PostComments(Collection<?> element) retainAll_PreComments(Collection<?> element) retainAllAdditionalAttributes(Collection<?> collection) retainAllGrammarMethods(Collection<?> collection) retainAllSuperClass(Collection<?> collection) retainAllSuperInterface(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) setGrammarMethod(int index, ASTGrammarMethod element) setGrammarMethodsList(List<ASTGrammarMethod> grammarMethods) setSuperClass(int index, ASTMCType element) setSuperClassList(List<ASTMCType> superClass) setSuperInterface(int index, ASTMCType element) setSuperInterfaceList(List<ASTMCType> superInterface) intintintintsort_PostComments(Comparator<? super de.monticore.ast.Comment> comparator) sort_PreComments(Comparator<? super de.monticore.ast.Comment> comparator) sortAdditionalAttributes(Comparator<? super ASTAdditionalAttribute> comparator) sortGrammarMethods(Comparator<? super ASTGrammarMethod> comparator) sortSuperClass(Comparator<? super ASTMCType> comparator) sortSuperInterface(Comparator<? super ASTMCType> comparator) subListAdditionalAttributes(int start, int end) subListGrammarMethods(int start, int end) subListSuperClass(int start, int end) subListSuperInterface(int start, int end) Object[]Object[]toArrayGrammarMethods(ASTGrammarMethod[] array) Object[]toArraySuperClass(ASTMCType[] array) Object[]toArraySuperInterface(ASTMCType[] 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
-
superClass
-
superInterface
-
grammarMethods
-
additionalAttributes
-
-
Constructor Details
-
ASTSymbolRuleBuilder
public ASTSymbolRuleBuilder()
-
-
Method Details
-
build
-
isValid
public boolean isValid() -
getType
-
containsSuperClass
-
containsAllSuperClass
-
isEmptySuperClass
public boolean isEmptySuperClass() -
iteratorSuperClass
-
sizeSuperClass
public int sizeSuperClass() -
toArraySuperClass
-
toArraySuperClass
-
spliteratorSuperClass
-
streamSuperClass
-
parallelStreamSuperClass
-
getSuperClass
-
indexOfSuperClass
-
lastIndexOfSuperClass
-
equalsSuperClass
-
hashCodeSuperClass
public int hashCodeSuperClass() -
listIteratorSuperClass
-
listIteratorSuperClass
-
subListSuperClass
-
getSuperClassList
-
containsSuperInterface
-
containsAllSuperInterface
-
isEmptySuperInterface
public boolean isEmptySuperInterface() -
iteratorSuperInterface
-
sizeSuperInterface
public int sizeSuperInterface() -
toArraySuperInterface
-
toArraySuperInterface
-
spliteratorSuperInterface
-
streamSuperInterface
-
parallelStreamSuperInterface
-
getSuperInterface
-
indexOfSuperInterface
-
lastIndexOfSuperInterface
-
equalsSuperInterface
-
hashCodeSuperInterface
public int hashCodeSuperInterface() -
listIteratorSuperInterface
-
listIteratorSuperInterface
-
subListSuperInterface
-
getSuperInterfaceList
-
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
-
clearSuperClass
-
addSuperClass
-
addAllSuperClass
-
removeSuperClass
-
removeAllSuperClass
-
retainAllSuperClass
-
removeIfSuperClass
-
forEachSuperClass
-
addSuperClass
-
addAllSuperClass
-
removeSuperClass
-
setSuperClass
-
replaceAllSuperClass
-
sortSuperClass
-
setSuperClassList
-
clearSuperInterface
-
addSuperInterface
-
addAllSuperInterface
-
removeSuperInterface
-
removeAllSuperInterface
-
retainAllSuperInterface
-
removeIfSuperInterface
-
forEachSuperInterface
-
addSuperInterface
-
addAllSuperInterface
public ASTSymbolRuleBuilder addAllSuperInterface(int index, Collection<? extends ASTMCType> collection) -
removeSuperInterface
-
setSuperInterface
-
replaceAllSuperInterface
-
sortSuperInterface
-
setSuperInterfaceList
-
clearGrammarMethods
-
addGrammarMethod
-
addAllGrammarMethods
-
removeGrammarMethod
-
removeAllGrammarMethods
-
retainAllGrammarMethods
-
removeIfGrammarMethod
-
forEachGrammarMethods
-
addGrammarMethod
-
addAllGrammarMethods
public ASTSymbolRuleBuilder addAllGrammarMethods(int index, Collection<? extends ASTGrammarMethod> collection) -
removeGrammarMethod
-
setGrammarMethod
-
replaceAllGrammarMethods
-
sortGrammarMethods
-
setGrammarMethodsList
-
clearAdditionalAttributes
-
addAdditionalAttribute
-
addAllAdditionalAttributes
public ASTSymbolRuleBuilder addAllAdditionalAttributes(Collection<? extends ASTAdditionalAttribute> collection) -
removeAdditionalAttribute
-
removeAllAdditionalAttributes
-
retainAllAdditionalAttributes
-
removeIfAdditionalAttribute
public ASTSymbolRuleBuilder removeIfAdditionalAttribute(Predicate<? super ASTAdditionalAttribute> filter) -
forEachAdditionalAttributes
public ASTSymbolRuleBuilder forEachAdditionalAttributes(Consumer<? super ASTAdditionalAttribute> action) -
addAdditionalAttribute
-
addAllAdditionalAttributes
public ASTSymbolRuleBuilder addAllAdditionalAttributes(int index, Collection<? extends ASTAdditionalAttribute> collection) -
removeAdditionalAttribute
-
setAdditionalAttribute
-
replaceAllAdditionalAttributes
public ASTSymbolRuleBuilder replaceAllAdditionalAttributes(UnaryOperator<ASTAdditionalAttribute> operator) -
sortAdditionalAttributes
public ASTSymbolRuleBuilder sortAdditionalAttributes(Comparator<? super ASTAdditionalAttribute> comparator) -
setAdditionalAttributesList
public ASTSymbolRuleBuilder setAdditionalAttributesList(List<ASTAdditionalAttribute> additionalAttributes) -
set_SourcePositionEnd
- Overrides:
set_SourcePositionEndin classde.monticore.ast.ASTNodeBuilder<ASTSymbolRuleBuilder>
-
set_SourcePositionEndAbsent
- Overrides:
set_SourcePositionEndAbsentin classde.monticore.ast.ASTNodeBuilder<ASTSymbolRuleBuilder>
-
set_SourcePositionStart
- Overrides:
set_SourcePositionStartin classde.monticore.ast.ASTNodeBuilder<ASTSymbolRuleBuilder>
-
set_SourcePositionStartAbsent
- Overrides:
set_SourcePositionStartAbsentin classde.monticore.ast.ASTNodeBuilder<ASTSymbolRuleBuilder>
-
clear_PreComments
- Overrides:
clear_PreCommentsin classde.monticore.ast.ASTNodeBuilder<ASTSymbolRuleBuilder>
-
add_PreComment
- Overrides:
add_PreCommentin classde.monticore.ast.ASTNodeBuilder<ASTSymbolRuleBuilder>
-
add_PreComment
- Overrides:
add_PreCommentin classde.monticore.ast.ASTNodeBuilder<ASTSymbolRuleBuilder>
-
addAll_PreComments
- Overrides:
addAll_PreCommentsin classde.monticore.ast.ASTNodeBuilder<ASTSymbolRuleBuilder>
-
addAll_PreComments
public ASTSymbolRuleBuilder addAll_PreComments(int index, Collection<de.monticore.ast.Comment> precomments) - Overrides:
addAll_PreCommentsin classde.monticore.ast.ASTNodeBuilder<ASTSymbolRuleBuilder>
-
remove_PreComment
- Overrides:
remove_PreCommentin classde.monticore.ast.ASTNodeBuilder<ASTSymbolRuleBuilder>
-
remove_PreComment
- Overrides:
remove_PreCommentin classde.monticore.ast.ASTNodeBuilder<ASTSymbolRuleBuilder>
-
removeAll_PreComments
- Overrides:
removeAll_PreCommentsin classde.monticore.ast.ASTNodeBuilder<ASTSymbolRuleBuilder>
-
retainAll_PreComments
- Overrides:
retainAll_PreCommentsin classde.monticore.ast.ASTNodeBuilder<ASTSymbolRuleBuilder>
-
removeIf_PreComment
- Overrides:
removeIf_PreCommentin classde.monticore.ast.ASTNodeBuilder<ASTSymbolRuleBuilder>
-
forEach_PreComments
- Overrides:
forEach_PreCommentsin classde.monticore.ast.ASTNodeBuilder<ASTSymbolRuleBuilder>
-
replaceAll_PreComments
public ASTSymbolRuleBuilder replaceAll_PreComments(UnaryOperator<de.monticore.ast.Comment> operator) - Overrides:
replaceAll_PreCommentsin classde.monticore.ast.ASTNodeBuilder<ASTSymbolRuleBuilder>
-
sort_PreComments
public ASTSymbolRuleBuilder sort_PreComments(Comparator<? super de.monticore.ast.Comment> comparator) - Overrides:
sort_PreCommentsin classde.monticore.ast.ASTNodeBuilder<ASTSymbolRuleBuilder>
-
set_PreCommentList
- Overrides:
set_PreCommentListin classde.monticore.ast.ASTNodeBuilder<ASTSymbolRuleBuilder>
-
set_PreComment
- Overrides:
set_PreCommentin classde.monticore.ast.ASTNodeBuilder<ASTSymbolRuleBuilder>
-
clear_PostComments
- Overrides:
clear_PostCommentsin classde.monticore.ast.ASTNodeBuilder<ASTSymbolRuleBuilder>
-
add_PostComment
- Overrides:
add_PostCommentin classde.monticore.ast.ASTNodeBuilder<ASTSymbolRuleBuilder>
-
add_PostComment
- Overrides:
add_PostCommentin classde.monticore.ast.ASTNodeBuilder<ASTSymbolRuleBuilder>
-
addAll_PostComments
- Overrides:
addAll_PostCommentsin classde.monticore.ast.ASTNodeBuilder<ASTSymbolRuleBuilder>
-
addAll_PostComments
public ASTSymbolRuleBuilder addAll_PostComments(int index, Collection<de.monticore.ast.Comment> postcomments) - Overrides:
addAll_PostCommentsin classde.monticore.ast.ASTNodeBuilder<ASTSymbolRuleBuilder>
-
remove_PostComment
- Overrides:
remove_PostCommentin classde.monticore.ast.ASTNodeBuilder<ASTSymbolRuleBuilder>
-
remove_PostComment
- Overrides:
remove_PostCommentin classde.monticore.ast.ASTNodeBuilder<ASTSymbolRuleBuilder>
-
removeAll_PostComments
- Overrides:
removeAll_PostCommentsin classde.monticore.ast.ASTNodeBuilder<ASTSymbolRuleBuilder>
-
retainAll_PostComments
- Overrides:
retainAll_PostCommentsin classde.monticore.ast.ASTNodeBuilder<ASTSymbolRuleBuilder>
-
removeIf_PostComment
public ASTSymbolRuleBuilder removeIf_PostComment(Predicate<? super de.monticore.ast.Comment> filter) - Overrides:
removeIf_PostCommentin classde.monticore.ast.ASTNodeBuilder<ASTSymbolRuleBuilder>
-
forEach_PostComments
- Overrides:
forEach_PostCommentsin classde.monticore.ast.ASTNodeBuilder<ASTSymbolRuleBuilder>
-
replaceAll_PostComments
public ASTSymbolRuleBuilder replaceAll_PostComments(UnaryOperator<de.monticore.ast.Comment> operator) - Overrides:
replaceAll_PostCommentsin classde.monticore.ast.ASTNodeBuilder<ASTSymbolRuleBuilder>
-
sort_PostComments
public ASTSymbolRuleBuilder sort_PostComments(Comparator<? super de.monticore.ast.Comment> comparator) - Overrides:
sort_PostCommentsin classde.monticore.ast.ASTNodeBuilder<ASTSymbolRuleBuilder>
-
set_PostCommentList
- Overrides:
set_PostCommentListin classde.monticore.ast.ASTNodeBuilder<ASTSymbolRuleBuilder>
-
set_PostComment
- Overrides:
set_PostCommentin classde.monticore.ast.ASTNodeBuilder<ASTSymbolRuleBuilder>
-
uncheckedBuild
-