lime.uga.edu.wsworkflow.swtInterface
Class JavaLineStyler.JavaScanner

java.lang.Object
  extended by lime.uga.edu.wsworkflow.swtInterface.JavaLineStyler.JavaScanner
Enclosing class:
JavaLineStyler

public class JavaLineStyler.JavaScanner
extends java.lang.Object

A simple fuzzy scanner for Java


Field Summary
protected  java.lang.StringBuffer fBuffer
           
protected  java.lang.String fDoc
           
protected  int fEnd
           
protected  boolean fEofSeen
           
protected  java.util.Hashtable fgKeys
           
protected  int fPos
           
protected  int fStartToken
           
 
Constructor Summary
JavaLineStyler.JavaScanner()
           
 
Method Summary
 int getLength()
          Returns the ending location of the current token in the document.
 int getStartOffset()
          Returns the starting location of the current token in the document.
(package private)  void initialize()
          Initialize the lookup table.
 int nextToken()
          Returns the next lexical token in the document.
protected  int read()
          Returns next character.
 void setRange(java.lang.String text)
           
protected  void unread(int c)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

fgKeys

protected java.util.Hashtable fgKeys

fBuffer

protected java.lang.StringBuffer fBuffer

fDoc

protected java.lang.String fDoc

fPos

protected int fPos

fEnd

protected int fEnd

fStartToken

protected int fStartToken

fEofSeen

protected boolean fEofSeen
Constructor Detail

JavaLineStyler.JavaScanner

public JavaLineStyler.JavaScanner()
Method Detail

getLength

public final int getLength()
Returns the ending location of the current token in the document.


initialize

void initialize()
Initialize the lookup table.


getStartOffset

public final int getStartOffset()
Returns the starting location of the current token in the document.


nextToken

public int nextToken()
Returns the next lexical token in the document.


read

protected int read()
Returns next character.


setRange

public void setRange(java.lang.String text)

unread

protected void unread(int c)