Package net.jodah.typetools
Class ReifiedParameterizedType
java.lang.Object
net.jodah.typetools.ReifiedParameterizedType
- All Implemented Interfaces:
ParameterizedType
,Type
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final boolean[]
private final ParameterizedType
private int
private final Type[]
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescription(package private) void
addReifiedTypeArgument
(Type type) This method is used to set reified types as they are processed.boolean
Type[]
int
hashCode()
toString()
Keep this consistent withParameterizedTypeImpl.toString()
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
Methods inherited from interface java.lang.reflect.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 reifyT
we need to reify firstE1
and thenE2
in order. The reified counterpart ofT
is allocated before, and then the results from reifyingE1
andE2
are added through this method.- Parameters:
type
- the reification result to be added
-
getActualTypeArguments
- Specified by:
getActualTypeArguments
in interfaceParameterizedType
-
getRawType
- Specified by:
getRawType
in interfaceParameterizedType
-
getOwnerType
- Specified by:
getOwnerType
in interfaceParameterizedType
-
toString
Keep this consistent withParameterizedTypeImpl.toString()
-
equals
-
hashCode
public int hashCode()
-