Class ASTSignedNatLiteralBuilder
- java.lang.Object
-
- de.monticore.ast.ASTNodeBuilder<ASTSignedNatLiteralBuilder>
-
- de.monticore.literals.mccommonliterals._ast.ASTSignedNatLiteralBuilder
-
public class ASTSignedNatLiteralBuilder extends de.monticore.ast.ASTNodeBuilder<ASTSignedNatLiteralBuilder>
-
-
Field Summary
Fields Modifier and Type Field Description protected java.util.Optional<java.lang.String>digitsprotected booleannegativeprotected ASTSignedNatLiteralBuilderrealBuilder
-
Constructor Summary
Constructors Constructor Description ASTSignedNatLiteralBuilder()
-
Method Summary
-
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 ASTSignedNatLiteralBuilder realBuilder
-
digits
protected java.util.Optional<java.lang.String> digits
-
negative
protected boolean negative
-
-
Method Detail
-
build
public ASTSignedNatLiteral build()
-
isValid
public boolean isValid()
-
getDigits
public java.lang.String getDigits()
-
isPresentDigits
public boolean isPresentDigits()
-
isNegative
public boolean isNegative()
-
setDigits
public ASTSignedNatLiteralBuilder setDigits(java.lang.String digits)
-
setDigitsAbsent
public ASTSignedNatLiteralBuilder setDigitsAbsent()
-
setNegative
public ASTSignedNatLiteralBuilder setNegative(boolean negative)
-
set_SourcePositionEnd
public ASTSignedNatLiteralBuilder set_SourcePositionEnd(de.se_rwth.commons.SourcePosition end)
- Overrides:
set_SourcePositionEndin classde.monticore.ast.ASTNodeBuilder<ASTSignedNatLiteralBuilder>
-
set_SourcePositionEndAbsent
public ASTSignedNatLiteralBuilder set_SourcePositionEndAbsent()
- Overrides:
set_SourcePositionEndAbsentin classde.monticore.ast.ASTNodeBuilder<ASTSignedNatLiteralBuilder>
-
set_SourcePositionStart
public ASTSignedNatLiteralBuilder set_SourcePositionStart(de.se_rwth.commons.SourcePosition start)
- Overrides:
set_SourcePositionStartin classde.monticore.ast.ASTNodeBuilder<ASTSignedNatLiteralBuilder>
-
set_SourcePositionStartAbsent
public ASTSignedNatLiteralBuilder set_SourcePositionStartAbsent()
- Overrides:
set_SourcePositionStartAbsentin classde.monticore.ast.ASTNodeBuilder<ASTSignedNatLiteralBuilder>
-
clear_PreComments
public ASTSignedNatLiteralBuilder clear_PreComments()
- Overrides:
clear_PreCommentsin classde.monticore.ast.ASTNodeBuilder<ASTSignedNatLiteralBuilder>
-
add_PreComment
public ASTSignedNatLiteralBuilder add_PreComment(de.monticore.ast.Comment precomment)
- Overrides:
add_PreCommentin classde.monticore.ast.ASTNodeBuilder<ASTSignedNatLiteralBuilder>
-
add_PreComment
public ASTSignedNatLiteralBuilder add_PreComment(int index, de.monticore.ast.Comment precomment)
- Overrides:
add_PreCommentin classde.monticore.ast.ASTNodeBuilder<ASTSignedNatLiteralBuilder>
-
addAll_PreComments
public ASTSignedNatLiteralBuilder addAll_PreComments(java.util.Collection<de.monticore.ast.Comment> precomments)
- Overrides:
addAll_PreCommentsin classde.monticore.ast.ASTNodeBuilder<ASTSignedNatLiteralBuilder>
-
addAll_PreComments
public ASTSignedNatLiteralBuilder addAll_PreComments(int index, java.util.Collection<de.monticore.ast.Comment> precomments)
- Overrides:
addAll_PreCommentsin classde.monticore.ast.ASTNodeBuilder<ASTSignedNatLiteralBuilder>
-
remove_PreComment
public ASTSignedNatLiteralBuilder remove_PreComment(java.lang.Object element)
- Overrides:
remove_PreCommentin classde.monticore.ast.ASTNodeBuilder<ASTSignedNatLiteralBuilder>
-
remove_PreComment
public ASTSignedNatLiteralBuilder remove_PreComment(int index)
- Overrides:
remove_PreCommentin classde.monticore.ast.ASTNodeBuilder<ASTSignedNatLiteralBuilder>
-
removeAll_PreComments
public ASTSignedNatLiteralBuilder removeAll_PreComments(java.util.Collection<?> element)
- Overrides:
removeAll_PreCommentsin classde.monticore.ast.ASTNodeBuilder<ASTSignedNatLiteralBuilder>
-
retainAll_PreComments
public ASTSignedNatLiteralBuilder retainAll_PreComments(java.util.Collection<?> element)
- Overrides:
retainAll_PreCommentsin classde.monticore.ast.ASTNodeBuilder<ASTSignedNatLiteralBuilder>
-
removeIf_PreComment
public ASTSignedNatLiteralBuilder removeIf_PreComment(java.util.function.Predicate<? super de.monticore.ast.Comment> filter)
- Overrides:
removeIf_PreCommentin classde.monticore.ast.ASTNodeBuilder<ASTSignedNatLiteralBuilder>
-
forEach_PreComments
public ASTSignedNatLiteralBuilder forEach_PreComments(java.util.function.Consumer<? super de.monticore.ast.Comment> action)
- Overrides:
forEach_PreCommentsin classde.monticore.ast.ASTNodeBuilder<ASTSignedNatLiteralBuilder>
-
replaceAll_PreComments
public ASTSignedNatLiteralBuilder replaceAll_PreComments(java.util.function.UnaryOperator<de.monticore.ast.Comment> operator)
- Overrides:
replaceAll_PreCommentsin classde.monticore.ast.ASTNodeBuilder<ASTSignedNatLiteralBuilder>
-
sort_PreComments
public ASTSignedNatLiteralBuilder sort_PreComments(java.util.Comparator<? super de.monticore.ast.Comment> comparator)
- Overrides:
sort_PreCommentsin classde.monticore.ast.ASTNodeBuilder<ASTSignedNatLiteralBuilder>
-
set_PreCommentList
public ASTSignedNatLiteralBuilder set_PreCommentList(java.util.List<de.monticore.ast.Comment> preComments)
- Overrides:
set_PreCommentListin classde.monticore.ast.ASTNodeBuilder<ASTSignedNatLiteralBuilder>
-
set_PreComment
public ASTSignedNatLiteralBuilder set_PreComment(int index, de.monticore.ast.Comment precomment)
- Overrides:
set_PreCommentin classde.monticore.ast.ASTNodeBuilder<ASTSignedNatLiteralBuilder>
-
clear_PostComments
public ASTSignedNatLiteralBuilder clear_PostComments()
- Overrides:
clear_PostCommentsin classde.monticore.ast.ASTNodeBuilder<ASTSignedNatLiteralBuilder>
-
add_PostComment
public ASTSignedNatLiteralBuilder add_PostComment(de.monticore.ast.Comment postcomment)
- Overrides:
add_PostCommentin classde.monticore.ast.ASTNodeBuilder<ASTSignedNatLiteralBuilder>
-
add_PostComment
public ASTSignedNatLiteralBuilder add_PostComment(int index, de.monticore.ast.Comment postcomment)
- Overrides:
add_PostCommentin classde.monticore.ast.ASTNodeBuilder<ASTSignedNatLiteralBuilder>
-
addAll_PostComments
public ASTSignedNatLiteralBuilder addAll_PostComments(java.util.Collection<de.monticore.ast.Comment> postcomments)
- Overrides:
addAll_PostCommentsin classde.monticore.ast.ASTNodeBuilder<ASTSignedNatLiteralBuilder>
-
addAll_PostComments
public ASTSignedNatLiteralBuilder addAll_PostComments(int index, java.util.Collection<de.monticore.ast.Comment> postcomments)
- Overrides:
addAll_PostCommentsin classde.monticore.ast.ASTNodeBuilder<ASTSignedNatLiteralBuilder>
-
remove_PostComment
public ASTSignedNatLiteralBuilder remove_PostComment(java.lang.Object element)
- Overrides:
remove_PostCommentin classde.monticore.ast.ASTNodeBuilder<ASTSignedNatLiteralBuilder>
-
remove_PostComment
public ASTSignedNatLiteralBuilder remove_PostComment(int index)
- Overrides:
remove_PostCommentin classde.monticore.ast.ASTNodeBuilder<ASTSignedNatLiteralBuilder>
-
removeAll_PostComments
public ASTSignedNatLiteralBuilder removeAll_PostComments(java.util.Collection<?> element)
- Overrides:
removeAll_PostCommentsin classde.monticore.ast.ASTNodeBuilder<ASTSignedNatLiteralBuilder>
-
retainAll_PostComments
public ASTSignedNatLiteralBuilder retainAll_PostComments(java.util.Collection<?> element)
- Overrides:
retainAll_PostCommentsin classde.monticore.ast.ASTNodeBuilder<ASTSignedNatLiteralBuilder>
-
removeIf_PostComment
public ASTSignedNatLiteralBuilder removeIf_PostComment(java.util.function.Predicate<? super de.monticore.ast.Comment> filter)
- Overrides:
removeIf_PostCommentin classde.monticore.ast.ASTNodeBuilder<ASTSignedNatLiteralBuilder>
-
forEach_PostComments
public ASTSignedNatLiteralBuilder forEach_PostComments(java.util.function.Consumer<? super de.monticore.ast.Comment> action)
- Overrides:
forEach_PostCommentsin classde.monticore.ast.ASTNodeBuilder<ASTSignedNatLiteralBuilder>
-
replaceAll_PostComments
public ASTSignedNatLiteralBuilder replaceAll_PostComments(java.util.function.UnaryOperator<de.monticore.ast.Comment> operator)
- Overrides:
replaceAll_PostCommentsin classde.monticore.ast.ASTNodeBuilder<ASTSignedNatLiteralBuilder>
-
sort_PostComments
public ASTSignedNatLiteralBuilder sort_PostComments(java.util.Comparator<? super de.monticore.ast.Comment> comparator)
- Overrides:
sort_PostCommentsin classde.monticore.ast.ASTNodeBuilder<ASTSignedNatLiteralBuilder>
-
set_PostCommentList
public ASTSignedNatLiteralBuilder set_PostCommentList(java.util.List<de.monticore.ast.Comment> postComments)
- Overrides:
set_PostCommentListin classde.monticore.ast.ASTNodeBuilder<ASTSignedNatLiteralBuilder>
-
set_PostComment
public ASTSignedNatLiteralBuilder set_PostComment(int index, de.monticore.ast.Comment postcomment)
- Overrides:
set_PostCommentin classde.monticore.ast.ASTNodeBuilder<ASTSignedNatLiteralBuilder>
-
uncheckedBuild
public ASTSignedNatLiteral uncheckedBuild()
-
-