Class JSClassCompletion
java.lang.Object
org.fife.ui.autocomplete.AbstractCompletion
org.fife.ui.autocomplete.BasicCompletion
org.fife.rsta.ac.js.completion.JSClassCompletion
- All Implemented Interfaces:
Comparable<org.fife.ui.autocomplete.Completion>, JSCompletion, JSCompletionUI, org.fife.ui.autocomplete.Completion
public class JSClassCompletion
extends org.fife.ui.autocomplete.BasicCompletion
implements JSCompletion
-
Field Summary
FieldsFields inherited from interface JSCompletionUI
BASIC_COMPLETION_RELEVANCE, BEAN_METHOD_RELEVANCE, DEFAULT_CLASS_RELEVANCE, DEFAULT_FUNCTION_RELEVANCE, DEFAULT_VARIABLE_RELEVANCE, GLOBAL_FUNCTION_RELEVANCE, GLOBAL_VARIABLE_RELEVANCE, LOCAL_VARIABLE_RELEVANCE, STATIC_FIELD_RELEVANCE, TEMPLATE_RELEVANCE -
Constructor Summary
ConstructorsConstructorDescriptionJSClassCompletion(org.fife.ui.autocomplete.CompletionProvider provider, ClassFile cf, boolean qualified) -
Method Summary
Modifier and TypeMethodDescriptionintcompareTo(org.fife.ui.autocomplete.Completion c2) booleangetClassName(boolean fullyQualified) Returns the name of the class represented by this completion.getEnclosingClassName(boolean fullyQualified) Returns the name of the enclosing class.getIcon()Returns the package this class or interface is in.getType(boolean qualified) inthashCode()voidrendererText(Graphics g, int x, int y, boolean selected) Methods inherited from class org.fife.ui.autocomplete.BasicCompletion
getReplacementText, getShortDescription, setShortDescription, setSummary, toStringMethods inherited from class org.fife.ui.autocomplete.AbstractCompletion
getInputText, getProvider, getRelevance, setIcon, setRelevanceMethods inherited from interface org.fife.ui.autocomplete.Completion
getInputText, getProvider, getRelevance, getReplacementText
-
Field Details
-
cf
-
qualified
private boolean qualified
-
-
Constructor Details
-
JSClassCompletion
public JSClassCompletion(org.fife.ui.autocomplete.CompletionProvider provider, ClassFile cf, boolean qualified)
-
-
Method Details
-
compareTo
public int compareTo(org.fife.ui.autocomplete.Completion c2) - Specified by:
compareToin interfaceComparable<org.fife.ui.autocomplete.Completion>- Specified by:
compareToin interfaceorg.fife.ui.autocomplete.Completion- Overrides:
compareToin classorg.fife.ui.autocomplete.AbstractCompletion
-
equals
-
getAlreadyEntered
- Specified by:
getAlreadyEnteredin interfaceorg.fife.ui.autocomplete.Completion- Overrides:
getAlreadyEnteredin classorg.fife.ui.autocomplete.AbstractCompletion
-
getClassName
Returns the name of the class represented by this completion.- Parameters:
fullyQualified- Whether the returned name should be fully qualified.- Returns:
- The class name.
- See Also:
-
getIcon
- Specified by:
getIconin interfaceorg.fife.ui.autocomplete.Completion- Overrides:
getIconin classorg.fife.ui.autocomplete.AbstractCompletion
-
getPackageName
Returns the package this class or interface is in.- Returns:
- The package, or
nullif it is not in a package. - See Also:
-
getSummary
- Specified by:
getSummaryin interfaceorg.fife.ui.autocomplete.Completion- Overrides:
getSummaryin classorg.fife.ui.autocomplete.BasicCompletion
-
getToolTipText
- Specified by:
getToolTipTextin interfaceorg.fife.ui.autocomplete.Completion- Overrides:
getToolTipTextin classorg.fife.ui.autocomplete.AbstractCompletion
-
hashCode
-
rendererText
-
getEnclosingClassName
Description copied from interface:JSCompletionReturns the name of the enclosing class.- Specified by:
getEnclosingClassNamein interfaceJSCompletion- Parameters:
fullyQualified- Whether the name returned should be fully qualified.- Returns:
- The class name.
-
getLookupName
- Specified by:
getLookupNamein interfaceJSCompletion- Returns:
- a logical lookup name that is unique
-
getType
- Specified by:
getTypein interfaceJSCompletion- Returns:
- JavaScript type from Completion qualified
-