Class ClassDescriptor


  • public class ClassDescriptor
    extends EntityDescriptor
    A succinct code representation for classes.
    • Constructor Detail

      • ClassDescriptor

        public ClassDescriptor​(java.lang.String className,
                               java.lang.String packageName)
    • Method Detail

      • from

        public static ClassDescriptor from​(com.google.gwt.dev.jjs.ast.JDeclaredType classType)
        Creates a class descriptor from a JDeclaredType.
      • fieldFrom

        public FieldDescriptor fieldFrom​(com.google.gwt.dev.jjs.ast.JField field)
        Returns a field descriptor from a JField. If the field descriptor is not in the current class descriptor, it will be added.
      • getField

        public FieldDescriptor getField​(java.lang.String fieldName)
        Returns the field descriptor associated to the given field name.
      • getMethod

        public MethodDescriptor getMethod​(java.lang.String methodSignature)
        Returns the method descriptor associated to the given original method signature.
      • getPackageName

        public java.lang.String getPackageName()
      • getTypeReference

        public com.google.gwt.dev.jjs.ast.JDeclaredType getTypeReference()
      • methodFrom

        public MethodDescriptor methodFrom​(com.google.gwt.dev.jjs.ast.JMethod method,
                                           java.lang.String signature)
        Returns a method descriptor from a JMethod and its original signature (prior any modifications). If the method descriptor is not in the current class descriptor, it will be added.