Class LocalVariableCompletion

java.lang.Object
org.fife.ui.autocomplete.AbstractCompletion
org.fife.ui.autocomplete.BasicCompletion
org.fife.rsta.ac.java.AbstractJavaSourceCompletion
org.fife.rsta.ac.java.LocalVariableCompletion
All Implemented Interfaces:
Comparable<org.fife.ui.autocomplete.Completion>, JavaSourceCompletion, org.fife.ui.autocomplete.Completion

class LocalVariableCompletion extends AbstractJavaSourceCompletion
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
     
    private static final int
    The relevance of local variables.
  • Constructor Summary

    Constructors
    Constructor
    Description
    LocalVariableCompletion(org.fife.ui.autocomplete.CompletionProvider provider, LocalVariable localVar)
     
  • Method Summary

    Modifier and Type
    Method
    Description
    boolean
    Force subclasses to override equals().
     
     
    int
     
    void
    rendererText(Graphics g, int x, int y, boolean selected)
    Used by JavaCellRenderer to render this completion choice.

    Methods inherited from class org.fife.ui.autocomplete.BasicCompletion

    getReplacementText, getShortDescription, getSummary, setShortDescription, setSummary, toString

    Methods inherited from class org.fife.ui.autocomplete.AbstractCompletion

    getInputText, getProvider, getRelevance, setIcon, setRelevance

    Methods inherited from class Object

    clone, finalize, getClass, notify, notifyAll, wait, wait, wait

    Methods inherited from interface org.fife.ui.autocomplete.Completion

    getInputText, getProvider, getRelevance, getReplacementText, getSummary
  • Field Details

    • localVar

      private LocalVariable localVar
    • RELEVANCE

      private static final int RELEVANCE
      The relevance of local variables. This allows local variables to be "higher" in the completion list than other types.
      See Also:
  • Constructor Details

    • LocalVariableCompletion

      LocalVariableCompletion(org.fife.ui.autocomplete.CompletionProvider provider, LocalVariable localVar)
  • Method Details

    • equals

      public boolean equals(Object obj)
      Description copied from interface: JavaSourceCompletion
      Force subclasses to override equals(). TODO: Remove me
      Specified by:
      equals in interface JavaSourceCompletion
      Overrides:
      equals in class Object
    • getIcon

      public Icon getIcon()
      Specified by:
      getIcon in interface org.fife.ui.autocomplete.Completion
      Overrides:
      getIcon in class org.fife.ui.autocomplete.AbstractCompletion
    • getToolTipText

      public String getToolTipText()
      Specified by:
      getToolTipText in interface org.fife.ui.autocomplete.Completion
      Overrides:
      getToolTipText in class org.fife.ui.autocomplete.AbstractCompletion
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object
    • rendererText

      public void rendererText(Graphics g, int x, int y, boolean selected)
      Description copied from interface: JavaSourceCompletion
      Used by JavaCellRenderer to render this completion choice.
      Parameters:
      g - The graphics context to render to.
      x - The x-offset at which to render.
      y - The y-offset at which to render.
      selected - Whether this completion is currently selected/active.