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) int
getArrayLength
(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) int
getName()
ReflectClass<? super T>
boolean
boolean
isArray()
boolean
isAssignableFrom
(Class<?> cls) boolean
isAssignableFrom
(ReflectClass<?> cls) boolean
isEnum()
boolean
isInstance
(Object obj) boolean
boolean
boolean
isRecord()
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
-