Class MethodDescriptor


public class MethodDescriptor extends MemberDescriptor
Represents a method. Its goal is to keep as minimal information as possible and track dependencies between them. The signature is in jsni format, including the return type and the parameter types.
  • Constructor Details

  • Method Details

    • from

      public static MethodDescriptor from(ClassDescriptor classDescriptor, com.google.gwt.dev.jjs.ast.JMethod method, String signature)
      Creates a method descriptor from a JMethod with its original signature, and set its enclosing class.
    • normalizeMethodSignature

      public static String normalizeMethodSignature(String methodSignature)
    • addDependant

      public void addDependant(MethodDescriptor methodDescriptor)
    • addReference

      public void addReference(com.google.gwt.dev.jjs.ast.JMethod methodRef)
    • getDependentPointers

      public int[] getDependentPointers()
      Returns the dependent list ids.
    • getDependentMethods

      public Set<MethodDescriptor> getDependentMethods()
    • getJsniSignature

      public String getJsniSignature()
      Description copied from class: MemberDescriptor
      The signature of the member.
      Specified by:
      getJsniSignature in class MemberDescriptor
      Returns:
      The member name plus its signature
    • getParamTypes

      public String getParamTypes()
    • getMethodReferences

      public Set<com.google.gwt.dev.jjs.ast.JMethod> getMethodReferences()
      Returns the set of JMethods that share the same signature.
    • getUniqueId

      public int getUniqueId()
    • setUniqueId

      public void setUniqueId(int uniqueId)