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) booleanstatic TClass<?> static TClass<?> forName(TString name, boolean initialize, TClassLoader loader) <S extends TAnnotation>
SgetAnnotation(TClass<S> annotationClass) static TClass<?> getClass(org.teavm.platform.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[]intgetName()org.teavm.platform.PlatformClassgetResourceAsStream(String name) booleanisAnnotationPresent(TClass<? extends TAnnotation> annotationClass) booleanisArray()booleanisAssignableFrom(TClass<?> obj) booleanisEnum()booleanisInstance(TObject obj) booleanbooleanbooleanbooleanorg.teavm.platform.PlatformObjecttoString()Methods inherited from class org.teavm.classlib.java.lang.TObject
clone, equals, equals0, finalize, getClass0, hashCode, notify0, notifyAll0, wait0, wait0, waitImplMethods inherited from interface org.teavm.classlib.java.lang.reflect.TAnnotatedElement
getAnnotationsByType, getDeclaredAnnotation, getDeclaredAnnotationsByType
-
Method Details
-
getClass
-
toString
-
getPlatformClass
public org.teavm.platform.PlatformClass 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:
TNoSuchFieldException
-
getField
- Throws:
TNoSuchFieldException
-
newEmptyInstance
public org.teavm.platform.PlatformObject 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:
isAnnotationPresentin interfaceTAnnotatedElement
-
getAnnotation
- Specified by:
getAnnotationin interfaceTAnnotatedElement
-
getAnnotations
- Specified by:
getAnnotationsin interfaceTAnnotatedElement
-
getDeclaredAnnotations
- Specified by:
getDeclaredAnnotationsin interfaceTAnnotatedElement
-
getResourceAsStream
-
getPackage
-