Class ImmutableTrees.Parameter.Builder
java.lang.Object
org.immutables.generator.processor.ImmutableTrees.Parameter.Builder
- Enclosing class:
ImmutableTrees.Parameter
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate static final longprivate static final longprivate longprivate Trees.Identifierprivate Trees.TypeReference -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()Builds a newParameter.private Stringprivate voidfrom(Trees.Named instance) Fill a builder with attribute values from the providedorg.immutables.generator.processor.Trees.Namedinstance.from(Trees.Parameter instance) Fill a builder with attribute values from the providedorg.immutables.generator.processor.Trees.Parameterinstance.from(Trees.Typed instance) Fill a builder with attribute values from the providedorg.immutables.generator.processor.Trees.Typedinstance.name(Trees.Identifier name) Initializes the value for thenameattribute.type(Trees.TypeReference type) Initializes the value for thetypeattribute.
-
Field Details
-
INIT_BIT_NAME
private static final long INIT_BIT_NAME- See Also:
-
INIT_BIT_TYPE
private static final long INIT_BIT_TYPE- See Also:
-
initBits
private long initBits -
name
-
type
-
-
Constructor Details
-
Builder
private Builder()
-
-
Method Details
-
from
Fill a builder with attribute values from the providedorg.immutables.generator.processor.Trees.Namedinstance.- Parameters:
instance- The instance from which to copy values- Returns:
thisbuilder for use in a chained invocation
-
from
Fill a builder with attribute values from the providedorg.immutables.generator.processor.Trees.Parameterinstance.- Parameters:
instance- The instance from which to copy values- Returns:
thisbuilder for use in a chained invocation
-
from
Fill a builder with attribute values from the providedorg.immutables.generator.processor.Trees.Typedinstance.- Parameters:
instance- The instance from which to copy values- Returns:
thisbuilder for use in a chained invocation
-
from
-
name
Initializes the value for thenameattribute.- Parameters:
name- The value for name- Returns:
thisbuilder for use in a chained invocation
-
type
Initializes the value for thetypeattribute.- Parameters:
type- The value for type- Returns:
thisbuilder for use in a chained invocation
-
build
Builds a newParameter.- Returns:
- An immutable instance of Parameter
- Throws:
IllegalStateException- if any required attributes are missing
-
formatRequiredAttributesMessage
-