Interface TypeArgumentBuilder<A>

Type Parameters:
A - the type of the parent builder

public interface TypeArgumentBuilder<A>

A type argument builder is used to specify the arguments of a parameterized type.

Author:
Jeremy Kuhn
  • Method Details

    • type

      Specifies a type as the next argument of the parameterized type.

      Parameters:
      rawType - an erased type
      Returns:
      a type argument builder with this builder as parent
    • type

      TypeArgumentBuilder<A> type(Type type)

      Specifies a type as the next argument of the parameterized type.

      Parameters:
      type - a type
      Returns:
      this builder
    • variableType

      Specifies a variable type as the next argument of the parameterized type.

      Parameters:
      name - The name of the variable
      Returns:
      a type variable builder with this builder as parent
    • wildcardType

      Specifies a wildcard type as the next argument of the parameterized type.

      Returns:
      a wildcard type argument builder with this builder as parent
    • arrayType

      Specifies an array type as the next argument of the parameterized type.

      Returns:
      an array type argument builder with this builder as parent
    • ownerType

      Specifies the owner type of the parameterized type.

      Parameters:
      rawType - the owner type to set
      Returns:
      a type argument builder with this builder as parent
    • and

      A and() throws IllegalStateException

      Finalizes this builder and returns the parent builder.

      Returns:
      the parent builder
      Throws:
      IllegalStateException - if the builder is not in a proper state to be finalized