com.sun.codemodel
Class JArrayClass

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

public class JArrayClass
extends JClass

Array class.


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.
 java.lang.String binaryName()
          Gets the binary name of the type.
 JType elementType()
           
 boolean equals(java.lang.Object obj)
           
 java.lang.String fullName()
          Gets the fully qualified name of this class.
 void generate(JFormatter f)
           
 int hashCode()
           
 boolean isArray()
          Tell whether or not this is an array type.
 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, getPrimitiveType, isAssignableFrom, owner, staticInvoke, staticInvoke, staticRef, staticRef, toString
 
Methods inherited from class com.sun.codemodel.JType
isPrimitive, isReference, parse
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, 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.

fullName

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

Overrides:
fullName in class JClass

binaryName

public java.lang.String binaryName()
Description copied from class: JType
Gets the binary name of the type.

Overrides:
binaryName in class JType
See Also:
http://java.sun.com/docs/books/jls/third_edition/html/binaryComp.html#44909

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

elementType

public JType elementType()
Overrides:
elementType in class JType

isArray

public boolean isArray()
Description copied from class: JType
Tell whether or not this is an array type.

Overrides:
isArray in class JType

equals

public boolean equals(java.lang.Object obj)
Overrides:
equals in class java.lang.Object

hashCode

public int hashCode()
Overrides:
hashCode in class java.lang.Object