Factory for reflective generic type objects for use by
core reflection (java.lang.reflect).
| Method from sun.reflect.generics.factory.CoreReflectionFactory Detail: |
public TypeVariable findTypeVariable(String name) {
return getScope().lookup(name);
}
|
public static CoreReflectionFactory make(GenericDeclaration d,
Scope s) {
return new CoreReflectionFactory(d, s);
}
|
public Type makeArrayType(Type componentType) {
return GenericArrayTypeImpl.make(componentType);
}
|
public Type makeBool() {
return boolean.class;
}
|
public Type makeByte() {
return byte.class;
}
|
public Type makeChar() {
return char.class;
}
|
public Type makeDouble() {
return double.class;
}
|
public Type makeFloat() {
return float.class;
}
|
public Type makeInt() {
return int.class;
}
|
public Type makeLong() {
return long.class;
}
|
public Type makeNamedType(String name) {
try {return Class.forName(name, false, // don't initialize
getDeclsLoader());}
catch (ClassNotFoundException c) {
throw new TypeNotPresentException(name, c);
}
}
|
public ParameterizedType makeParameterizedType(Type declaration,
Type[] typeArgs,
Type owner) {
return ParameterizedTypeImpl.make((Class< ? >) declaration,
typeArgs, owner);
}
|
public Type makeShort() {
return short.class;
}
|
public TypeVariable makeTypeVariable(String name,
FieldTypeSignature[] bounds) {
return TypeVariableImpl.make(getDecl(), name, bounds, this);
}
|
public Type makeVoid() {
return void.class;
}
|
public WildcardType makeWildcard(FieldTypeSignature[] ubs,
FieldTypeSignature[] lbs) {
return WildcardTypeImpl.make(ubs, lbs, this);
}
|