public class JSClassCompletion extends BasicCompletion implements JSCompletion
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 and Description |
|---|
JSClassCompletion(CompletionProvider provider,
ClassFile cf,
boolean qualified) |
| Modifier and Type | Method and Description |
|---|---|
int |
compareTo(Completion c2) |
boolean |
equals(java.lang.Object obj) |
java.lang.String |
getAlreadyEntered(javax.swing.text.JTextComponent comp) |
java.lang.String |
getClassName(boolean fullyQualified)
Returns the name of the class represented by this completion.
|
java.lang.String |
getEnclosingClassName(boolean fullyQualified)
Returns the name of the enclosing class.
|
javax.swing.Icon |
getIcon() |
java.lang.String |
getLookupName() |
java.lang.String |
getPackageName()
Returns the package this class or interface is in.
|
java.lang.String |
getSummary() |
java.lang.String |
getToolTipText() |
java.lang.String |
getType(boolean qualified) |
int |
hashCode() |
void |
rendererText(java.awt.Graphics g,
int x,
int y,
boolean selected) |
public JSClassCompletion(CompletionProvider provider,
ClassFile cf,
boolean qualified)
public int compareTo(Completion c2)
public boolean equals(java.lang.Object obj)
public java.lang.String getAlreadyEntered(javax.swing.text.JTextComponent comp)
public java.lang.String getClassName(boolean fullyQualified)
fullyQualified - Whether the returned name should be fully
qualified.getPackageName()public javax.swing.Icon getIcon()
public java.lang.String getPackageName()
null if it is not in a package.getClassName(boolean)public java.lang.String getSummary()
public java.lang.String getToolTipText()
public int hashCode()
public void rendererText(java.awt.Graphics g,
int x,
int y,
boolean selected)
public java.lang.String getEnclosingClassName(boolean fullyQualified)
JSCompletiongetEnclosingClassName in interface JSCompletionfullyQualified - Whether the name returned should be fully
qualified.public java.lang.String getLookupName()
getLookupName in interface JSCompletionpublic java.lang.String getType(boolean qualified)
getType in interface JSCompletion