Class TClass
java.lang.Object
de.mirkosertic.bytecoder.classlib.java.lang.TClass
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescription<T> Tbooleanstatic ClassforName(AnyTypeMatches module, String name) static Classstatic ClassforName(String name, boolean initialize, ClassLoader classLoader) (package private) ClassLoadergetConstructor(Class[] constructorArgs) getDeclaredConstructor(Class[] args) getDeclaredField(String name) Field[]getDeclaredMethod(String name, Class[] arguments) Class<?> Object[]Type[]Class[]Method[]intgetName()static Class<?> getPrimitiveClass(String aName) getResource(String name) getResourceAsStream(String aName) inthashCode()booleanbooleanisArray()booleanisAssignableFrom(Class aOtherClass) booleanisEnum()booleanisInstance(Object a) booleanbooleanbooleanboolean
-
Constructor Details
-
TClass
public TClass()
-
-
Method Details
-
desiredAssertionStatus
public boolean desiredAssertionStatus() -
getTypeName
-
getName
-
getComponentType
-
getDeclaringClass
- Throws:
SecurityException
-
getSimpleName
-
getPackageName
-
getCanonicalName
-
isMemberClass
public boolean isMemberClass() -
isEnum
public boolean isEnum() -
isArray
public boolean isArray() -
isPrimitive
public boolean isPrimitive() -
isAnonymousClass
public boolean isAnonymousClass() -
isLocalClass
public boolean isLocalClass() -
getEnumConstants
-
getConstructor
-
newInstance
public Object newInstance() throws IllegalAccessException, InvocationTargetException, InstantiationException -
getConstructors
-
getPrimitiveClass
-
getProtectionDomain
-
getClassLoader
-
getClassLoader0
ClassLoader getClassLoader0() -
forName
- Throws:
ClassNotFoundException
-
forName
- Throws:
ClassNotFoundException
-
forName
public static Class forName(String name, boolean initialize, ClassLoader classLoader) throws ClassNotFoundException - Throws:
ClassNotFoundException
-
getGenericInterfaces
-
getInterfaces
-
getSuperclass
-
getDeclaredConstructor
-
getDeclaredMethod
-
isInstance
-
getField
- Throws:
NoSuchFieldException
-
getDeclaredField
- Throws:
NoSuchFieldException
-
getDeclaredFields
-
getResourceAsStream
-
isAssignableFrom
-
getMethods
-
getModifiers
public int getModifiers() -
getModule
-
getMethod
-
getGenericSuperclass
-
isInterface
public boolean isInterface() -
getEnclosingClass
-
getResource
-
hashCode
public int hashCode() -
cast
-