Class FieldProxy.Builder

java.lang.Object
ftbsc.lll.proxies.AbstractProxy.Builder<FieldProxy>
ftbsc.lll.proxies.impl.FieldProxy.Builder
Enclosing class:
FieldProxy

public static class FieldProxy.Builder extends AbstractProxy.Builder<FieldProxy>
A builder object for FieldProxy.
  • Method Details

    • setParent

      public FieldProxy.Builder setParent(String parentFQN, int modifiers)
      Sets the parent class of this field to the one described by the fully qualified name and with the given modifiers.
      Parameters:
      parentFQN - the fully qualified name of the parent
      modifiers - the modifiers of the parent
      Returns:
      the builder's state after the change
    • setParent

      public FieldProxy.Builder setParent(String parentFQN)
      Sets the parent class of this field to the one described by the fully qualified name.
      Parameters:
      parentFQN - the fully qualified name of the parent
      Returns:
      the builder's state after the change
    • setType

      public FieldProxy.Builder setType(Class<?> clazz)
      Sets the type of the field to the given Class object.
      Parameters:
      clazz - the Class corresponding to the element
      Returns:
      the current state of the builder
    • setType

      public FieldProxy.Builder setType(String fqn, int arrayLevel)
      Sets the type of the field to the given type.
      Parameters:
      fqn - the fully qualified name of the parameter type
      arrayLevel - the array level
      Returns:
      the builder's state after the change
    • build

      public FieldProxy build()
      Builds a FieldProxy of the given kind.
      Specified by:
      build in class AbstractProxy.Builder<FieldProxy>
      Returns:
      the built FieldProxy