Package org.fife.rsta.ac.js
Class JavaScriptDocUrlhandler
java.lang.Object
org.fife.rsta.ac.js.JavaScriptDocUrlhandler
- All Implemented Interfaces:
org.fife.ui.autocomplete.ExternalURLHandler
public class JavaScriptDocUrlhandler
extends Object
implements org.fife.ui.autocomplete.ExternalURLHandler
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprivate StringReturns the parent packagebackupCountlevels up from the package specified.private static StringReturns the anchor portion of a (relative) URL.private static String[]Gets the arguments from a method signature.private StringReturns the class for a completion (class completions return the class itself, member completions return the enclosing class).private JavaScriptLanguageSupportReturns the Java language support.private StringgetPackage(org.fife.ui.autocomplete.Completion c, String desc) Returns the package of the specified completion.private booleanisRelativeUrl(String text) Returns whether the text is a relative URL to other Javadoc.voidurlClicked(HyperlinkEvent e, org.fife.ui.autocomplete.Completion c, org.fife.ui.autocomplete.DescWindowCallback callback)
-
Field Details
-
languageSupport
-
-
Constructor Details
-
JavaScriptDocUrlhandler
-
-
Method Details
-
getClass
Returns the class for a completion (class completions return the class itself, member completions return the enclosing class). -
getPackage
Returns the package of the specified completion.- Parameters:
c- The completion.desc- The description text being parsed. Used for errors if we cannot determine the package.- Returns:
- The package.
-
isRelativeUrl
Returns whether the text is a relative URL to other Javadoc.- Parameters:
text- A link in Javadoc.- Returns:
- Whether the link is a relative path to more Javadoc.
-
doBackups
Returns the parent packagebackupCountlevels up from the package specified.- Parameters:
pkg- A package.backupCount- The number of packages "up" to go.- Returns:
- The parent package.
-
getJavaScriptLanguageSupport
Returns the Java language support.- Returns:
- The Java language support
-
getAnchor
Returns the anchor portion of a (relative) URL.- Parameters:
url- The URL.- Returns:
- The anchor, or
nullif none.
-
getArgs
Gets the arguments from a method signature.- Parameters:
methodSignature- The method signature.- Returns:
- The arguments, or an empty array if none.
-
urlClicked
public void urlClicked(HyperlinkEvent e, org.fife.ui.autocomplete.Completion c, org.fife.ui.autocomplete.DescWindowCallback callback) - Specified by:
urlClickedin interfaceorg.fife.ui.autocomplete.ExternalURLHandler
-