public class DefaultNPairElementBuilder extends AbstractNElementBuilder implements NPairElementBuilder
| Constructor and Description |
|---|
DefaultNPairElementBuilder() |
DefaultNPairElementBuilder(NElement key,
NElement value) |
addNewLineAffix, addNewLineAffix, addSeparatorAffix, addSeparatorAffix, addSpaceAffix, addSpaceAffix, affixes, annotations, comments, diagnostics, isCustomTree, leadingComments, metadata, removeAffix, removeAffix, removeAffixIf, toString, trailingCommentsclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitaddNewLineAffix, addNewLineAffix, addSeparatorAffix, addSeparatorAffix, addSpaceAffix, addSpaceAffix, affixes, annotations, comments, diagnostics, isCustomTree, leadingComments, metadata, removeAffix, removeAffix, removeAffixIf, trailingCommentspublic NOptional<String> name()
name in interface NPairElementBuilderpublic NPairElementBuilder doWith(Consumer<NPairElementBuilder> con)
doWith in interface NPairElementBuilderpublic NPairElementBuilder value(NElement value)
value in interface NPairElementBuilderpublic NPairElementBuilder key(NElement key)
key in interface NPairElementBuilderpublic NPairElementBuilder key(String key)
key in interface NPairElementBuilderpublic NPairElement build()
build in interface NElementBuilderbuild in interface NPairElementBuilderpublic NElementType type()
type in interface NElementBuilderpublic NElement value()
value in interface NPairElementBuilderpublic NElement key()
key in interface NPairElementBuilderpublic NPairElementBuilder copyFrom(NElementBuilder other, NAssignmentPolicy assignmentPolicy)
copyFrom in interface NElementBuildercopyFrom in interface NPairElementBuildercopyFrom in class AbstractNElementBuilderpublic NPairElementBuilder copyFrom(NElement other, NAssignmentPolicy assignmentPolicy)
copyFrom in interface NElementBuildercopyFrom in interface NPairElementBuildercopyFrom in class AbstractNElementBuilderpublic NPairElementBuilder addAnnotations(List<NElementAnnotation> annotations)
addAnnotations in interface NElementBuilderaddAnnotations in interface NPairElementBuilderaddAnnotations in class AbstractNElementBuilderpublic NPairElementBuilder addAnnotation(String name, NElement... args)
addAnnotation in interface NElementBuilderaddAnnotation in interface NPairElementBuilderaddAnnotation in class AbstractNElementBuilderpublic NPairElementBuilder addAnnotation(NElementAnnotation annotation)
addAnnotation in interface NElementBuilderaddAnnotation in interface NPairElementBuilderaddAnnotation in class AbstractNElementBuilderpublic NPairElementBuilder addAffixAt(int index, NBoundAffix affix)
addAffixAt in interface NElementBuilderaddAffixAt in interface NPairElementBuilderaddAffixAt in class AbstractNElementBuilderpublic NPairElementBuilder removeAffix(int affix)
removeAffix in interface NElementBuilderremoveAffix in interface NPairElementBuilderremoveAffix in class AbstractNElementBuilderpublic NPairElementBuilder clearAnnotations()
clearAnnotations in interface NElementBuilderclearAnnotations in interface NPairElementBuilderclearAnnotations in class AbstractNElementBuilderpublic NPairElementBuilder clearAffixes()
clearAffixes in interface NElementBuilderclearAffixes in interface NPairElementBuilderclearAffixes in class AbstractNElementBuilderpublic NPairElementBuilder clearComments()
clearComments in interface NElementBuilderclearComments in interface NPairElementBuilderclearComments in class AbstractNElementBuilderpublic NPairElementBuilder setAffixAt(int index, NBoundAffix affix)
setAffixAt in interface NElementBuildersetAffixAt in interface NPairElementBuildersetAffixAt in class AbstractNElementBuilderpublic NPairElementBuilder setAffixes(List<NBoundAffix> affixes)
setAffixes in interface NElementBuildersetAffixes in interface NPairElementBuildersetAffixes in class AbstractNElementBuilderpublic NPairElementBuilder addAffix(NBoundAffix affix)
addAffix in interface NElementBuilderaddAffix in interface NPairElementBuilderaddAffix in class AbstractNElementBuilderpublic NPairElementBuilder addAffixAt(int index, NAffix affix, NAffixAnchor anchor)
addAffixAt in interface NElementBuilderaddAffixAt in interface NPairElementBuilderaddAffixAt in class AbstractNElementBuilderpublic NPairElementBuilder setAffixAt(int index, NAffix affix, NAffixAnchor anchor)
setAffixAt in interface NElementBuildersetAffixAt in interface NPairElementBuildersetAffixAt in class AbstractNElementBuilderpublic NPairElementBuilder removeDiagnostic(NElementDiagnostic error)
removeDiagnostic in interface NElementBuilderremoveDiagnostic in interface NPairElementBuilderremoveDiagnostic in class AbstractNElementBuilderpublic NPairElementBuilder addAffixes(List<NBoundAffix> affixes)
addAffixes in interface NElementBuilderaddAffixes in interface NPairElementBuilderaddAffixes in class AbstractNElementBuilderpublic NPairElementBuilder addDiagnostic(NElementDiagnostic error)
addDiagnostic in interface NElementBuilderaddDiagnostic in interface NPairElementBuilderaddDiagnostic in class AbstractNElementBuilderpublic NPairElementBuilder addAffixes(List<? extends NAffix> affixes, NAffixAnchor anchor)
addAffixes in class AbstractNElementBuilderpublic NPairElementBuilder addAffix(NAffix affix, NAffixAnchor anchor)
addAffix in interface NElementBuilderaddAffix in class AbstractNElementBuilderpublic NPairElementBuilder removeAffixes(NAffixType type, NAffixAnchor anchor)
removeAffixes in interface NElementBuilderremoveAffixes in interface NPairElementBuilderremoveAffixes in class AbstractNElementBuilderpublic NPairElementBuilder addLeadingComment(NElementComment comment)
addLeadingComment in interface NElementBuilderaddLeadingComment in interface NPairElementBuilderaddLeadingComment in class AbstractNElementBuilderpublic NPairElementBuilder addLeadingComments(NElementComment... comments)
addLeadingComments in interface NElementBuilderaddLeadingComments in interface NPairElementBuilderaddLeadingComments in class AbstractNElementBuilderpublic NPairElementBuilder addTrailingComment(NElementComment comment)
addTrailingComment in interface NElementBuilderaddTrailingComment in interface NPairElementBuilderaddTrailingComment in class AbstractNElementBuilderpublic NPairElementBuilder addTrailingComments(NElementComment... comments)
addTrailingComments in interface NElementBuilderaddTrailingComments in interface NPairElementBuilderaddTrailingComments in class AbstractNElementBuilderpublic NPairElementBuilder removeAnnotation(NElementAnnotation annotation)
removeAnnotation in interface NElementBuilderremoveAnnotation in interface NPairElementBuilderremoveAnnotation in class AbstractNElementBuilderpublic NPairElementBuilder copyFrom(NElementBuilder other)
copyFrom in interface NElementBuildercopyFrom in interface NPairElementBuildercopyFrom in class AbstractNElementBuilderpublic NPairElementBuilder copyFrom(NElement other)
copyFrom in interface NElementBuildercopyFrom in interface NPairElementBuildercopyFrom in class AbstractNElementBuilderpublic NPairElementBuilder metadata(NElementMetadata metadata)
metadata in interface NElementBuildermetadata in interface NPairElementBuildermetadata in class AbstractNElementBuilderCopyright © 2026 vpc open source initiative. All rights reserved.