jaxx.compiler.reflect
Class ClassDescriptor

java.lang.Object
  extended by jaxx.compiler.reflect.ClassDescriptor

public abstract class ClassDescriptor
extends java.lang.Object

Mirrors the class java.lang.Class. JAXX uses ClassDescriptor instead of Class almost everywhere so that it can handle circular dependencies (there can't be a Class object for an uncompiled JAXX or Java source file, and a compiler must be allow references to symbols in uncompiled source files in order to handle circular dependencies).


Method Summary
 java.lang.ClassLoader getClassLoader()
           
 ClassDescriptor getComponentType()
           
abstract  FieldDescriptor getDeclaredFieldDescriptor(java.lang.String name)
           
abstract  MethodDescriptor getDeclaredMethodDescriptor(java.lang.String name, ClassDescriptor... parameterTypes)
           
 FieldDescriptor getFieldDescriptor(java.lang.String name)
           
 FieldDescriptor[] getFieldDescriptors()
           
 ClassDescriptor[] getInterfaces()
           
 JAXXObjectDescriptor getJAXXObjectDescriptor()
           
 MethodDescriptor getMethodDescriptor(java.lang.String name, ClassDescriptor... parameterTypes)
           
 MethodDescriptor[] getMethodDescriptors()
           
 java.lang.String getName()
           
 java.lang.String getPackageName()
           
 java.lang.String getSimpleName()
           
 ClassDescriptor getSuperclass()
           
 boolean isArray()
           
 boolean isAssignableFrom(ClassDescriptor descriptor)
           
 boolean isInterface()
           
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Method Detail

getDeclaredMethodDescriptor

public abstract MethodDescriptor getDeclaredMethodDescriptor(java.lang.String name,
                                                             ClassDescriptor... parameterTypes)
                                                      throws java.lang.NoSuchMethodException
Throws:
java.lang.NoSuchMethodException

getDeclaredFieldDescriptor

public abstract FieldDescriptor getDeclaredFieldDescriptor(java.lang.String name)
                                                    throws java.lang.NoSuchFieldException
Throws:
java.lang.NoSuchFieldException

getName

public java.lang.String getName()

getSimpleName

public java.lang.String getSimpleName()

getPackageName

public java.lang.String getPackageName()

getSuperclass

public ClassDescriptor getSuperclass()

getInterfaces

public ClassDescriptor[] getInterfaces()

isInterface

public boolean isInterface()

isArray

public boolean isArray()

getComponentType

public ClassDescriptor getComponentType()

getClassLoader

public java.lang.ClassLoader getClassLoader()

getMethodDescriptors

public MethodDescriptor[] getMethodDescriptors()

getMethodDescriptor

public MethodDescriptor getMethodDescriptor(java.lang.String name,
                                            ClassDescriptor... parameterTypes)
                                     throws java.lang.NoSuchMethodException
Throws:
java.lang.NoSuchMethodException

getFieldDescriptors

public FieldDescriptor[] getFieldDescriptors()

getFieldDescriptor

public FieldDescriptor getFieldDescriptor(java.lang.String name)
                                   throws java.lang.NoSuchFieldException
Throws:
java.lang.NoSuchFieldException

getJAXXObjectDescriptor

public JAXXObjectDescriptor getJAXXObjectDescriptor()

isAssignableFrom

public boolean isAssignableFrom(ClassDescriptor descriptor)

toString

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


Copyright © 2008-2009 CodeLutin. All Rights Reserved.