Class ReifiedParameterizedType
java.lang.Object
net.jodah.typetools.ReifiedParameterizedType
- All Implemented Interfaces:
ParameterizedType, Type
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final boolean[]private final ParameterizedTypeprivate intprivate final Type[] -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescription(package private) voidaddReifiedTypeArgument(Type type) This method is used to set reified types as they are processed.booleanType[]inthashCode()toString()Keep this consistent withParameterizedTypeImpl.toString()Methods inherited from interface Type
getTypeName
-
Field Details
-
original
-
reifiedTypeArguments
-
loop
private final boolean[] loop -
reified
private int reified
-
-
Constructor Details
-
ReifiedParameterizedType
ReifiedParameterizedType(ParameterizedType original)
-
-
Method Details
-
addReifiedTypeArgument
This method is used to set reified types as they are processed. For example, When reifying someT<E1, E2>, in order to reifyTwe need to reify firstE1and thenE2in order. The reified counterpart ofTis allocated before, and then the results from reifyingE1andE2are added through this method.- Parameters:
type- the reification result to be added
-
getActualTypeArguments
- Specified by:
getActualTypeArgumentsin interfaceParameterizedType
-
getRawType
- Specified by:
getRawTypein interfaceParameterizedType
-
getOwnerType
- Specified by:
getOwnerTypein interfaceParameterizedType
-
toString
-
equals
-
hashCode
-