Package org.fife.rsta.ac.js.completion
Class JSMethodData
- java.lang.Object
-
- org.fife.rsta.ac.js.completion.JSMethodData
-
public class JSMethodData extends java.lang.Object
-
-
Field Summary
Fields Modifier and Type Field Description private MethodInfoinfoprivate JarManagerjarManagerprivate java.util.ArrayList<java.lang.String>paramNames
-
Constructor Summary
Constructors Constructor Description JSMethodData(MethodInfo info, JarManager jarManager)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.StringgetEnclosingClassName(boolean fullyQualified)MethodgetMethod()private MethodgetMethodFromSourceLoc(SourceLocation loc, ClassFile cf)Scours the source in a location (zip file, directory), looking for a particular class's source.MethodInfogetMethodInfo()intgetParameterCount()java.lang.StringgetParameterName(int index)Returns the name of the specified parameter to this method, ornullif it cannot be determined.java.lang.StringgetParameterType(java.lang.String[] paramTypes, int index, org.fife.ui.autocomplete.CompletionProvider provider)java.lang.StringgetSummary()private java.lang.StringgetSummaryFromSourceLoc(SourceLocation loc, ClassFile cf)Scours the source in a location (zip file, directory), looking for a particular class's source.java.lang.StringgetType(boolean qualified)booleanisStatic()
-
-
-
Field Detail
-
info
private MethodInfo info
-
jarManager
private JarManager jarManager
-
paramNames
private java.util.ArrayList<java.lang.String> paramNames
-
-
Constructor Detail
-
JSMethodData
public JSMethodData(MethodInfo info, JarManager jarManager)
-
-
Method Detail
-
getParameterName
public java.lang.String getParameterName(int index)
Returns the name of the specified parameter to this method, ornullif 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- TheClassFilerepresenting the class of this method.- Returns:
- The summary, or
nullif 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 theMethodfor this method (if any) is returned.- Parameters:
loc- The zip file, jar file, or directory to look in.cf- TheClassFilerepresenting the class of this method.- Returns:
- The method, or
nullif 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)
-
-