com.caucho.bytecode
Class JClassArray

java.lang.Object
  extended by com.caucho.bytecode.JAnnotationObject
      extended by com.caucho.bytecode.JClass
          extended by com.caucho.bytecode.JClassArray
All Implemented Interfaces:
JType

public class JClassArray
extends JClass

Represents an introspected java class.


Field Summary
 
Fields inherited from class com.caucho.bytecode.JClass
BOOLEAN, BYTE, CHAR, DOUBLE, FLOAT, INT, LONG, OBJECT, SHORT, STRING, VOID
 
Method Summary
 boolean equals(java.lang.Object o)
          Returns true if equals.
 JClass getComponentType()
          Returns the component for a class.
 JMethod[] getConstructors()
          Returns the constructors
 JField[] getDeclaredFields()
          Returns the declared fields
 JMethod[] getDeclaredMethods()
          Returns the declared methods
 JField[] getFields()
          Returns the fields
 JClass[] getInterfaces()
          Returns the interfaces.
 JMethod getMethod(java.lang.String name, JClass[] param)
          Returns the matching method.
 JMethod[] getMethods()
          Returns the public methods
 java.lang.String getName()
          Returns the class name.
 java.lang.String getPrintName()
          Returns the printable name.
 java.lang.String getShortName()
          Returns a printable version of a class.
 JClass getSuperClass()
          Returns the superclass.
 int hashCode()
          Returns the hash code
 boolean isAbstract()
          Returns true for an abstract class
 boolean isArray()
          Returns true for an array class.
 boolean isAssignableFrom(java.lang.Class cl)
          Returns true if the jClass is assignable to the class.
 boolean isAssignableFrom(JClass cl)
          Returns true if the jClass is assignable to the class.
 boolean isAssignableTo(java.lang.Class cl)
          Returns true if the jClass is assignable to the class.
 boolean isFinal()
          Returns true for a final class
 boolean isInterface()
          Returns true for an interface
 boolean isPrimitive()
          Returns true for a primitive class.
 boolean isPublic()
          Returns true for a public class.
 java.lang.String toString()
           
 
Methods inherited from class com.caucho.bytecode.JClass
getActualTypeArguments, getConstructor, getJavaClass, getRawType, getSimpleName
 
Methods inherited from class com.caucho.bytecode.JAnnotationObject
getAnnotation, getAnnotation, getDeclaredAnnotations, isAnnotationPresent, isAnnotationPresent
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Method Detail

getName

public java.lang.String getName()
Returns the class name.

Specified by:
getName in interface JType
Specified by:
getName in class JClass

isPrimitive

public boolean isPrimitive()
Returns true for a primitive class.

Specified by:
isPrimitive in interface JType
Specified by:
isPrimitive in class JClass

isPublic

public boolean isPublic()
Returns true for a public class.

Specified by:
isPublic in interface JType
Specified by:
isPublic in class JClass

isAbstract

public boolean isAbstract()
Returns true for an abstract class

Specified by:
isAbstract in interface JType
Specified by:
isAbstract in class JClass

isFinal

public boolean isFinal()
Returns true for a final class

Specified by:
isFinal in interface JType
Specified by:
isFinal in class JClass

isInterface

public boolean isInterface()
Returns true for an interface

Specified by:
isInterface in interface JType
Specified by:
isInterface in class JClass

getSuperClass

public JClass getSuperClass()
Returns the superclass.

Specified by:
getSuperClass in interface JType
Specified by:
getSuperClass in class JClass

getInterfaces

public JClass[] getInterfaces()
Returns the interfaces.

Specified by:
getInterfaces in interface JType
Specified by:
getInterfaces in class JClass

getConstructors

public JMethod[] getConstructors()
Returns the constructors

Specified by:
getConstructors in class JClass

isArray

public boolean isArray()
Returns true for an array class.

Specified by:
isArray in interface JType
Specified by:
isArray in class JClass

getComponentType

public JClass getComponentType()
Returns the component for a class.

Specified by:
getComponentType in interface JType
Overrides:
getComponentType in class JClass

isAssignableTo

public boolean isAssignableTo(java.lang.Class cl)
Returns true if the jClass is assignable to the class.

Specified by:
isAssignableTo in interface JType
Specified by:
isAssignableTo in class JClass

isAssignableFrom

public boolean isAssignableFrom(java.lang.Class cl)
Returns true if the jClass is assignable to the class.

Specified by:
isAssignableFrom in interface JType
Specified by:
isAssignableFrom in class JClass

isAssignableFrom

public boolean isAssignableFrom(JClass cl)
Returns true if the jClass is assignable to the class.

Specified by:
isAssignableFrom in interface JType
Specified by:
isAssignableFrom in class JClass

getDeclaredMethods

public JMethod[] getDeclaredMethods()
Returns the declared methods

Specified by:
getDeclaredMethods in interface JType
Specified by:
getDeclaredMethods in class JClass

getMethods

public JMethod[] getMethods()
Returns the public methods

Specified by:
getMethods in interface JType
Specified by:
getMethods in class JClass

getMethod

public JMethod getMethod(java.lang.String name,
                         JClass[] param)
Returns the matching method.

Specified by:
getMethod in interface JType
Specified by:
getMethod in class JClass

getDeclaredFields

public JField[] getDeclaredFields()
Returns the declared fields

Specified by:
getDeclaredFields in interface JType
Specified by:
getDeclaredFields in class JClass

getFields

public JField[] getFields()
Returns the fields

Specified by:
getFields in interface JType
Specified by:
getFields in class JClass

getPrintName

public java.lang.String getPrintName()
Returns the printable name.

Specified by:
getPrintName in interface JType
Overrides:
getPrintName in class JClass

getShortName

public java.lang.String getShortName()
Returns a printable version of a class.

Overrides:
getShortName in class JClass

hashCode

public int hashCode()
Returns the hash code

Overrides:
hashCode in class JClass

equals

public boolean equals(java.lang.Object o)
Returns true if equals.

Overrides:
equals in class JClass

toString

public java.lang.String toString()
Overrides:
toString in class JClass