Package de.monticore.javalight._ast
Class ASTElementValueOrExprBuilder
- java.lang.Object
-
- de.monticore.ast.ASTNodeBuilder<ASTElementValueOrExprBuilder>
-
- de.monticore.javalight._ast.ASTElementValueOrExprBuilder
-
public class ASTElementValueOrExprBuilder extends de.monticore.ast.ASTNodeBuilder<ASTElementValueOrExprBuilder>
-
-
Field Summary
Fields Modifier and Type Field Description protected java.util.Optional<ASTElementValue>
elementValue
protected java.util.Optional<ASTExpression>
expression
protected ASTElementValueOrExprBuilder
realBuilder
-
Constructor Summary
Constructors Constructor Description ASTElementValueOrExprBuilder()
-
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 ASTElementValueOrExprBuilder realBuilder
-
elementValue
protected java.util.Optional<ASTElementValue> elementValue
-
expression
protected java.util.Optional<ASTExpression> expression
-
-
Method Detail
-
build
public ASTElementValueOrExpr build()
-
isValid
public boolean isValid()
-
getElementValue
public ASTElementValue getElementValue()
-
isPresentElementValue
public boolean isPresentElementValue()
-
getExpression
public ASTExpression getExpression()
-
isPresentExpression
public boolean isPresentExpression()
-
setElementValue
public ASTElementValueOrExprBuilder setElementValue(ASTElementValue elementValue)
-
setElementValueAbsent
public ASTElementValueOrExprBuilder setElementValueAbsent()
-
setExpression
public ASTElementValueOrExprBuilder setExpression(ASTExpression expression)
-
setExpressionAbsent
public ASTElementValueOrExprBuilder setExpressionAbsent()
-
set_SourcePositionEnd
public ASTElementValueOrExprBuilder set_SourcePositionEnd(de.se_rwth.commons.SourcePosition end)
- Overrides:
set_SourcePositionEnd
in classde.monticore.ast.ASTNodeBuilder<ASTElementValueOrExprBuilder>
-
set_SourcePositionEndAbsent
public ASTElementValueOrExprBuilder set_SourcePositionEndAbsent()
- Overrides:
set_SourcePositionEndAbsent
in classde.monticore.ast.ASTNodeBuilder<ASTElementValueOrExprBuilder>
-
set_SourcePositionStart
public ASTElementValueOrExprBuilder set_SourcePositionStart(de.se_rwth.commons.SourcePosition start)
- Overrides:
set_SourcePositionStart
in classde.monticore.ast.ASTNodeBuilder<ASTElementValueOrExprBuilder>
-
set_SourcePositionStartAbsent
public ASTElementValueOrExprBuilder set_SourcePositionStartAbsent()
- Overrides:
set_SourcePositionStartAbsent
in classde.monticore.ast.ASTNodeBuilder<ASTElementValueOrExprBuilder>
-
clear_PreComments
public ASTElementValueOrExprBuilder clear_PreComments()
- Overrides:
clear_PreComments
in classde.monticore.ast.ASTNodeBuilder<ASTElementValueOrExprBuilder>
-
add_PreComment
public ASTElementValueOrExprBuilder add_PreComment(de.monticore.ast.Comment precomment)
- Overrides:
add_PreComment
in classde.monticore.ast.ASTNodeBuilder<ASTElementValueOrExprBuilder>
-
add_PreComment
public ASTElementValueOrExprBuilder add_PreComment(int index, de.monticore.ast.Comment precomment)
- Overrides:
add_PreComment
in classde.monticore.ast.ASTNodeBuilder<ASTElementValueOrExprBuilder>
-
addAll_PreComments
public ASTElementValueOrExprBuilder addAll_PreComments(java.util.Collection<de.monticore.ast.Comment> precomments)
- Overrides:
addAll_PreComments
in classde.monticore.ast.ASTNodeBuilder<ASTElementValueOrExprBuilder>
-
addAll_PreComments
public ASTElementValueOrExprBuilder addAll_PreComments(int index, java.util.Collection<de.monticore.ast.Comment> precomments)
- Overrides:
addAll_PreComments
in classde.monticore.ast.ASTNodeBuilder<ASTElementValueOrExprBuilder>
-
remove_PreComment
public ASTElementValueOrExprBuilder remove_PreComment(java.lang.Object element)
- Overrides:
remove_PreComment
in classde.monticore.ast.ASTNodeBuilder<ASTElementValueOrExprBuilder>
-
remove_PreComment
public ASTElementValueOrExprBuilder remove_PreComment(int index)
- Overrides:
remove_PreComment
in classde.monticore.ast.ASTNodeBuilder<ASTElementValueOrExprBuilder>
-
removeAll_PreComments
public ASTElementValueOrExprBuilder removeAll_PreComments(java.util.Collection<?> element)
- Overrides:
removeAll_PreComments
in classde.monticore.ast.ASTNodeBuilder<ASTElementValueOrExprBuilder>
-
retainAll_PreComments
public ASTElementValueOrExprBuilder retainAll_PreComments(java.util.Collection<?> element)
- Overrides:
retainAll_PreComments
in classde.monticore.ast.ASTNodeBuilder<ASTElementValueOrExprBuilder>
-
removeIf_PreComment
public ASTElementValueOrExprBuilder removeIf_PreComment(java.util.function.Predicate<? super de.monticore.ast.Comment> filter)
- Overrides:
removeIf_PreComment
in classde.monticore.ast.ASTNodeBuilder<ASTElementValueOrExprBuilder>
-
forEach_PreComments
public ASTElementValueOrExprBuilder forEach_PreComments(java.util.function.Consumer<? super de.monticore.ast.Comment> action)
- Overrides:
forEach_PreComments
in classde.monticore.ast.ASTNodeBuilder<ASTElementValueOrExprBuilder>
-
replaceAll_PreComments
public ASTElementValueOrExprBuilder replaceAll_PreComments(java.util.function.UnaryOperator<de.monticore.ast.Comment> operator)
- Overrides:
replaceAll_PreComments
in classde.monticore.ast.ASTNodeBuilder<ASTElementValueOrExprBuilder>
-
sort_PreComments
public ASTElementValueOrExprBuilder sort_PreComments(java.util.Comparator<? super de.monticore.ast.Comment> comparator)
- Overrides:
sort_PreComments
in classde.monticore.ast.ASTNodeBuilder<ASTElementValueOrExprBuilder>
-
set_PreCommentList
public ASTElementValueOrExprBuilder set_PreCommentList(java.util.List<de.monticore.ast.Comment> preComments)
- Overrides:
set_PreCommentList
in classde.monticore.ast.ASTNodeBuilder<ASTElementValueOrExprBuilder>
-
set_PreComment
public ASTElementValueOrExprBuilder set_PreComment(int index, de.monticore.ast.Comment precomment)
- Overrides:
set_PreComment
in classde.monticore.ast.ASTNodeBuilder<ASTElementValueOrExprBuilder>
-
clear_PostComments
public ASTElementValueOrExprBuilder clear_PostComments()
- Overrides:
clear_PostComments
in classde.monticore.ast.ASTNodeBuilder<ASTElementValueOrExprBuilder>
-
add_PostComment
public ASTElementValueOrExprBuilder add_PostComment(de.monticore.ast.Comment postcomment)
- Overrides:
add_PostComment
in classde.monticore.ast.ASTNodeBuilder<ASTElementValueOrExprBuilder>
-
add_PostComment
public ASTElementValueOrExprBuilder add_PostComment(int index, de.monticore.ast.Comment postcomment)
- Overrides:
add_PostComment
in classde.monticore.ast.ASTNodeBuilder<ASTElementValueOrExprBuilder>
-
addAll_PostComments
public ASTElementValueOrExprBuilder addAll_PostComments(java.util.Collection<de.monticore.ast.Comment> postcomments)
- Overrides:
addAll_PostComments
in classde.monticore.ast.ASTNodeBuilder<ASTElementValueOrExprBuilder>
-
addAll_PostComments
public ASTElementValueOrExprBuilder addAll_PostComments(int index, java.util.Collection<de.monticore.ast.Comment> postcomments)
- Overrides:
addAll_PostComments
in classde.monticore.ast.ASTNodeBuilder<ASTElementValueOrExprBuilder>
-
remove_PostComment
public ASTElementValueOrExprBuilder remove_PostComment(java.lang.Object element)
- Overrides:
remove_PostComment
in classde.monticore.ast.ASTNodeBuilder<ASTElementValueOrExprBuilder>
-
remove_PostComment
public ASTElementValueOrExprBuilder remove_PostComment(int index)
- Overrides:
remove_PostComment
in classde.monticore.ast.ASTNodeBuilder<ASTElementValueOrExprBuilder>
-
removeAll_PostComments
public ASTElementValueOrExprBuilder removeAll_PostComments(java.util.Collection<?> element)
- Overrides:
removeAll_PostComments
in classde.monticore.ast.ASTNodeBuilder<ASTElementValueOrExprBuilder>
-
retainAll_PostComments
public ASTElementValueOrExprBuilder retainAll_PostComments(java.util.Collection<?> element)
- Overrides:
retainAll_PostComments
in classde.monticore.ast.ASTNodeBuilder<ASTElementValueOrExprBuilder>
-
removeIf_PostComment
public ASTElementValueOrExprBuilder removeIf_PostComment(java.util.function.Predicate<? super de.monticore.ast.Comment> filter)
- Overrides:
removeIf_PostComment
in classde.monticore.ast.ASTNodeBuilder<ASTElementValueOrExprBuilder>
-
forEach_PostComments
public ASTElementValueOrExprBuilder forEach_PostComments(java.util.function.Consumer<? super de.monticore.ast.Comment> action)
- Overrides:
forEach_PostComments
in classde.monticore.ast.ASTNodeBuilder<ASTElementValueOrExprBuilder>
-
replaceAll_PostComments
public ASTElementValueOrExprBuilder replaceAll_PostComments(java.util.function.UnaryOperator<de.monticore.ast.Comment> operator)
- Overrides:
replaceAll_PostComments
in classde.monticore.ast.ASTNodeBuilder<ASTElementValueOrExprBuilder>
-
sort_PostComments
public ASTElementValueOrExprBuilder sort_PostComments(java.util.Comparator<? super de.monticore.ast.Comment> comparator)
- Overrides:
sort_PostComments
in classde.monticore.ast.ASTNodeBuilder<ASTElementValueOrExprBuilder>
-
set_PostCommentList
public ASTElementValueOrExprBuilder set_PostCommentList(java.util.List<de.monticore.ast.Comment> postComments)
- Overrides:
set_PostCommentList
in classde.monticore.ast.ASTNodeBuilder<ASTElementValueOrExprBuilder>
-
set_PostComment
public ASTElementValueOrExprBuilder set_PostComment(int index, de.monticore.ast.Comment postcomment)
- Overrides:
set_PostComment
in classde.monticore.ast.ASTNodeBuilder<ASTElementValueOrExprBuilder>
-
uncheckedBuild
public ASTElementValueOrExpr uncheckedBuild()
-
-