java.lang
Class Class

java.lang.Object
  extended by 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

Compliance: J2SE: 1.4 incomplete


Method Summary
static Class forName(String className)
           
 ClassLoader getClassLoader()
           
 Class getComponentType()
           
 Class[] getInterfaces()
           
 Method getMethod(String name, Class[] parameterTypes)
           
 Method[] getMethods()
           
 int getModifiers()
           
 String getName()
           
 InputStream getResourceAsStream(String name)
           
 Class getSuperclass()
           
 boolean isArray()
           
 boolean isAssignableFrom(Class clazz)
           
 boolean isInstance(Object obj)
           
 boolean isInterface()
           
 boolean isPrimitive()
           
 Object newInstance()
           
 String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Method Detail

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()