The intent is that reflective systems use these factories to produce generic type information on demand. Certain components of such reflective systems can be independent of a specific implementation by using this interface. For example, repositories of generic type information are initialized with a factory conforming to this interface, and use it to generate the type information they are required to provide. As a result, such repository code can be shared across different reflective systems.
| Modifier and Type | Method and Description |
|---|---|
| public TypeVariable | Returns: - the type variable with namename, or null- the name of the type variable to search for name)Returns the type variable with name |
| public Type | Returns: a (possibly generic) array type.- the component type of the array componentType)Returns a (possibly generic) array type. |
| public Type | Returns: the reflective representation of typeboolean.Returns the reflective representation of type |
| public Type | Returns: the reflective representation of typebyte.Returns the reflective representation of type |
| public Type | Returns: the reflective representation of typechar.Returns the reflective representation of type |
| public Type | Returns: the reflective representation of typedouble.Returns the reflective representation of type |
| public Type | Returns: the reflective representation of typefloat.Returns the reflective representation of type |
| public Type | Returns: the reflective representation of typeint.Returns the reflective representation of type |
| public Type | Returns: the reflective representation of typelong.Returns the reflective representation of type |
| public Type | |
| public ParameterizedType | Returns: - a parameterized type representing the instantiation of the declaration with the actual type arguments- the generic type declaration that is to be
instantiated declaration, Type[] - the list of actual type arguments typeArgs, Type owner)Returns an instance of the |
| public Type | Returns: the reflective representation of typeshort.Returns the reflective representation of type |
| public TypeVariable | Returns: a new type variable declarationThe name of the type variable name, FieldTypeSignature[] An array of abstract syntax trees representing
the upper bound(s) on the type variable being declared bounds)Returns a new type variable declaration. |
| public Type | Returns: the reflective representation ofvoid.Returns the reflective representation of |
| public WildcardType | Returns: a new wildcard type variableAn array of abstract syntax trees representing
the upper bound(s) on the type variable being declared ubs, FieldTypeSignature[] An array of abstract syntax trees representing
the lower bound(s) on the type variable being declared lbs)Returns a new wildcard type variable. |
| findTypeVariable | back to summary |
|---|---|
| public TypeVariable Returns the type variable with name
| |
| makeArrayType | back to summary |
|---|---|
| public Type makeArrayType(Type componentType) Returns a (possibly generic) array type. If the component type is a parameterized type, it must only have unbounded wildcard arguments, otherwise a MalformedParameterizedTypeException is thrown.
| |
| makeBool | back to summary |
|---|---|
| public Type makeBool() Returns the reflective representation of type
| |
| makeByte | back to summary |
|---|---|
| public Type makeByte() Returns the reflective representation of type
| |
| makeChar | back to summary |
|---|---|
| public Type makeChar() Returns the reflective representation of type
| |
| makeDouble | back to summary |
|---|---|
| public Type makeDouble() Returns the reflective representation of type
| |
| makeFloat | back to summary |
|---|---|
| public Type makeFloat() Returns the reflective representation of type
| |
| makeInt | back to summary |
|---|---|
| public Type makeInt() Returns the reflective representation of type
| |
| makeLong | back to summary |
|---|---|
| public Type makeLong() Returns the reflective representation of type
| |
| makeNamedType | back to summary |
|---|---|
| public Type makeNamedType(String name) | |
| makeParameterizedType | back to summary |
|---|---|
| public ParameterizedType makeParameterizedType(Type declaration, Type[] typeArgs, Type owner) Returns an instance of the This method throws a MalformedParameterizedTypeException
under the following circumstances:
If the type declaration does not represent a generic declaration
(i.e., it is not an instance of
| |
| makeShort | back to summary |
|---|---|
| public Type makeShort() Returns the reflective representation of type
| |
| makeTypeVariable | back to summary |
|---|---|
| public TypeVariable Returns a new type variable declaration. Note that
| |
| makeVoid | back to summary |
|---|---|
| public Type makeVoid() Returns the reflective representation of
| |
| makeWildcard | back to summary |
|---|---|
| public WildcardType makeWildcard(FieldTypeSignature[] ubs, FieldTypeSignature[] lbs) Returns a new wildcard type variable. If
| |