Class ASTSimpleInitBuilder
- java.lang.Object
-
- de.monticore.ast.ASTNodeBuilder<ASTSimpleInitBuilder>
-
- de.monticore.statements.mcvardeclarationstatements._ast.ASTSimpleInitBuilder
-
public class ASTSimpleInitBuilder extends de.monticore.ast.ASTNodeBuilder<ASTSimpleInitBuilder>
-
-
Field Summary
Fields Modifier and Type Field Description protected ASTExpressionexpressionprotected ASTSimpleInitBuilderrealBuilder
-
Constructor Summary
Constructors Constructor Description ASTSimpleInitBuilder()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ASTSimpleInitBuilderadd_PostComment(int index, de.monticore.ast.Comment postcomment)ASTSimpleInitBuilderadd_PostComment(de.monticore.ast.Comment postcomment)ASTSimpleInitBuilderadd_PreComment(int index, de.monticore.ast.Comment precomment)ASTSimpleInitBuilderadd_PreComment(de.monticore.ast.Comment precomment)ASTSimpleInitBuilderaddAll_PostComments(int index, java.util.Collection<de.monticore.ast.Comment> postcomments)ASTSimpleInitBuilderaddAll_PostComments(java.util.Collection<de.monticore.ast.Comment> postcomments)ASTSimpleInitBuilderaddAll_PreComments(int index, java.util.Collection<de.monticore.ast.Comment> precomments)ASTSimpleInitBuilderaddAll_PreComments(java.util.Collection<de.monticore.ast.Comment> precomments)ASTSimpleInitbuild()ASTSimpleInitBuilderclear_PostComments()ASTSimpleInitBuilderclear_PreComments()ASTSimpleInitBuilderforEach_PostComments(java.util.function.Consumer<? super de.monticore.ast.Comment> action)ASTSimpleInitBuilderforEach_PreComments(java.util.function.Consumer<? super de.monticore.ast.Comment> action)ASTExpressiongetExpression()booleanisValid()ASTSimpleInitBuilderremove_PostComment(int index)ASTSimpleInitBuilderremove_PostComment(java.lang.Object element)ASTSimpleInitBuilderremove_PreComment(int index)ASTSimpleInitBuilderremove_PreComment(java.lang.Object element)ASTSimpleInitBuilderremoveAll_PostComments(java.util.Collection<?> element)ASTSimpleInitBuilderremoveAll_PreComments(java.util.Collection<?> element)ASTSimpleInitBuilderremoveIf_PostComment(java.util.function.Predicate<? super de.monticore.ast.Comment> filter)ASTSimpleInitBuilderremoveIf_PreComment(java.util.function.Predicate<? super de.monticore.ast.Comment> filter)ASTSimpleInitBuilderreplaceAll_PostComments(java.util.function.UnaryOperator<de.monticore.ast.Comment> operator)ASTSimpleInitBuilderreplaceAll_PreComments(java.util.function.UnaryOperator<de.monticore.ast.Comment> operator)ASTSimpleInitBuilderretainAll_PostComments(java.util.Collection<?> element)ASTSimpleInitBuilderretainAll_PreComments(java.util.Collection<?> element)ASTSimpleInitBuilderset_PostComment(int index, de.monticore.ast.Comment postcomment)ASTSimpleInitBuilderset_PostCommentList(java.util.List<de.monticore.ast.Comment> postComments)ASTSimpleInitBuilderset_PreComment(int index, de.monticore.ast.Comment precomment)ASTSimpleInitBuilderset_PreCommentList(java.util.List<de.monticore.ast.Comment> preComments)ASTSimpleInitBuilderset_SourcePositionEnd(de.se_rwth.commons.SourcePosition end)ASTSimpleInitBuilderset_SourcePositionEndAbsent()ASTSimpleInitBuilderset_SourcePositionStart(de.se_rwth.commons.SourcePosition start)ASTSimpleInitBuilderset_SourcePositionStartAbsent()ASTSimpleInitBuildersetExpression(ASTExpression expression)ASTSimpleInitBuildersort_PostComments(java.util.Comparator<? super de.monticore.ast.Comment> comparator)ASTSimpleInitBuildersort_PreComments(java.util.Comparator<? super de.monticore.ast.Comment> comparator)ASTSimpleInituncheckedBuild()-
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 Detail
-
realBuilder
protected ASTSimpleInitBuilder realBuilder
-
expression
protected ASTExpression expression
-
-
Method Detail
-
build
public ASTSimpleInit build()
-
isValid
public boolean isValid()
-
getExpression
public ASTExpression getExpression()
-
setExpression
public ASTSimpleInitBuilder setExpression(ASTExpression expression)
-
set_SourcePositionEnd
public ASTSimpleInitBuilder set_SourcePositionEnd(de.se_rwth.commons.SourcePosition end)
- Overrides:
set_SourcePositionEndin classde.monticore.ast.ASTNodeBuilder<ASTSimpleInitBuilder>
-
set_SourcePositionEndAbsent
public ASTSimpleInitBuilder set_SourcePositionEndAbsent()
- Overrides:
set_SourcePositionEndAbsentin classde.monticore.ast.ASTNodeBuilder<ASTSimpleInitBuilder>
-
set_SourcePositionStart
public ASTSimpleInitBuilder set_SourcePositionStart(de.se_rwth.commons.SourcePosition start)
- Overrides:
set_SourcePositionStartin classde.monticore.ast.ASTNodeBuilder<ASTSimpleInitBuilder>
-
set_SourcePositionStartAbsent
public ASTSimpleInitBuilder set_SourcePositionStartAbsent()
- Overrides:
set_SourcePositionStartAbsentin classde.monticore.ast.ASTNodeBuilder<ASTSimpleInitBuilder>
-
clear_PreComments
public ASTSimpleInitBuilder clear_PreComments()
- Overrides:
clear_PreCommentsin classde.monticore.ast.ASTNodeBuilder<ASTSimpleInitBuilder>
-
add_PreComment
public ASTSimpleInitBuilder add_PreComment(de.monticore.ast.Comment precomment)
- Overrides:
add_PreCommentin classde.monticore.ast.ASTNodeBuilder<ASTSimpleInitBuilder>
-
add_PreComment
public ASTSimpleInitBuilder add_PreComment(int index, de.monticore.ast.Comment precomment)
- Overrides:
add_PreCommentin classde.monticore.ast.ASTNodeBuilder<ASTSimpleInitBuilder>
-
addAll_PreComments
public ASTSimpleInitBuilder addAll_PreComments(java.util.Collection<de.monticore.ast.Comment> precomments)
- Overrides:
addAll_PreCommentsin classde.monticore.ast.ASTNodeBuilder<ASTSimpleInitBuilder>
-
addAll_PreComments
public ASTSimpleInitBuilder addAll_PreComments(int index, java.util.Collection<de.monticore.ast.Comment> precomments)
- Overrides:
addAll_PreCommentsin classde.monticore.ast.ASTNodeBuilder<ASTSimpleInitBuilder>
-
remove_PreComment
public ASTSimpleInitBuilder remove_PreComment(java.lang.Object element)
- Overrides:
remove_PreCommentin classde.monticore.ast.ASTNodeBuilder<ASTSimpleInitBuilder>
-
remove_PreComment
public ASTSimpleInitBuilder remove_PreComment(int index)
- Overrides:
remove_PreCommentin classde.monticore.ast.ASTNodeBuilder<ASTSimpleInitBuilder>
-
removeAll_PreComments
public ASTSimpleInitBuilder removeAll_PreComments(java.util.Collection<?> element)
- Overrides:
removeAll_PreCommentsin classde.monticore.ast.ASTNodeBuilder<ASTSimpleInitBuilder>
-
retainAll_PreComments
public ASTSimpleInitBuilder retainAll_PreComments(java.util.Collection<?> element)
- Overrides:
retainAll_PreCommentsin classde.monticore.ast.ASTNodeBuilder<ASTSimpleInitBuilder>
-
removeIf_PreComment
public ASTSimpleInitBuilder removeIf_PreComment(java.util.function.Predicate<? super de.monticore.ast.Comment> filter)
- Overrides:
removeIf_PreCommentin classde.monticore.ast.ASTNodeBuilder<ASTSimpleInitBuilder>
-
forEach_PreComments
public ASTSimpleInitBuilder forEach_PreComments(java.util.function.Consumer<? super de.monticore.ast.Comment> action)
- Overrides:
forEach_PreCommentsin classde.monticore.ast.ASTNodeBuilder<ASTSimpleInitBuilder>
-
replaceAll_PreComments
public ASTSimpleInitBuilder replaceAll_PreComments(java.util.function.UnaryOperator<de.monticore.ast.Comment> operator)
- Overrides:
replaceAll_PreCommentsin classde.monticore.ast.ASTNodeBuilder<ASTSimpleInitBuilder>
-
sort_PreComments
public ASTSimpleInitBuilder sort_PreComments(java.util.Comparator<? super de.monticore.ast.Comment> comparator)
- Overrides:
sort_PreCommentsin classde.monticore.ast.ASTNodeBuilder<ASTSimpleInitBuilder>
-
set_PreCommentList
public ASTSimpleInitBuilder set_PreCommentList(java.util.List<de.monticore.ast.Comment> preComments)
- Overrides:
set_PreCommentListin classde.monticore.ast.ASTNodeBuilder<ASTSimpleInitBuilder>
-
set_PreComment
public ASTSimpleInitBuilder set_PreComment(int index, de.monticore.ast.Comment precomment)
- Overrides:
set_PreCommentin classde.monticore.ast.ASTNodeBuilder<ASTSimpleInitBuilder>
-
clear_PostComments
public ASTSimpleInitBuilder clear_PostComments()
- Overrides:
clear_PostCommentsin classde.monticore.ast.ASTNodeBuilder<ASTSimpleInitBuilder>
-
add_PostComment
public ASTSimpleInitBuilder add_PostComment(de.monticore.ast.Comment postcomment)
- Overrides:
add_PostCommentin classde.monticore.ast.ASTNodeBuilder<ASTSimpleInitBuilder>
-
add_PostComment
public ASTSimpleInitBuilder add_PostComment(int index, de.monticore.ast.Comment postcomment)
- Overrides:
add_PostCommentin classde.monticore.ast.ASTNodeBuilder<ASTSimpleInitBuilder>
-
addAll_PostComments
public ASTSimpleInitBuilder addAll_PostComments(java.util.Collection<de.monticore.ast.Comment> postcomments)
- Overrides:
addAll_PostCommentsin classde.monticore.ast.ASTNodeBuilder<ASTSimpleInitBuilder>
-
addAll_PostComments
public ASTSimpleInitBuilder addAll_PostComments(int index, java.util.Collection<de.monticore.ast.Comment> postcomments)
- Overrides:
addAll_PostCommentsin classde.monticore.ast.ASTNodeBuilder<ASTSimpleInitBuilder>
-
remove_PostComment
public ASTSimpleInitBuilder remove_PostComment(java.lang.Object element)
- Overrides:
remove_PostCommentin classde.monticore.ast.ASTNodeBuilder<ASTSimpleInitBuilder>
-
remove_PostComment
public ASTSimpleInitBuilder remove_PostComment(int index)
- Overrides:
remove_PostCommentin classde.monticore.ast.ASTNodeBuilder<ASTSimpleInitBuilder>
-
removeAll_PostComments
public ASTSimpleInitBuilder removeAll_PostComments(java.util.Collection<?> element)
- Overrides:
removeAll_PostCommentsin classde.monticore.ast.ASTNodeBuilder<ASTSimpleInitBuilder>
-
retainAll_PostComments
public ASTSimpleInitBuilder retainAll_PostComments(java.util.Collection<?> element)
- Overrides:
retainAll_PostCommentsin classde.monticore.ast.ASTNodeBuilder<ASTSimpleInitBuilder>
-
removeIf_PostComment
public ASTSimpleInitBuilder removeIf_PostComment(java.util.function.Predicate<? super de.monticore.ast.Comment> filter)
- Overrides:
removeIf_PostCommentin classde.monticore.ast.ASTNodeBuilder<ASTSimpleInitBuilder>
-
forEach_PostComments
public ASTSimpleInitBuilder forEach_PostComments(java.util.function.Consumer<? super de.monticore.ast.Comment> action)
- Overrides:
forEach_PostCommentsin classde.monticore.ast.ASTNodeBuilder<ASTSimpleInitBuilder>
-
replaceAll_PostComments
public ASTSimpleInitBuilder replaceAll_PostComments(java.util.function.UnaryOperator<de.monticore.ast.Comment> operator)
- Overrides:
replaceAll_PostCommentsin classde.monticore.ast.ASTNodeBuilder<ASTSimpleInitBuilder>
-
sort_PostComments
public ASTSimpleInitBuilder sort_PostComments(java.util.Comparator<? super de.monticore.ast.Comment> comparator)
- Overrides:
sort_PostCommentsin classde.monticore.ast.ASTNodeBuilder<ASTSimpleInitBuilder>
-
set_PostCommentList
public ASTSimpleInitBuilder set_PostCommentList(java.util.List<de.monticore.ast.Comment> postComments)
- Overrides:
set_PostCommentListin classde.monticore.ast.ASTNodeBuilder<ASTSimpleInitBuilder>
-
set_PostComment
public ASTSimpleInitBuilder set_PostComment(int index, de.monticore.ast.Comment postcomment)
- Overrides:
set_PostCommentin classde.monticore.ast.ASTNodeBuilder<ASTSimpleInitBuilder>
-
uncheckedBuild
public ASTSimpleInit uncheckedBuild()
-
-