com.caucho.bytecode
Interface JType

All Known Implementing Classes:
JavaClass, JavaParameterizedType, JClass, JClassArray, JClassWrapper, JTypeWrapper

public interface JType

Represents an introspected java class.


Method Summary
 JType[] getActualTypeArguments()
          Returns the parameter types.
 JClass getComponentType()
          Returns the component for a class.
 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 type name.
 java.lang.String getPrintName()
          Returns the print name, i.e.
 JClass getRawType()
          Returns the raw type.
 JClass getSuperClass()
          Returns the superclass.
 boolean isAbstract()
          Returns true for an 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.
 

Method Detail

getName

java.lang.String getName()
Returns the type name.


getPrintName

java.lang.String getPrintName()
Returns the print name, i.e. Java source name.


getActualTypeArguments

JType[] getActualTypeArguments()
Returns the parameter types.


getRawType

JClass getRawType()
Returns the raw type.


isPrimitive

boolean isPrimitive()
Returns true for a primitive class.


isPublic

boolean isPublic()
Returns true for a public class.


isAbstract

boolean isAbstract()
Returns true for an class


isFinal

boolean isFinal()
Returns true for a final class


isInterface

boolean isInterface()
Returns true for an interface


getSuperClass

JClass getSuperClass()
Returns the superclass.


getInterfaces

JClass[] getInterfaces()
Returns the interfaces.


isArray

boolean isArray()
Returns true for an array class.


getComponentType

JClass getComponentType()
Returns the component for a class.


isAssignableTo

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


isAssignableFrom

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


isAssignableFrom

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


getDeclaredMethods

JMethod[] getDeclaredMethods()
Returns the declared methods


getMethods

JMethod[] getMethods()
Returns the public methods


getMethod

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


getDeclaredFields

JField[] getDeclaredFields()
Returns the declared fields


getFields

JField[] getFields()
Returns the fields