Class ClassDescriptor

java.lang.Object
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).
  • Field Details

  • Constructor Details

  • Method Details

    • getDeclaredMethodDescriptor

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

      public FieldDescriptor getDeclaredFieldDescriptor​(java.lang.String name) throws java.lang.NoSuchFieldException
      Throws:
      java.lang.NoSuchFieldException
    • getResolverType

      public ClassDescriptorHelper.ResolverType getResolverType()
    • 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()
    • getConstructorDescriptors

      public MethodDescriptor[] getConstructorDescriptors()
    • 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()
    • getDeclaredFieldDescriptors

      public FieldDescriptor[] getDeclaredFieldDescriptors()
    • 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
    • equals

      public boolean equals​(java.lang.Object o)
      Overrides:
      equals in class java.lang.Object
    • hashCode

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

      protected ClassDescriptor getClassDescriptor​(java.lang.String fqn)