java.lang.Object | |
↳ | sun.reflect.generics.factory.CoreReflectionFactory |
Factory for reflective generic type objects for use by core reflection (java.lang.reflect).
Public Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Returns the type variable with name name, if such
a type variable is declared in the
scope used to create this factory.
| |||||||||||
Factory for this class.
| |||||||||||
Returns a (possibly generic) array type.
| |||||||||||
Returns the reflective representation of type boolean.
| |||||||||||
Returns the reflective representation of type byte.
| |||||||||||
Returns the reflective representation of type char.
| |||||||||||
Returns the reflective representation of type double.
| |||||||||||
Returns the reflective representation of type float.
| |||||||||||
Returns the reflective representation of type int.
| |||||||||||
Returns the reflective representation of type long.
| |||||||||||
Return an instance of the ParameterizedType interface
that corresponds to a generic type instantiation of the
generic declaration declaration with actual type arguments
typeArgs.
| |||||||||||
Returns the reflective representation of type short.
| |||||||||||
Returns a new type variable declaration.
| |||||||||||
Returns the reflective representation of void.
| |||||||||||
Returns a new wildcard type variable.
|
[Expand]
Inherited Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
From class
java.lang.Object
| |||||||||||
From interface
sun.reflect.generics.factory.GenericsFactory
|
Returns the type variable with name name, if such a type variable is declared in the scope used to create this factory. Returns null otherwise.
name | - the name of the type variable to search for |
---|
Factory for this class. Returns an instance of CoreReflectionFactory for the declaration and scope provided. This factory will produce reflective objects of the appropriate kind. Classes produced will be those that would be loaded by the defining class loader of the declaration d (if d is a type declaration, or by the defining loader of the declaring class of d otherwise.
Type variables will be created or lookup as necessary in the scope s.
d | - the generic declaration (class, interface, method or constructor) that thsi factory services |
---|---|
s | the scope in which the factory will allocate and search for type variables |
Returns a (possibly generic) array type. If the component type is a parameterized type, it must only have unbounded wildcard arguemnts, otherwise a MalformedParameterizedTypeException is thrown.
componentType | - the component type of the array |
---|
Returns the reflective representation of type boolean.
Returns the reflective representation of type byte.
Returns the reflective representation of type char.
Returns the reflective representation of type double.
Returns the reflective representation of type float.
Returns the reflective representation of type int.
Returns the reflective representation of type long.
Return an instance of the ParameterizedType interface that corresponds to a generic type instantiation of the generic declaration declaration with actual type arguments typeArgs. If owner is null, the declaring class of declaration is used as the owner of this parameterized type.
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 GenericDeclaration). If the number of actual type arguments (i.e., the size of the array typeArgs) does not correspond to the number of formal type arguments. If any of the actual type arguments is not an instance of the bounds on the corresponding formal.
declaration | - the generic type declaration that is to be instantiated |
---|---|
typeArgs | - the list of actual type arguments |
Returns the reflective representation of type short.
Returns a new type variable declaration. Note that name may be empty (but not null). If bounds is empty, a bound of java.lang.Object is used.
name | The name of the type variable |
---|---|
bounds | An array of abstract syntax trees representing the upper bound(s) on the type variable being declared |
Returns the reflective representation of void.
Returns a new wildcard type variable. If ubs is empty, a bound of java.lang.Object is used.
ubs | An array of abstract syntax trees representing the upper bound(s) on the type variable being declared |
---|---|
lbs | An array of abstract syntax trees representing the lower bound(s) on the type variable being declared |