java.lang
Class Class
java.lang.Object
java.lang.Class
public final class Class
- extends Object
Standard representation of a class, as specified by the standard
Java API.
Compliance: CLDC: 1.0 incomplete
newInstance() doesn't throw proper exceptions
Compliance: J2SE: 1.4 incomplete
toString
public String toString()
- Overrides:
toString in class Object
getName
public String getName()
isInterface
public boolean isInterface()
getSuperclass
public Class getSuperclass()
getInterfaces
public Class[] getInterfaces()
isAssignableFrom
public boolean isAssignableFrom(Class clazz)
isPrimitive
public boolean isPrimitive()
isArray
public boolean isArray()
isInstance
public boolean isInstance(Object obj)
getModifiers
public int getModifiers()
getMethods
public Method[] getMethods()
throws SecurityException
- Throws:
SecurityException
getMethod
public Method getMethod(String name,
Class[] parameterTypes)
throws NoSuchMethodException,
SecurityException
- Throws:
NoSuchMethodException
SecurityException
newInstance
public Object newInstance()
throws InstantiationException,
IllegalAccessException
- Throws:
InstantiationException
IllegalAccessException
getClassLoader
public ClassLoader getClassLoader()
forName
public static Class forName(String className)
throws ClassNotFoundException
- Throws:
ClassNotFoundException
getResourceAsStream
public InputStream getResourceAsStream(String name)
getComponentType
public Class getComponentType()