Package org.teavm.metaprogramming
Interface ReflectClass<T>
- All Superinterfaces:
ReflectAnnotatedElement
-
Method Summary
Modifier and TypeMethodDescription<U> ReflectClass<U> asSubclass(Class<U> cls) T[]createArray(int size) getArrayElement(Object array, int index) intgetArrayLength(Object array) ReflectClass<?> getDeclaredField(String name) getDeclaredJMethod(String name, Class<?>... parameterTypes) getDeclaredMethod(String name, ReflectClass<?>... parameterTypes) T[]ReflectClass<? super T>[]getJMethod(String name, Class<?>... parameterTypes) getMethod(String name, ReflectClass<?>... parameterTypes) intgetName()ReflectClass<? super T> booleanbooleanisArray()booleanisAssignableFrom(Class<?> cls) booleanisAssignableFrom(ReflectClass<?> cls) booleanisEnum()booleanisInstance(Object obj) booleanbooleanbooleanisRecord()Methods inherited from interface org.teavm.metaprogramming.reflect.ReflectAnnotatedElement
getAnnotation
-
Method Details
-
isPrimitive
boolean isPrimitive() -
isInterface
boolean isInterface() -
isArray
boolean isArray() -
isAnnotation
boolean isAnnotation() -
isEnum
boolean isEnum() -
isRecord
boolean isRecord() -
getEnumConstants
T[] getEnumConstants() -
getModifiers
int getModifiers() -
getComponentType
ReflectClass<?> getComponentType() -
getName
String getName() -
getSuperclass
ReflectClass<? super T> getSuperclass() -
getInterfaces
ReflectClass<? super T>[] getInterfaces() -
isInstance
-
cast
-
asSubclass
-
isAssignableFrom
-
isAssignableFrom
-
getDeclaredMethods
ReflectMethod[] getDeclaredMethods() -
getMethods
ReflectMethod[] getMethods() -
getDeclaredMethod
-
getDeclaredJMethod
-
getMethod
-
getJMethod
-
getDeclaredFields
ReflectField[] getDeclaredFields() -
getFields
ReflectField[] getFields() -
getDeclaredField
-
getField
-
createArray
-
getArrayElement
-
getArrayLength
-
asJavaClass
-