| Package | Description |
|---|---|
| java.lang | |
| java.lang.annotation | |
| java.lang.invoke | |
| java.lang.reflect | |
| java.util |
| Modifier and Type | Field and Description |
|---|---|
static Class |
Void.TYPE |
static Class<Long> |
Long.TYPE |
static Class<Integer> |
Integer.TYPE |
static Class<Double> |
Double.TYPE |
static Class<Byte> |
Byte.TYPE |
| Modifier and Type | Method and Description |
|---|---|
Class |
Class.asSubclass(Class superclass)
Replacement for Class.asSubclass(Class).
|
static Class |
Class.forName(String className)
Deprecated.
don't use this method for anything important since class names are obfuscated on the device!
|
Class |
Object.getClass()
Returns the runtime class of an object.
|
Class |
Class.getComponentType()
Gets for Array classes, this returns the type of the elements of the array.
|
Class<E> |
Enum.getDeclaringClass() |
| Modifier and Type | Method and Description |
|---|---|
Class |
Class.asSubclass(Class superclass)
Replacement for Class.asSubclass(Class).
|
<T extends Annotation> |
Class.getAnnotation(Class annotationType)
Returns this element's annotation for the specified type if such an annotation is present, else null.
|
protected static <T> T[] |
Enum.getEnumValues(Class<T> class_) |
boolean |
Class.isAnnotationPresent(Class annotationType)
Returns true if an annotation for the specified type is present on this element, else false.
|
boolean |
Class.isAssignableFrom(Class cls)
Determines if the class or interface represented by this Class object is either the same as, or is a superclass or superinterface of, the class or interface represented by the specified Class parameter.
|
protected static void |
Enum.setEnumValues(Object[] values,
Class c) |
static <T extends Enum<T>> |
Enum.valueOf(Class<T> enumType,
String name) |
| Modifier and Type | Method and Description |
|---|---|
Class<? extends Annotation> |
IncompleteAnnotationException.annotationType() |
Class<? extends Annotation> |
Annotation.annotationType()
Returns the annotation type of this annotation.
|
| Constructor and Description |
|---|
IncompleteAnnotationException(Class<? extends Annotation> annotationType,
String elementName) |
| Modifier and Type | Method and Description |
|---|---|
Class<?> |
MethodHandles.Lookup.lookupClass() |
Class<?>[] |
MethodType.parameterArray()
Deprecated.
|
Class<?> |
MethodType.parameterType(int a)
Deprecated.
|
Class<?> |
MethodType.returnType()
Deprecated.
|
| Modifier and Type | Method and Description |
|---|---|
List<Class<?>> |
MethodType.parameterList()
Deprecated.
|
| Modifier and Type | Method and Description |
|---|---|
MethodType |
MethodType.appendParameterTypes(Class<?>... a)
Deprecated.
|
static MethodHandle |
MethodHandles.arrayElementGetter(Class<?> a)
Deprecated.
|
static MethodHandle |
MethodHandles.arrayElementSetter(Class<?> a)
Deprecated.
|
MethodHandle |
MethodHandle.asCollector(Class<?> a,
int b)
Deprecated.
|
MethodHandle |
MethodHandle.asSpreader(Class<?> a,
int b)
Deprecated.
|
MethodHandle |
MethodHandle.asVarargsCollector(Class<?> a)
Deprecated.
|
static MethodHandle |
MethodHandles.catchException(MethodHandle a,
Class<? extends Throwable> b,
MethodHandle c)
Deprecated.
|
MethodType |
MethodType.changeParameterType(int a,
Class<?> b)
Deprecated.
|
MethodType |
MethodType.changeReturnType(Class<?> a)
Deprecated.
|
static MethodHandle |
MethodHandles.constant(Class<?> a,
Object b)
Deprecated.
|
static MethodHandle |
MethodHandles.dropArguments(MethodHandle a,
int b,
Class<?>... c)
Deprecated.
|
MethodHandle |
MethodHandles.Lookup.findConstructor(Class<?> a,
MethodType b) |
MethodHandle |
MethodHandles.Lookup.findGetter(Class<?> a,
String b,
Class<?> c) |
MethodHandle |
MethodHandles.Lookup.findGetter(Class<?> a,
String b,
Class<?> c) |
MethodHandle |
MethodHandles.Lookup.findSetter(Class<?> a,
String b,
Class<?> c) |
MethodHandle |
MethodHandles.Lookup.findSetter(Class<?> a,
String b,
Class<?> c) |
MethodHandle |
MethodHandles.Lookup.findSpecial(Class<?> a,
String b,
MethodType c,
Class<?> d) |
MethodHandle |
MethodHandles.Lookup.findSpecial(Class<?> a,
String b,
MethodType c,
Class<?> d) |
MethodHandle |
MethodHandles.Lookup.findStatic(Class<?> a,
String b,
MethodType c) |
MethodHandle |
MethodHandles.Lookup.findStaticGetter(Class<?> a,
String b,
Class<?> c) |
MethodHandle |
MethodHandles.Lookup.findStaticGetter(Class<?> a,
String b,
Class<?> c) |
MethodHandle |
MethodHandles.Lookup.findStaticSetter(Class<?> a,
String b,
Class<?> c) |
MethodHandle |
MethodHandles.Lookup.findStaticSetter(Class<?> a,
String b,
Class<?> c) |
MethodHandle |
MethodHandles.Lookup.findVirtual(Class<?> a,
String b,
MethodType c) |
static MethodHandle |
MethodHandles.identity(Class<?> a)
Deprecated.
|
MethodHandles.Lookup |
MethodHandles.Lookup.in(Class<?> a) |
MethodType |
MethodType.insertParameterTypes(int a,
Class<?>... b)
Deprecated.
|
static MethodType |
MethodType.methodType(Class<?> a)
Deprecated.
|
static MethodType |
MethodType.methodType(Class<?> a,
Class<?> b)
Deprecated.
|
static MethodType |
MethodType.methodType(Class<?> a,
Class<?> b)
Deprecated.
|
static MethodType |
MethodType.methodType(Class<?> a,
Class<?>[] b)
Deprecated.
|
static MethodType |
MethodType.methodType(Class<?> a,
Class<?>[] b)
Deprecated.
|
static MethodType |
MethodType.methodType(Class<?> a,
Class<?> b,
Class<?>... c)
Deprecated.
|
static MethodType |
MethodType.methodType(Class<?> a,
Class<?> b,
Class<?>... c)
Deprecated.
|
static MethodType |
MethodType.methodType(Class<?> a,
Class<?> b,
Class<?>... c)
Deprecated.
|
static MethodType |
MethodType.methodType(Class<?> a,
List<Class<?>> b)
Deprecated.
|
static MethodType |
MethodType.methodType(Class<?> a,
MethodType b)
Deprecated.
|
static <T> T |
MethodHandles.reflectAs(Class<T> a,
MethodHandle b)
Deprecated.
|
static MethodHandle |
MethodHandles.throwException(Class<?> a,
Class<? extends Throwable> b)
Deprecated.
|
static MethodHandle |
MethodHandles.throwException(Class<?> a,
Class<? extends Throwable> b)
Deprecated.
|
MethodHandle |
MethodHandles.Lookup.unreflectSpecial(Object a,
Class<?> b) |
| Modifier and Type | Method and Description |
|---|---|
MethodType |
MethodType.appendParameterTypes(List<Class<?>> a)
Deprecated.
|
static MethodHandle |
MethodHandles.dropArguments(MethodHandle a,
int b,
List<Class<?>> c)
Deprecated.
|
MethodType |
MethodType.insertParameterTypes(int a,
List<Class<?>> b)
Deprecated.
|
static MethodType |
MethodType.methodType(Class<?> a,
List<Class<?>> b)
Deprecated.
|
| Modifier and Type | Method and Description |
|---|---|
static Object |
Array.newInstance(Class<?> componentType,
int length) |
static Object |
Array.newInstance(Class<?> componentType,
int[] dimensions) |
| Modifier and Type | Method and Description |
|---|---|
static <E> Collection<E> |
Collections.checkedCollection(Collection<E> c,
Class<E> type)
Returns a dynamically typesafe view of the specified collection.
|
static <T> T[] |
Arrays.copyOf(T[] original,
int newLength,
Class<? extends T[]> newType) |
static <T,U> T[] |
Arrays.copyOfRange(U[] original,
int from,
int to,
Class<? extends T[]> newType) |
Copyright © 2024. All rights reserved.