JIVE Platform
Release 0.3.1

edu.buffalo.cse.jive.ui.search
Class SelectionTokenizer

java.lang.Object
  extended by edu.buffalo.cse.jive.ui.search.SelectionTokenizer

public class SelectionTokenizer
extends Object

Utility class used to tokenize an ISelection into various components representing Java elements. This class can be used to initialize query input fields.


Constructor Summary
SelectionTokenizer(ISelection selection)
          Constructs a tokenizer for the supplied ISelection and tokenizes it.
 
Method Summary
 String getClassName()
          Returns the fully-qualified class name associated with the Selection, or the empty string if there is none.
 String getMethodName()
          Returns the method name associated with the ISelection, or the empty string if there is none.
 String getVariableName()
          Returns the variable name associated with the ISelection, or the empty string if there is none.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SelectionTokenizer

public SelectionTokenizer(ISelection selection)
Constructs a tokenizer for the supplied ISelection and tokenizes it.

Parameters:
selection - the selection to tokenize
Method Detail

getClassName

public String getClassName()
Returns the fully-qualified class name associated with the Selection, or the empty string if there is none.

Returns:
the fully-qualified class name

getVariableName

public String getVariableName()
Returns the variable name associated with the ISelection, or the empty string if there is none.

Returns:
the variable name

getMethodName

public String getMethodName()
Returns the method name associated with the ISelection, or the empty string if there is none.

Returns:
the method name

JIVE Platform
Release 0.3.1