Class ASTGrammarMethodBuilder
java.lang.Object
de.monticore.ast.ASTNodeBuilder<ASTGrammarMethodBuilder>
de.monticore.grammar.grammar._ast.ASTGrammarMethodBuilder
public class ASTGrammarMethodBuilder
extends de.monticore.ast.ASTNodeBuilder<ASTGrammarMethodBuilder>
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected ASTActionExtprotected ASTMCReturnTypeprotected List<ASTMethodParameter> protected Stringprotected booleanprotected booleanprotected booleanprotected booleanprotected booleanprotected ASTGrammarMethodBuilderFields 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) addAllException(int index, Collection<? extends ASTMCType> collection) addAllException(Collection<? extends ASTMCType> collection) addAllMethodParameters(int index, Collection<? extends ASTMethodParameter> collection) addAllMethodParameters(Collection<? extends ASTMethodParameter> collection) addException(int index, ASTMCType element) addException(ASTMCType element) addMethodParameter(int index, ASTMethodParameter element) addMethodParameter(ASTMethodParameter element) build()booleancontainsAllException(Collection<?> collection) booleancontainsAllMethodParameters(Collection<?> collection) booleancontainsException(Object element) booleancontainsMethodParameter(Object element) booleanbooleanforEach_PostComments(Consumer<? super de.monticore.ast.Comment> action) forEach_PreComments(Consumer<? super de.monticore.ast.Comment> action) forEachException(Consumer<? super ASTMCType> action) forEachMethodParameters(Consumer<? super ASTMethodParameter> action) getBody()getException(int index) getMethodParameter(int index) getName()intintintindexOfException(Object element) intindexOfMethodParameter(Object element) booleanbooleanbooleanisFinal()booleanbooleanbooleanisPublic()booleanisStatic()booleanisValid()intlastIndexOfException(Object element) intlastIndexOfMethodParameter(Object element) listIteratorException(int index) listIteratorMethodParameters(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) removeAllException(Collection<?> collection) removeAllMethodParameters(Collection<?> collection) removeException(int index) removeException(Object element) removeIf_PostComment(Predicate<? super de.monticore.ast.Comment> filter) removeIf_PreComment(Predicate<? super de.monticore.ast.Comment> filter) removeIfException(Predicate<? super ASTMCType> filter) removeIfMethodParameter(Predicate<? super ASTMethodParameter> filter) removeMethodParameter(int index) removeMethodParameter(Object element) replaceAll_PostComments(UnaryOperator<de.monticore.ast.Comment> operator) replaceAll_PreComments(UnaryOperator<de.monticore.ast.Comment> operator) replaceAllException(UnaryOperator<ASTMCType> operator) retainAll_PostComments(Collection<?> element) retainAll_PreComments(Collection<?> element) retainAllException(Collection<?> collection) retainAllMethodParameters(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) setBody(ASTActionExt body) setException(int index, ASTMCType element) setExceptionList(List<ASTMCType> exception) setFinal(boolean r__final) setMCReturnType(ASTMCReturnType mCReturnType) setMethodParameter(int index, ASTMethodParameter element) setMethodParametersList(List<ASTMethodParameter> methodParameters) setPrivate(boolean r__private) setProtected(boolean r__protected) setPublic(boolean r__public) setStatic(boolean r__static) intintsort_PostComments(Comparator<? super de.monticore.ast.Comment> comparator) sort_PreComments(Comparator<? super de.monticore.ast.Comment> comparator) sortException(Comparator<? super ASTMCType> comparator) sortMethodParameters(Comparator<? super ASTMethodParameter> comparator) subListException(int start, int end) subListMethodParameters(int start, int end) Object[]toArrayException(ASTMCType[] 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
-
mCReturnType
-
name
-
methodParameters
-
exception
-
body
-
r__public
protected boolean r__public -
r__private
protected boolean r__private -
r__protected
protected boolean r__protected -
r__final
protected boolean r__final -
r__static
protected boolean r__static
-
-
Constructor Details
-
ASTGrammarMethodBuilder
public ASTGrammarMethodBuilder()
-
-
Method Details
-
build
-
isValid
public boolean isValid() -
getMCReturnType
-
getName
-
containsMethodParameter
-
containsAllMethodParameters
-
isEmptyMethodParameters
public boolean isEmptyMethodParameters() -
iteratorMethodParameters
-
sizeMethodParameters
public int sizeMethodParameters() -
toArrayMethodParameters
-
toArrayMethodParameters
-
spliteratorMethodParameters
-
streamMethodParameters
-
parallelStreamMethodParameters
-
getMethodParameter
-
indexOfMethodParameter
-
lastIndexOfMethodParameter
-
equalsMethodParameters
-
hashCodeMethodParameters
public int hashCodeMethodParameters() -
listIteratorMethodParameters
-
listIteratorMethodParameters
-
subListMethodParameters
-
getMethodParameterList
-
containsException
-
containsAllException
-
isEmptyException
public boolean isEmptyException() -
iteratorException
-
sizeException
public int sizeException() -
toArrayException
-
toArrayException
-
spliteratorException
-
streamException
-
parallelStreamException
-
getException
-
indexOfException
-
lastIndexOfException
-
equalsException
-
hashCodeException
public int hashCodeException() -
listIteratorException
-
listIteratorException
-
subListException
-
getExceptionList
-
getBody
-
isPublic
public boolean isPublic() -
isPrivate
public boolean isPrivate() -
isProtected
public boolean isProtected() -
isFinal
public boolean isFinal() -
isStatic
public boolean isStatic() -
setMCReturnType
-
setName
-
clearMethodParameters
-
addMethodParameter
-
addAllMethodParameters
public ASTGrammarMethodBuilder addAllMethodParameters(Collection<? extends ASTMethodParameter> collection) -
removeMethodParameter
-
removeAllMethodParameters
-
retainAllMethodParameters
-
removeIfMethodParameter
public ASTGrammarMethodBuilder removeIfMethodParameter(Predicate<? super ASTMethodParameter> filter) -
forEachMethodParameters
-
addMethodParameter
-
addAllMethodParameters
public ASTGrammarMethodBuilder addAllMethodParameters(int index, Collection<? extends ASTMethodParameter> collection) -
removeMethodParameter
-
setMethodParameter
-
replaceAllMethodParameters
public ASTGrammarMethodBuilder replaceAllMethodParameters(UnaryOperator<ASTMethodParameter> operator) -
sortMethodParameters
public ASTGrammarMethodBuilder sortMethodParameters(Comparator<? super ASTMethodParameter> comparator) -
setMethodParametersList
-
clearException
-
addException
-
addAllException
-
removeException
-
removeAllException
-
retainAllException
-
removeIfException
-
forEachException
-
addException
-
addAllException
public ASTGrammarMethodBuilder addAllException(int index, Collection<? extends ASTMCType> collection) -
removeException
-
setException
-
replaceAllException
-
sortException
-
setExceptionList
-
setBody
-
setPublic
-
setPrivate
-
setProtected
-
setFinal
-
setStatic
-
set_SourcePositionEnd
- Overrides:
set_SourcePositionEndin classde.monticore.ast.ASTNodeBuilder<ASTGrammarMethodBuilder>
-
set_SourcePositionEndAbsent
- Overrides:
set_SourcePositionEndAbsentin classde.monticore.ast.ASTNodeBuilder<ASTGrammarMethodBuilder>
-
set_SourcePositionStart
- Overrides:
set_SourcePositionStartin classde.monticore.ast.ASTNodeBuilder<ASTGrammarMethodBuilder>
-
set_SourcePositionStartAbsent
- Overrides:
set_SourcePositionStartAbsentin classde.monticore.ast.ASTNodeBuilder<ASTGrammarMethodBuilder>
-
clear_PreComments
- Overrides:
clear_PreCommentsin classde.monticore.ast.ASTNodeBuilder<ASTGrammarMethodBuilder>
-
add_PreComment
- Overrides:
add_PreCommentin classde.monticore.ast.ASTNodeBuilder<ASTGrammarMethodBuilder>
-
add_PreComment
- Overrides:
add_PreCommentin classde.monticore.ast.ASTNodeBuilder<ASTGrammarMethodBuilder>
-
addAll_PreComments
- Overrides:
addAll_PreCommentsin classde.monticore.ast.ASTNodeBuilder<ASTGrammarMethodBuilder>
-
addAll_PreComments
public ASTGrammarMethodBuilder addAll_PreComments(int index, Collection<de.monticore.ast.Comment> precomments) - Overrides:
addAll_PreCommentsin classde.monticore.ast.ASTNodeBuilder<ASTGrammarMethodBuilder>
-
remove_PreComment
- Overrides:
remove_PreCommentin classde.monticore.ast.ASTNodeBuilder<ASTGrammarMethodBuilder>
-
remove_PreComment
- Overrides:
remove_PreCommentin classde.monticore.ast.ASTNodeBuilder<ASTGrammarMethodBuilder>
-
removeAll_PreComments
- Overrides:
removeAll_PreCommentsin classde.monticore.ast.ASTNodeBuilder<ASTGrammarMethodBuilder>
-
retainAll_PreComments
- Overrides:
retainAll_PreCommentsin classde.monticore.ast.ASTNodeBuilder<ASTGrammarMethodBuilder>
-
removeIf_PreComment
public ASTGrammarMethodBuilder removeIf_PreComment(Predicate<? super de.monticore.ast.Comment> filter) - Overrides:
removeIf_PreCommentin classde.monticore.ast.ASTNodeBuilder<ASTGrammarMethodBuilder>
-
forEach_PreComments
public ASTGrammarMethodBuilder forEach_PreComments(Consumer<? super de.monticore.ast.Comment> action) - Overrides:
forEach_PreCommentsin classde.monticore.ast.ASTNodeBuilder<ASTGrammarMethodBuilder>
-
replaceAll_PreComments
public ASTGrammarMethodBuilder replaceAll_PreComments(UnaryOperator<de.monticore.ast.Comment> operator) - Overrides:
replaceAll_PreCommentsin classde.monticore.ast.ASTNodeBuilder<ASTGrammarMethodBuilder>
-
sort_PreComments
public ASTGrammarMethodBuilder sort_PreComments(Comparator<? super de.monticore.ast.Comment> comparator) - Overrides:
sort_PreCommentsin classde.monticore.ast.ASTNodeBuilder<ASTGrammarMethodBuilder>
-
set_PreCommentList
- Overrides:
set_PreCommentListin classde.monticore.ast.ASTNodeBuilder<ASTGrammarMethodBuilder>
-
set_PreComment
- Overrides:
set_PreCommentin classde.monticore.ast.ASTNodeBuilder<ASTGrammarMethodBuilder>
-
clear_PostComments
- Overrides:
clear_PostCommentsin classde.monticore.ast.ASTNodeBuilder<ASTGrammarMethodBuilder>
-
add_PostComment
- Overrides:
add_PostCommentin classde.monticore.ast.ASTNodeBuilder<ASTGrammarMethodBuilder>
-
add_PostComment
- Overrides:
add_PostCommentin classde.monticore.ast.ASTNodeBuilder<ASTGrammarMethodBuilder>
-
addAll_PostComments
public ASTGrammarMethodBuilder addAll_PostComments(Collection<de.monticore.ast.Comment> postcomments) - Overrides:
addAll_PostCommentsin classde.monticore.ast.ASTNodeBuilder<ASTGrammarMethodBuilder>
-
addAll_PostComments
public ASTGrammarMethodBuilder addAll_PostComments(int index, Collection<de.monticore.ast.Comment> postcomments) - Overrides:
addAll_PostCommentsin classde.monticore.ast.ASTNodeBuilder<ASTGrammarMethodBuilder>
-
remove_PostComment
- Overrides:
remove_PostCommentin classde.monticore.ast.ASTNodeBuilder<ASTGrammarMethodBuilder>
-
remove_PostComment
- Overrides:
remove_PostCommentin classde.monticore.ast.ASTNodeBuilder<ASTGrammarMethodBuilder>
-
removeAll_PostComments
- Overrides:
removeAll_PostCommentsin classde.monticore.ast.ASTNodeBuilder<ASTGrammarMethodBuilder>
-
retainAll_PostComments
- Overrides:
retainAll_PostCommentsin classde.monticore.ast.ASTNodeBuilder<ASTGrammarMethodBuilder>
-
removeIf_PostComment
public ASTGrammarMethodBuilder removeIf_PostComment(Predicate<? super de.monticore.ast.Comment> filter) - Overrides:
removeIf_PostCommentin classde.monticore.ast.ASTNodeBuilder<ASTGrammarMethodBuilder>
-
forEach_PostComments
public ASTGrammarMethodBuilder forEach_PostComments(Consumer<? super de.monticore.ast.Comment> action) - Overrides:
forEach_PostCommentsin classde.monticore.ast.ASTNodeBuilder<ASTGrammarMethodBuilder>
-
replaceAll_PostComments
public ASTGrammarMethodBuilder replaceAll_PostComments(UnaryOperator<de.monticore.ast.Comment> operator) - Overrides:
replaceAll_PostCommentsin classde.monticore.ast.ASTNodeBuilder<ASTGrammarMethodBuilder>
-
sort_PostComments
public ASTGrammarMethodBuilder sort_PostComments(Comparator<? super de.monticore.ast.Comment> comparator) - Overrides:
sort_PostCommentsin classde.monticore.ast.ASTNodeBuilder<ASTGrammarMethodBuilder>
-
set_PostCommentList
- Overrides:
set_PostCommentListin classde.monticore.ast.ASTNodeBuilder<ASTGrammarMethodBuilder>
-
set_PostComment
- Overrides:
set_PostCommentin classde.monticore.ast.ASTNodeBuilder<ASTGrammarMethodBuilder>
-
uncheckedBuild
-