Class TClass
java.lang.Object
de.mirkosertic.bytecoder.classlib.java.lang.TClass
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescription<T> T
boolean
static Class
forName
(AnyTypeMatches module, String name) static Class
static Class
forName
(String name, boolean initialize, ClassLoader classLoader) (package private) ClassLoader
getConstructor
(Class[] constructorArgs) getDeclaredConstructor
(Class[] args) getDeclaredField
(String name) Field[]
getDeclaredMethod
(String name, Class[] arguments) Class
<?> Object[]
Type[]
Class[]
Method[]
int
getName()
static Class
<?> getPrimitiveClass
(String aName) getResource
(String name) getResourceAsStream
(String aName) int
hashCode()
boolean
boolean
isArray()
boolean
isAssignableFrom
(Class aOtherClass) boolean
isEnum()
boolean
isInstance
(Object a) boolean
boolean
boolean
boolean
-
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
-