Class ImmutableStructurizer.Statement.Builder

java.lang.Object
org.immutables.value.processor.encode.ImmutableStructurizer.Statement.Builder
Direct Known Subclasses:
Structurizer.Statement.Builder
Enclosing class:
ImmutableStructurizer.Statement

@NotThreadSafe public static class ImmutableStructurizer.Statement.Builder extends Object
Builds instances of type Statement. Initialize attributes and then invoke the build() method to create an immutable instance.

Builder is not thread-safe and generally should not be stored in a field or collection, but instead used immediately to create instances.

  • Field Details

    • OPT_BIT_NAME

      private static final long OPT_BIT_NAME
      See Also:
    • optBits

      private long optBits
    • annotations

      private final com.google.common.collect.ImmutableList.Builder<Code.Term> annotations
    • signature

      private final com.google.common.collect.ImmutableList.Builder<Code.Term> signature
    • parameters

      private final com.google.common.collect.ImmutableList.Builder<Code.Term> parameters
    • expression

      private final com.google.common.collect.ImmutableList.Builder<Code.Term> expression
    • block

      private final com.google.common.collect.ImmutableList.Builder<Code.Term> block
    • definitions

      private final com.google.common.collect.ImmutableList.Builder<Structurizer.Statement> definitions
    • name

      @Nullable private com.google.common.base.Optional<String> name
  • Constructor Details

    • Builder

      public Builder()
      Creates a builder for Statement instances.
       new Structurizer.Statement.Builder()
          .addAnnotations|addAllAnnotations(org.immutables.value.processor.encode.Code.Term) // annotations elements
          .addSignature|addAllSignature(org.immutables.value.processor.encode.Code.Term) // signature elements
          .addParameters|addAllParameters(org.immutables.value.processor.encode.Code.Term) // parameters elements
          .addExpression|addAllExpression(org.immutables.value.processor.encode.Code.Term) // expression elements
          .addBlock|addAllBlock(org.immutables.value.processor.encode.Code.Term) // block elements
          .addDefinitions|addAllDefinitions(org.immutables.value.processor.encode.Structurizer.Statement) // definitions elements
          .name(com.google.common.base.Optional&lt;String&gt;) // optional name
          .build();
       
  • Method Details