JIVE Platform
Release 0.3.1

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

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

public class ContourIDTokenizer
extends Object

A utility class used to break a ContourID into its various components.

See Also:
ContourID

Constructor Summary
ContourIDTokenizer(ContourID id)
          Constructs a tokenizer for the supplied ContourID and tokenizes it.
 
Method Summary
 String getCallNumber()
          Returns the call number associated with the ContourID.
 String getClassName()
          Returns the fully-qualified class name associated with the ContourID.
 String getInstanceNumber()
          Returns the instance number associated with the ContourID.
 String getMethodName()
          Returns the method name associated with the ContourID, or null if the contour ID references a static or an instance contour.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ContourIDTokenizer

public ContourIDTokenizer(ContourID id)
Constructs a tokenizer for the supplied ContourID and tokenizes it.

Parameters:
id - the contour ID to be parsed
Method Detail

getClassName

public String getClassName()
Returns the fully-qualified class name associated with the ContourID.

Returns:
the fully-qualified class name

getInstanceNumber

public String getInstanceNumber()
Returns the instance number associated with the ContourID. This number is unique per class. Returns null if the contour ID references a static contour or a static method contour.

Returns:
the instance number or null if there is none

getMethodName

public String getMethodName()
Returns the method name associated with the ContourID, or null if the contour ID references a static or an instance contour.

Returns:
the method name or null if there is none

getCallNumber

public String getCallNumber()
Returns the call number associated with the ContourID. This number is unique per class (not per instance). Returns null if the contour ID references a static or an instance contour.

Returns:
the call number or null if there is none

JIVE Platform
Release 0.3.1