com.sun.codemodel
Class JNullType

java.lang.Object
  extended by com.sun.codemodel.JType
      extended by com.sun.codemodel.JClass
          extended by com.sun.codemodel.JNullType

public final class JNullType
extends JClass

Special class object that represents the type of "null".

Use this class with care.


Method Summary
 JClass _extends()
          Gets the super class of this class.
 java.util.Iterator _implements()
          Iterates all interfaces directly implemented by this class/interface.
 JPackage _package()
          Gets the package to which this class belongs.
 void generate(JFormatter f)
           
 boolean isInterface()
          Checks if this object represents an interface.
 java.lang.String name()
          Gets the name of this class.
 
Methods inherited from class com.sun.codemodel.JClass
array, dotclass, fullName, getPrimitiveType, isAssignableFrom, owner, staticInvoke, staticInvoke, staticRef, staticRef, toString
 
Methods inherited from class com.sun.codemodel.JType
binaryName, elementType, isArray, isPrimitive, isReference, parse
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Method Detail

name

public java.lang.String name()
Description copied from class: JClass
Gets the name of this class.

Specified by:
name in class JClass
Returns:
name of this class, without any qualification. For example, this method returns "String" for java.lang.String.

_package

public JPackage _package()
Description copied from class: JClass
Gets the package to which this class belongs.

Specified by:
_package in class JClass

_extends

public JClass _extends()
Description copied from class: JClass
Gets the super class of this class.

Specified by:
_extends in class JClass
Returns:
Returns the JClass representing the superclass of the entity (class or interface) represented by this JClass. If this JClass represents either the Object class, or an interface, then null is returned.

_implements

public java.util.Iterator _implements()
Description copied from class: JClass
Iterates all interfaces directly implemented by this class/interface.

Specified by:
_implements in class JClass
Returns:
A non-null valid iterator that iterates all JClass objects that represents those interfaces implemented by this object.

isInterface

public boolean isInterface()
Description copied from class: JClass
Checks if this object represents an interface.

Specified by:
isInterface in class JClass

generate

public void generate(JFormatter f)