Class ImmutableTrees.Invoke.Builder
- java.lang.Object
-
- org.immutables.generator.processor.ImmutableTrees.Invoke.Builder
-
- Enclosing class:
- ImmutableTrees.Invoke
@NotThreadSafe public static final class ImmutableTrees.Invoke.Builder extends java.lang.Object
-
-
Field Summary
Fields Modifier and Type Field Description private Trees.AccessExpressionaccessprivate static longINIT_BIT_ACCESSprivate longinitBitsprivate com.google.common.base.Optional<Trees.ApplyExpression>invoke
-
Constructor Summary
Constructors Modifier Constructor Description privateBuilder()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ImmutableTrees.Invoke.Builderaccess(Trees.AccessExpression access)Initializes the value for theaccessattribute.ImmutableTrees.Invokebuild()Builds a newInvoke.private java.lang.StringformatRequiredAttributesMessage()private voidfrom(short _unused, java.lang.Object object)ImmutableTrees.Invoke.Builderfrom(Trees.Invoke instance)Fill a builder with attribute values from the providedorg.immutables.generator.processor.Trees.Invokeinstance.ImmutableTrees.Invoke.Builderfrom(Trees.InvokeDeclaration instance)Fill a builder with attribute values from the providedorg.immutables.generator.processor.Trees.InvokeDeclarationinstance.ImmutableTrees.Invoke.Builderinvoke(com.google.common.base.Optional<? extends Trees.ApplyExpression> invoke)Initializes the optional valueinvoketo invoke.ImmutableTrees.Invoke.Builderinvoke(Trees.ApplyExpression invoke)Initializes the optional valueinvoketo invoke.
-
-
-
Field Detail
-
INIT_BIT_ACCESS
private static final long INIT_BIT_ACCESS
- See Also:
- Constant Field Values
-
initBits
private long initBits
-
access
@Nullable private Trees.AccessExpression access
-
invoke
private com.google.common.base.Optional<Trees.ApplyExpression> invoke
-
-
Method Detail
-
from
public final ImmutableTrees.Invoke.Builder from(Trees.InvokeDeclaration instance)
Fill a builder with attribute values from the providedorg.immutables.generator.processor.Trees.InvokeDeclarationinstance.- Parameters:
instance- The instance from which to copy values- Returns:
thisbuilder for use in a chained invocation
-
from
public final ImmutableTrees.Invoke.Builder from(Trees.Invoke instance)
Fill a builder with attribute values from the providedorg.immutables.generator.processor.Trees.Invokeinstance.- Parameters:
instance- The instance from which to copy values- Returns:
thisbuilder for use in a chained invocation
-
from
private void from(short _unused, java.lang.Object object)
-
access
public final ImmutableTrees.Invoke.Builder access(Trees.AccessExpression access)
Initializes the value for theaccessattribute.- Parameters:
access- The value for access- Returns:
thisbuilder for use in a chained invocation
-
invoke
public final ImmutableTrees.Invoke.Builder invoke(Trees.ApplyExpression invoke)
Initializes the optional valueinvoketo invoke.- Parameters:
invoke- The value for invoke- Returns:
thisbuilder for chained invocation
-
invoke
public final ImmutableTrees.Invoke.Builder invoke(com.google.common.base.Optional<? extends Trees.ApplyExpression> invoke)
Initializes the optional valueinvoketo invoke.- Parameters:
invoke- The value for invoke- Returns:
thisbuilder for use in a chained invocation
-
build
public ImmutableTrees.Invoke build()
Builds a newInvoke.- Returns:
- An immutable instance of Invoke
- Throws:
java.lang.IllegalStateException- if any required attributes are missing
-
formatRequiredAttributesMessage
private java.lang.String formatRequiredAttributesMessage()
-
-