Class ReifiedParameterizedType

java.lang.Object
net.jodah.typetools.ReifiedParameterizedType
All Implemented Interfaces:
ParameterizedType, Type

class ReifiedParameterizedType extends Object implements ParameterizedType
  • Field Details

    • original

      private final ParameterizedType original
    • reifiedTypeArguments

      private final Type[] reifiedTypeArguments
    • loop

      private final boolean[] loop
    • reified

      private int reified
  • Constructor Details

  • Method Details

    • addReifiedTypeArgument

      void addReifiedTypeArgument(Type type)
      This method is used to set reified types as they are processed. For example, When reifying some T<E1, E2>, in order to reify T we need to reify first E1 and then E2 in order. The reified counterpart of T is allocated before, and then the results from reifying E1 and E2 are added through this method.
      Parameters:
      type - the reification result to be added
    • getActualTypeArguments

      public Type[] getActualTypeArguments()
      Specified by:
      getActualTypeArguments in interface ParameterizedType
    • getRawType

      public Type getRawType()
      Specified by:
      getRawType in interface ParameterizedType
    • getOwnerType

      public Type getOwnerType()
      Specified by:
      getOwnerType in interface ParameterizedType
    • toString

      public String toString()
      Keep this consistent with ParameterizedTypeImpl.toString()
      Overrides:
      toString in class Object
    • equals

      public boolean equals(Object o)
      Overrides:
      equals in class Object
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object