DCT Lightfoot v3 API specification

java.lang
Class Class

java.lang.Object
  |
  +--java.lang.Class

public class Class
extends Object


Method Summary
static Class forName(java.lang.String className)
          Create a Class object from the name of the class
 Class getComponentType()
          Returns the Class representing the component type of an array.
 java.lang.String getName()
          Get the name of the class as a string
 InputStream getResourceAsStream(java.lang.String name)
          Get the resource as a stream
 boolean isArray()
          Is it an array
 boolean isAssignableFrom(Class cls)
          Is it assignable from a class
 boolean isInstance(Object obj)
          Is this object an instance of this class
 boolean isInterface()
          Is this an interface
 Object newInstance()
          Create a new instance of this class
 java.lang.String toString()
          Convert it to a string
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Method Detail

forName

public static Class forName(java.lang.String className)
                     throws ClassNotFoundException
Create a Class object from the name of the class

Returns:
the class
Throws:
ClassNotFoundException - if the class is not found

getName

public java.lang.String getName()
Get the name of the class as a string

Returns:
the name

getResourceAsStream

public InputStream getResourceAsStream(java.lang.String name)
Get the resource as a stream

Parameters:
name - The name of the resource
Returns:
the stream

isArray

public boolean isArray()
Is it an array

Returns:
true if it is

isAssignableFrom

public boolean isAssignableFrom(Class cls)
Is it assignable from a class

Parameters:
cls - The class to test
Returns:
true if yes

isInstance

public boolean isInstance(Object obj)
Is this object an instance of this class

Parameters:
obj - The object
Returns:
true if yes

isInterface

public boolean isInterface()
Is this an interface

Returns:
true if yes

getComponentType

public Class getComponentType()
Returns the Class representing the component type of an array. If this class does not represent an array class this method returns null.

Returns:
the class of the component type or null

newInstance

public Object newInstance()
                   throws IllegalAccessException,
                          InstantiationException
Create a new instance of this class

Returns:
the new object
Throws:
IllegalAccessException
InstantiationException

toString

public java.lang.String toString()
Convert it to a string

Overrides:
toString in class Object
Returns:
the string

DCT Lightfoot v3 API specification

DCT Lightfoot v3 API specification