| Constructor and Description |
|---|
Class() |
| Modifier and Type | Method and Description |
|---|---|
Class |
asSubclass(Class superclass) |
Object |
cast(Object object) |
boolean |
desiredAssertionStatus() |
static Class |
forName(String className) |
<T extends Annotation> |
getAnnotation(Class annotationType) |
Annotation[] |
getAnnotations() |
String |
getCanonicalName() |
ClassLoader |
getClassLoader() |
Class |
getComponentType() |
Annotation[] |
getDeclaredAnnotations() |
Constructor |
getEnclosingConstructor() |
Method |
getEnclosingMethod() |
Type[] |
getGenericInterfaces() |
String |
getName() |
InputStream |
getResourceAsStream(String name) |
String |
getSimpleName() |
boolean |
isAnnotation() |
boolean |
isAnnotationPresent(Class annotationType) |
boolean |
isAnonymousClass() |
boolean |
isArray() |
boolean |
isAssignableFrom(Class cls) |
boolean |
isEnum() |
boolean |
isInstance(Object obj) |
boolean |
isInterface() |
boolean |
isLocalClass() |
boolean |
isPrimitive() |
boolean |
isRecord() |
boolean |
isSynthetic() |
Object |
newInstance() |
String |
toString() |
public ClassLoader getClassLoader()
public static Class forName(String className) throws ClassNotFoundException
ClassNotFoundExceptionpublic String getName()
public InputStream getResourceAsStream(String name)
public boolean isArray()
public boolean isAssignableFrom(Class cls)
public boolean isInstance(Object obj)
public boolean isInterface()
public Object newInstance() throws InstantiationException, IllegalAccessException
public boolean isAnnotation()
public <T extends Annotation> T getAnnotation(Class annotationType)
public Annotation[] getAnnotations()
public Annotation[] getDeclaredAnnotations()
public boolean isAnnotationPresent(Class annotationType)
public boolean isEnum()
public boolean isAnonymousClass()
public String getSimpleName()
public boolean isSynthetic()
public String getCanonicalName()
public Class getComponentType()
public boolean desiredAssertionStatus()
public Type[] getGenericInterfaces()
public boolean isPrimitive()
public Method getEnclosingMethod()
public Constructor getEnclosingConstructor()
public boolean isLocalClass()
public boolean isRecord()
Copyright © 2026. All rights reserved.