Package org.teavm.classlib.java.lang
Class TClass<T>
java.lang.Object
org.teavm.classlib.java.lang.TObject
org.teavm.classlib.java.lang.TClass<T>
- All Implemented Interfaces:
TAnnotatedElement
,TType
-
Method Summary
Modifier and TypeMethodDescription<U> TClass<? extends U>
asSubclass(TClass<U> clazz)
boolean
static TClass<?>
static TClass<?>
forName(TString name, boolean initialize, TClassLoader loader)
<S extends TAnnotation>
SgetAnnotation(TClass<S> annotationClass)
static TClass<?>
getClass(PlatformClass cls)
TClass<?>
getConstructor(TClass<?>... parameterTypes)
TConstructor<?>[]
getDeclaredConstructor(TClass<?>... parameterTypes)
TConstructor<?>[]
getDeclaredField(String name)
TField[]
getDeclaredMethod(String name, TClass<?>... parameterTypes)
TMethod[]
TClass<?>
TClass<?>
T[]
TField[]
TMethod[]
int
getName()
getResourceAsStream(String name)
boolean
isAnnotationPresent(TClass<? extends TAnnotation> annotationClass)
boolean
isArray()
boolean
isAssignableFrom(TClass<?> obj)
boolean
isEnum()
boolean
isInstance(TObject obj)
boolean
boolean
boolean
boolean
<T> T
toString()
Methods inherited from class org.teavm.classlib.java.lang.TObject
clone, equals, equals0, finalize, getClass0, hashCode, notify0, notifyAll0, wait0, wait0, waitImpl
Methods inherited from interface org.teavm.classlib.java.lang.reflect.TAnnotatedElement
getAnnotationsByType, getDeclaredAnnotation, getDeclaredAnnotationsByType
-
Method Details
-
getClass
-
toString
-
getPlatformClass
-
isInstance
-
isAssignableFrom
-
getName
-
getSimpleName
-
getCanonicalName
-
isPrimitive
public boolean isPrimitive() -
isArray
public boolean isArray() -
isEnum
public boolean isEnum() -
isInterface
public boolean isInterface() -
isLocalClass
public boolean isLocalClass() -
isMemberClass
public boolean isMemberClass() -
getComponentType
-
getDeclaredFields
- Throws:
TSecurityException
-
getFields
- Throws:
TSecurityException
-
getDeclaredField
- Throws:
TNoSuchFieldError
-
getField
- Throws:
TNoSuchFieldError
-
newEmptyInstance
public <T> T newEmptyInstance() -
getDeclaredConstructors
- Throws:
TSecurityException
-
getConstructors
- Throws:
TSecurityException
-
getDeclaredConstructor
public TConstructor<T> getDeclaredConstructor(TClass<?>... parameterTypes) throws TSecurityException, TNoSuchMethodException -
getConstructor
public TConstructor<T> getConstructor(TClass<?>... parameterTypes) throws TSecurityException, TNoSuchMethodException -
getDeclaredMethods
-
getDeclaredMethod
public TMethod getDeclaredMethod(String name, TClass<?>... parameterTypes) throws TNoSuchMethodException, TSecurityException -
getMethods
- Throws:
TSecurityException
-
getMethod
public TMethod getMethod(String name, TClass<?>... parameterTypes) throws TNoSuchMethodException, TSecurityException -
getModifiers
public int getModifiers() -
desiredAssertionStatus
public boolean desiredAssertionStatus() -
getSuperclass
-
getInterfaces
-
getEnumConstants
-
cast
-
getClassLoader
-
forName
- Throws:
TClassNotFoundException
-
forName
public static TClass<?> forName(TString name, boolean initialize, TClassLoader loader) throws TClassNotFoundException- Throws:
TClassNotFoundException
-
newInstance
-
getDeclaringClass
-
getEnclosingClass
-
asSubclass
-
isAnnotationPresent
- Specified by:
isAnnotationPresent
in interfaceTAnnotatedElement
-
getAnnotation
- Specified by:
getAnnotation
in interfaceTAnnotatedElement
-
getAnnotations
- Specified by:
getAnnotations
in interfaceTAnnotatedElement
-
getDeclaredAnnotations
- Specified by:
getDeclaredAnnotations
in interfaceTAnnotatedElement
-
getResourceAsStream
-
getPackage
-