Class JSMethodData

java.lang.Object
org.fife.rsta.ac.js.completion.JSMethodData

public class JSMethodData extends Object
  • Field Details

  • Constructor Details

  • Method Details

    • getParameterName

      public String getParameterName(int index)
      Returns the name of the specified parameter to this method, or null if it cannot be determined.
      Parameters:
      index - The index of the parameter.
      Returns:
      The name of the parameter, or null.
    • getParameterType

      public String getParameterType(String[] paramTypes, int index, org.fife.ui.autocomplete.CompletionProvider provider)
    • getSummary

      public String getSummary()
    • getMethod

      public Method getMethod()
    • getSummaryFromSourceLoc

      private String getSummaryFromSourceLoc(SourceLocation loc, ClassFile cf)
      Scours the source in a location (zip file, directory), looking for a particular class's source. If it is found, it is parsed, and the Javadoc for this method (if any) is returned.
      Parameters:
      loc - The zip file, jar file, or directory to look in.
      cf - The ClassFile representing the class of this method.
      Returns:
      The summary, or null if the method has no javadoc, the class's source was not found, or an IO error occurred.
    • getMethodFromSourceLoc

      private Method getMethodFromSourceLoc(SourceLocation loc, ClassFile cf)
      Scours the source in a location (zip file, directory), looking for a particular class's source. If it is found, it is parsed, and the Method for this method (if any) is returned.
      Parameters:
      loc - The zip file, jar file, or directory to look in.
      cf - The ClassFile representing the class of this method.
      Returns:
      The method, or null if it cannot be found, or an IO error occurred.
    • getMethodInfo

      public MethodInfo getMethodInfo()
    • getType

      public String getType(boolean qualified)
    • getParameterCount

      public int getParameterCount()
    • isStatic

      public boolean isStatic()
    • getEnclosingClassName

      public String getEnclosingClassName(boolean fullyQualified)