Class ImmutableConstitution.NameForms.Builder
java.lang.Object
org.immutables.value.processor.meta.ImmutableConstitution.NameForms.Builder
- Enclosing class:
ImmutableConstitution.NameForms
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate Stringprivate Stringprivate Stringprivate static final longprivate static final longprivate static final longprivate static final longprivate longprivate static final longprivate static final longprivate static final longprivate static final longprivate longprivate Stringprivate booleanprivate Stringprivate Stringprivate Visibility -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionInitializes the value for theabsoluteattribute.private booleanabsoluteRaw(String absoluteRaw) Initializes the value for theabsoluteRawattribute.private booleanbuild()Builds a newNameForms.private static voidcheckNotIsSet(boolean isSet, String name) private voidprivate StringgenericArgs(String genericArgs) Initializes the value for thegenericArgsattribute.private booleanInitializes the value for thepackageOfattribute.private booleanrelativeAlreadyQualified(boolean relativeAlreadyQualified) Initializes the value for therelativeAlreadyQualifiedattribute.private booleanrelativeRaw(String relativeRaw) Initializes the value for therelativeRawattribute.private booleanInitializes the value for thesimpleattribute.private booleanvisibility(Visibility visibility) Initializes the value for thevisibilityattribute.private boolean
-
Field Details
-
INIT_BIT_SIMPLE
private static final long INIT_BIT_SIMPLE- See Also:
-
INIT_BIT_RELATIVE_RAW
private static final long INIT_BIT_RELATIVE_RAW- See Also:
-
INIT_BIT_PACKAGE_OF
private static final long INIT_BIT_PACKAGE_OF- See Also:
-
INIT_BIT_VISIBILITY
private static final long INIT_BIT_VISIBILITY- See Also:
-
OPT_BIT_ABSOLUTE
private static final long OPT_BIT_ABSOLUTE- See Also:
-
OPT_BIT_ABSOLUTE_RAW
private static final long OPT_BIT_ABSOLUTE_RAW- See Also:
-
OPT_BIT_GENERIC_ARGS
private static final long OPT_BIT_GENERIC_ARGS- See Also:
-
OPT_BIT_RELATIVE_ALREADY_QUALIFIED
private static final long OPT_BIT_RELATIVE_ALREADY_QUALIFIED- See Also:
-
initBits
private long initBits -
optBits
private long optBits -
simple
-
relativeRaw
-
packageOf
-
visibility
-
absolute
-
absoluteRaw
-
genericArgs
-
relativeAlreadyQualified
private boolean relativeAlreadyQualified
-
-
Constructor Details
-
Builder
private Builder()
-
-
Method Details
-
simple
Initializes the value for thesimpleattribute.- Parameters:
simple- The value for simple- Returns:
thisbuilder for use in a chained invocation
-
relativeRaw
Initializes the value for therelativeRawattribute.- Parameters:
relativeRaw- The value for relativeRaw- Returns:
thisbuilder for use in a chained invocation
-
packageOf
Initializes the value for thepackageOfattribute.- Parameters:
packageOf- The value for packageOf- Returns:
thisbuilder for use in a chained invocation
-
visibility
Initializes the value for thevisibilityattribute.- Parameters:
visibility- The value for visibility- Returns:
thisbuilder for use in a chained invocation
-
absolute
Initializes the value for theabsoluteattribute.If not set, this attribute will have a default value as returned by the initializer of
absolute.- Parameters:
absolute- The value for absolute- Returns:
thisbuilder for use in a chained invocation
-
absoluteRaw
Initializes the value for theabsoluteRawattribute.If not set, this attribute will have a default value as returned by the initializer of
absoluteRaw.- Parameters:
absoluteRaw- The value for absoluteRaw- Returns:
thisbuilder for use in a chained invocation
-
genericArgs
Initializes the value for thegenericArgsattribute.If not set, this attribute will have a default value as returned by the initializer of
genericArgs.- Parameters:
genericArgs- The value for genericArgs- Returns:
thisbuilder for use in a chained invocation
-
relativeAlreadyQualified
public final ImmutableConstitution.NameForms.Builder relativeAlreadyQualified(boolean relativeAlreadyQualified) Initializes the value for therelativeAlreadyQualifiedattribute.If not set, this attribute will have a default value as returned by the initializer of
relativeAlreadyQualified.- Parameters:
relativeAlreadyQualified- The value for relativeAlreadyQualified- Returns:
thisbuilder for use in a chained invocation
-
build
Builds a newNameForms.- Returns:
- An immutable instance of NameForms
- Throws:
IllegalStateException- if any required attributes are missing
-
absoluteIsSet
private boolean absoluteIsSet() -
absoluteRawIsSet
private boolean absoluteRawIsSet() -
genericArgsIsSet
private boolean genericArgsIsSet() -
relativeAlreadyQualifiedIsSet
private boolean relativeAlreadyQualifiedIsSet() -
simpleIsSet
private boolean simpleIsSet() -
relativeRawIsSet
private boolean relativeRawIsSet() -
packageOfIsSet
private boolean packageOfIsSet() -
visibilityIsSet
private boolean visibilityIsSet() -
checkNotIsSet
-
checkRequiredAttributes
private void checkRequiredAttributes() -
formatRequiredAttributesMessage
-