public class DefaultNOperatorElementBuilder extends AbstractNElementBuilder implements NOperatorElementBuilder
| Constructor and Description |
|---|
DefaultNOperatorElementBuilder() |
addNewLineAffix, addNewLineAffix, addSeparatorAffix, addSeparatorAffix, addSpaceAffix, addSpaceAffix, affixes, annotations, comments, diagnostics, isCustomTree, leadingComments, metadata, removeAffix, removeAffix, removeAffixIf, toString, trailingCommentsclone, finalize, getClass, notify, notifyAll, wait, wait, waitaddNewLineAffix, addNewLineAffix, addSeparatorAffix, addSeparatorAffix, addSpaceAffix, addSpaceAffix, affixes, annotations, comments, diagnostics, isCustomTree, leadingComments, metadata, removeAffix, removeAffix, removeAffixIf, trailingCommentspublic NOperatorElementBuilder operators(NOperatorSymbol... operators)
operators in interface NOperatorElementBuilderpublic NOperatorElementBuilder operands(NElement... operands)
operands in interface NOperatorElementBuilderpublic NOperatorElementBuilder addOperands(NElement... operands)
addOperands in interface NOperatorElementBuilderpublic NOperatorElementBuilder setChildren(NElement... operandOrOperators)
setChildren in interface NOperatorElementBuilderpublic NOperatorElementBuilder setChildren(List<NElement> operandOrOperators)
setChildren in interface NOperatorElementBuilderpublic NOperatorElementBuilder addAll(NElement... operandOrOperators)
addAll in interface NOperatorElementBuilderpublic NOperatorElementBuilder add(NElement operandOrOperator)
add in interface NOperatorElementBuilderpublic NOperatorElementBuilder addOperand(NElement operand)
addOperand in interface NOperatorElementBuilderpublic NOperatorElementBuilder clearOperands()
clearOperands in interface NOperatorElementBuilderpublic NOperatorElementBuilder clearOperators()
clearOperators in interface NOperatorElementBuilderpublic NOperatorElementBuilder addAll(NElement[] operands, Boolean expectedSymbol)
public NOperatorElementBuilder add(NElement operandOrOperator, Boolean expectedSymbol)
public NOperatorElementBuilder addOperator(NOperatorSymbol operator)
addOperator in interface NOperatorElementBuilderpublic NOperatorElementBuilder operator(NOperatorSymbol operator)
operator in interface NOperatorElementBuilderpublic NOperatorPosition position()
position in interface NOperatorElementBuilderpublic NOperatorElementBuilder position(NOperatorPosition operatorType)
position in interface NOperatorElementBuilderpublic NOperatorElementBuilder setOperand(int index, NElement operand)
setOperand in interface NOperatorElementBuilderpublic NOperatorElementBuilder first(NElement first)
first in interface NOperatorElementBuilderpublic NOperatorElementBuilder second(NElement second)
second in interface NOperatorElementBuilderpublic NElementType type()
type in interface NElementBuilderpublic NOperatorSymbol operator()
operator in interface NOperatorElementBuilderpublic List<NElement> operands()
operands in interface NOperatorElementBuilderpublic List<NElement> children()
children in interface NOperatorElementBuilderpublic List<NOperatorSymbol> operators()
operators in interface NOperatorElementBuilderpublic NOptional<NElement> operand(int index)
operand in interface NOperatorElementBuilderpublic NOptional<NElement> first()
first in interface NOperatorElementBuilderpublic NOptional<NElement> second()
second in interface NOperatorElementBuilderpublic NOptional<NElement> third()
third in interface NOperatorElementBuilderpublic NOperatorElement build()
build in interface NElementBuilderbuild in interface NOperatorElementBuilderpublic NOperatorElementBuilder doWith(Consumer<NOperatorElementBuilder> con)
doWith in interface NOperatorElementBuilderpublic NOperatorElementBuilder copyFrom(NElementBuilder other, NAssignmentPolicy assignmentPolicy)
copyFrom in interface NElementBuildercopyFrom in interface NOperatorElementBuildercopyFrom in class AbstractNElementBuilderpublic NOperatorElementBuilder copyFrom(NElement other, NAssignmentPolicy assignmentPolicy)
copyFrom in interface NElementBuildercopyFrom in interface NOperatorElementBuildercopyFrom in class AbstractNElementBuilderpublic NOperatorElementBuilder addAnnotations(List<NElementAnnotation> annotations)
addAnnotations in interface NElementBuilderaddAnnotations in interface NOperatorElementBuilderaddAnnotations in class AbstractNElementBuilderpublic NOperatorElementBuilder addAnnotation(String name, NElement... args)
addAnnotation in interface NElementBuilderaddAnnotation in interface NOperatorElementBuilderaddAnnotation in class AbstractNElementBuilderpublic NOperatorElementBuilder addAnnotation(NElementAnnotation annotation)
addAnnotation in interface NElementBuilderaddAnnotation in interface NOperatorElementBuilderaddAnnotation in class AbstractNElementBuilderpublic NOperatorElementBuilder addAffixAt(int index, NBoundAffix affix)
addAffixAt in interface NElementBuilderaddAffixAt in interface NOperatorElementBuilderaddAffixAt in class AbstractNElementBuilderpublic NOperatorElementBuilder removeAffix(int affix)
removeAffix in interface NElementBuilderremoveAffix in interface NOperatorElementBuilderremoveAffix in class AbstractNElementBuilderpublic NOperatorElementBuilder clearAnnotations()
clearAnnotations in interface NElementBuilderclearAnnotations in interface NOperatorElementBuilderclearAnnotations in class AbstractNElementBuilderpublic NOperatorElementBuilder clearAffixes()
clearAffixes in interface NElementBuilderclearAffixes in interface NOperatorElementBuilderclearAffixes in class AbstractNElementBuilderpublic NOperatorElementBuilder clearComments()
clearComments in interface NElementBuilderclearComments in interface NOperatorElementBuilderclearComments in class AbstractNElementBuilderpublic NOperatorElementBuilder setAffixAt(int index, NBoundAffix affix)
setAffixAt in interface NElementBuildersetAffixAt in interface NOperatorElementBuildersetAffixAt in class AbstractNElementBuilderpublic NOperatorElementBuilder setAffixes(List<NBoundAffix> affixes)
setAffixes in interface NElementBuildersetAffixes in interface NOperatorElementBuildersetAffixes in class AbstractNElementBuilderpublic NOperatorElementBuilder addAffix(NBoundAffix affix)
addAffix in interface NElementBuilderaddAffix in interface NOperatorElementBuilderaddAffix in class AbstractNElementBuilderpublic NOperatorElementBuilder addAffixAt(int index, NAffix affix, NAffixAnchor anchor)
addAffixAt in interface NElementBuilderaddAffixAt in interface NOperatorElementBuilderaddAffixAt in class AbstractNElementBuilderpublic NOperatorElementBuilder setAffixAt(int index, NAffix affix, NAffixAnchor anchor)
setAffixAt in interface NElementBuildersetAffixAt in interface NOperatorElementBuildersetAffixAt in class AbstractNElementBuilderpublic NOperatorElementBuilder removeDiagnostic(NElementDiagnostic error)
removeDiagnostic in interface NElementBuilderremoveDiagnostic in interface NOperatorElementBuilderremoveDiagnostic in class AbstractNElementBuilderpublic NOperatorElementBuilder addAffixes(List<NBoundAffix> affixes)
addAffixes in interface NElementBuilderaddAffixes in interface NOperatorElementBuilderaddAffixes in class AbstractNElementBuilderpublic NOperatorElementBuilder addDiagnostic(NElementDiagnostic error)
addDiagnostic in interface NElementBuilderaddDiagnostic in interface NOperatorElementBuilderaddDiagnostic in class AbstractNElementBuilderpublic NOperatorElementBuilder addAffixes(List<? extends NAffix> affixes, NAffixAnchor anchor)
addAffixes in class AbstractNElementBuilderpublic NOperatorElementBuilder addAffix(NAffix affix, NAffixAnchor anchor)
addAffix in interface NElementBuilderaddAffix in class AbstractNElementBuilderpublic NOperatorElementBuilder removeAffixes(NAffixType type, NAffixAnchor anchor)
removeAffixes in interface NElementBuilderremoveAffixes in interface NOperatorElementBuilderremoveAffixes in class AbstractNElementBuilderpublic NOperatorElementBuilder addLeadingComment(NElementComment comment)
addLeadingComment in interface NElementBuilderaddLeadingComment in interface NOperatorElementBuilderaddLeadingComment in class AbstractNElementBuilderpublic NOperatorElementBuilder addLeadingComments(NElementComment... comments)
addLeadingComments in interface NElementBuilderaddLeadingComments in interface NOperatorElementBuilderaddLeadingComments in class AbstractNElementBuilderpublic NOperatorElementBuilder addTrailingComment(NElementComment comment)
addTrailingComment in interface NElementBuilderaddTrailingComment in interface NOperatorElementBuilderaddTrailingComment in class AbstractNElementBuilderpublic NOperatorElementBuilder addTrailingComments(NElementComment... comments)
addTrailingComments in interface NElementBuilderaddTrailingComments in interface NOperatorElementBuilderaddTrailingComments in class AbstractNElementBuilderpublic NOperatorElementBuilder removeAnnotation(NElementAnnotation annotation)
removeAnnotation in interface NElementBuilderremoveAnnotation in interface NOperatorElementBuilderremoveAnnotation in class AbstractNElementBuilderpublic NOperatorElementBuilder copyFrom(NElementBuilder other)
copyFrom in interface NElementBuildercopyFrom in interface NOperatorElementBuildercopyFrom in class AbstractNElementBuilderpublic NOperatorElementBuilder copyFrom(NElement other)
copyFrom in interface NElementBuildercopyFrom in interface NOperatorElementBuildercopyFrom in class AbstractNElementBuilderpublic NOperatorElementBuilder metadata(NElementMetadata metadata)
metadata in interface NElementBuildermetadata in interface NOperatorElementBuildermetadata in class AbstractNElementBuilderCopyright © 2026 vpc open source initiative. All rights reserved.