Class JSMethodData


  • public class JSMethodData
    extends java.lang.Object
    • Field Detail

      • paramNames

        private java.util.ArrayList<java.lang.String> paramNames
    • Method Detail

      • getParameterName

        public java.lang.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 java.lang.String getParameterType​(java.lang.String[] paramTypes,
                                                 int index,
                                                 org.fife.ui.autocomplete.CompletionProvider provider)
      • getSummary

        public java.lang.String getSummary()
      • getMethod

        public Method getMethod()
      • getSummaryFromSourceLoc

        private java.lang.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 java.lang.String getType​(boolean qualified)
      • getParameterCount

        public int getParameterCount()
      • isStatic

        public boolean isStatic()
      • getEnclosingClassName

        public java.lang.String getEnclosingClassName​(boolean fullyQualified)