org.eclipse.cdt.internal.formatter.scanner
Class ScannerContext

java.lang.Object
  extended by org.eclipse.cdt.internal.formatter.scanner.ScannerContext

public class ScannerContext
extends java.lang.Object


Constructor Summary
ScannerContext()
           
 
Method Summary
 int getOffset()
          Returns the offset.
 java.io.Reader getReader()
          Returns the reader.
 ScannerContext initialize(java.io.Reader r)
           
 ScannerContext initialize(java.io.Reader r, int offset)
           
 int popUndo()
          Returns the undo.
 void pushUndo(int undo)
          Sets the undo.
 int read()
           
 int undoStackSize()
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ScannerContext

public ScannerContext()
Method Detail

initialize

public ScannerContext initialize(java.io.Reader r)

initialize

public ScannerContext initialize(java.io.Reader r,
                                 int offset)

read

public int read()
         throws java.io.IOException
Throws:
java.io.IOException

getOffset

public final int getOffset()
Returns the offset.

Returns:
int

getReader

public final java.io.Reader getReader()
Returns the reader.

Returns:
Reader

undoStackSize

public final int undoStackSize()

popUndo

public final int popUndo()
Returns the undo.

Returns:
int

pushUndo

public void pushUndo(int undo)
Sets the undo.

Parameters:
undo - The undo to set