Modifier and Type | Field and Description |
---|---|
private final GenericDeclaration | |
private final Scope |
Access | Constructor and Description |
---|---|
private |
Modifier and Type | Method and Description |
---|---|
public TypeVariable | findTypeVariable(String
- the name of the type variable to search for name)Implements sun. name , if such
a type variable is declared in the
scope used to create this factory.
|
private GenericDeclaration | |
private ClassLoader | |
private Scope | |
public static CoreReflectionFactory | Returns: an instance ofCoreReflectionFactory - the generic declaration (class, interface, method or
constructor) that this factory services d, Scope the scope in which the factory will allocate and search for
type variables s)Factory for this class. |
public Type | makeArrayType(Type
- the component type of the array componentType)Implements sun. |
public Type | makeBool()
Implements sun. boolean .
|
public Type | makeByte()
Implements sun. byte .
|
public Type | makeChar()
Implements sun. char .
|
public Type | makeDouble()
Implements sun. double .
|
public Type | makeFloat()
Implements sun. float .
|
public Type | makeInt()
Implements sun. int .
|
public Type | makeLong()
Implements sun. long .
|
public Type | |
public ParameterizedType | makeParameterizedType(Type
- the generic type declaration that is to be
instantiated declaration, Type[] - the list of actual type arguments typeArgs, Type owner)Implements sun. ParameterizedType interface
that corresponds to a generic type instantiation of the
generic declaration declaration with actual type arguments
typeArgs .
|
public Type | makeShort()
Implements sun. short .
|
public TypeVariable | makeTypeVariable(String
The 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)Implements sun. |
public Type | makeVoid()
Implements sun. void .
|
public WildcardType | makeWildcard(FieldTypeSignature[]
An 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)Implements sun. |
decl | back to summary |
---|---|
private final GenericDeclaration decl |
scope | back to summary |
---|---|
private final Scope scope |
CoreReflectionFactory | back to summary |
---|---|
private CoreReflectionFactory(GenericDeclaration d, Scope s) |
findTypeVariable | back to summary |
---|---|
public TypeVariable Implements sun. Doc from sun. Returns the type variable with name
|
getDecl | back to summary |
---|---|
private GenericDeclaration getDecl() |
getDeclsLoader | back to summary |
---|---|
private ClassLoader getDeclsLoader() |
getScope | back to summary |
---|---|
private Scope getScope() |
make | back to summary |
---|---|
public static CoreReflectionFactory make(GenericDeclaration d, Scope s) Factory for this class. Returns an instance of
Type variables will be created or lookup as necessary in the
scope
|
makeArrayType | back to summary |
---|---|
public Type makeArrayType(Type componentType) Implements sun. Doc from sun. 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() Implements sun. Doc from sun. Returns the reflective representation of type
|
makeByte | back to summary |
---|---|
public Type makeByte() Implements sun. Doc from sun. Returns the reflective representation of type
|
makeChar | back to summary |
---|---|
public Type makeChar() Implements sun. Doc from sun. Returns the reflective representation of type
|
makeDouble | back to summary |
---|---|
public Type makeDouble() Implements sun. Doc from sun. Returns the reflective representation of type
|
makeFloat | back to summary |
---|---|
public Type makeFloat() Implements sun. Doc from sun. Returns the reflective representation of type
|
makeInt | back to summary |
---|---|
public Type makeInt() Implements sun. Doc from sun. Returns the reflective representation of type
|
makeLong | back to summary |
---|---|
public Type makeLong() Implements sun. Doc from sun. Returns the reflective representation of type
|
makeNamedType | back to summary |
---|---|
public Type makeNamedType(String name) Implements sun. |
makeParameterizedType | back to summary |
---|---|
public ParameterizedType makeParameterizedType(Type declaration, Type[] typeArgs, Type owner) Implements sun. Doc from sun. 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() Implements sun. Doc from sun. Returns the reflective representation of type
|
makeTypeVariable | back to summary |
---|---|
public TypeVariable Implements sun. Doc from sun. Returns a new type variable declaration. Note that
|
makeVoid | back to summary |
---|---|
public Type makeVoid() Implements sun. Doc from sun. Returns the reflective representation of
|
makeWildcard | back to summary |
---|---|
public WildcardType makeWildcard(FieldTypeSignature[] ubs, FieldTypeSignature[] lbs) Implements sun. Doc from sun. Returns a new wildcard type variable. If
|