Docjar: A Java Source and Docuemnt Enginecom.*    java.*    javax.*    org.*    all    new    plug-in

Quick Search    Search Deep

com.port80.eclipse.llk.editors.parser
Class LLKParserInput  view LLKParserInput download LLKParserInput.java

java.lang.Object
  extended bycom.port80.eclipse.llk.editors.parser.LLKParserInput

public final class LLKParserInput
extends java.lang.Object

Input source for LLK parser. Read tokens from input (ILLKLexer) lexer.


Field Summary
private static boolean CHECK
           
protected  LLKToken current
           
private static int DEF_BUF_SIZE
           
static int EOF
           
private  ILLKLexer lexer
           
private static int MARKER_SIZE
           
private  LLKToken[] markLocations
           
private  int markOffset
           
private static java.lang.String NAME
           
 
Constructor Summary
LLKParserInput(ILLKLexer lexer)
           
 
Method Summary
protected  void _throwMismatch(java.lang.String msg, int[] bset, int actual)
           
protected  void _throwMismatch(java.lang.String msg, int expected, int actual)
           
protected  void _throwMismatch(java.lang.String msg, int first, int last, int actual)
           
protected  java.lang.String _toString(int type)
           
protected  java.lang.String _toString(int[] bset)
           
 void consume()
           
 void consume(int n)
           
 void disableContext(java.lang.String context)
           
 void enableContext(java.lang.String context)
           
private  void expandMarkLocations()
           
 ILLKLexer getLexer()
           
 SourceLocation getLocation(LLKToken t)
           
 int LA(int n)
           
 int LA0()
           
 int LA1()
           
protected static boolean llkGetBit(int n, int[] bset)
           
protected static boolean llkGetBitInverted(int n, int[] bset)
           
 LLKToken LT(int n)
           
 LLKToken LT0()
           
 LLKToken LT1()
           
 void mark()
           
 void match(int type)
           
 void match(int[] bset)
           
 void matchNot(int type)
           
 void matchNot(int[] bset)
           
 void matchNotRange(int first, int last)
           
 void matchRange(int first, int last)
           
 void reset()
           
 void rewind()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

NAME

private static final java.lang.String NAME
See Also:
Constant Field Values

CHECK

private static final boolean CHECK
See Also:
Constant Field Values

MARKER_SIZE

private static final int MARKER_SIZE
See Also:
Constant Field Values

DEF_BUF_SIZE

private static final int DEF_BUF_SIZE
See Also:
Constant Field Values

EOF

public static final int EOF
See Also:
Constant Field Values

lexer

private ILLKLexer lexer

markLocations

private LLKToken[] markLocations

current

protected LLKToken current

markOffset

private int markOffset
Constructor Detail

LLKParserInput

public LLKParserInput(ILLKLexer lexer)
Method Detail

reset

public void reset()

mark

public final void mark()

rewind

public final void rewind()

getLexer

public final ILLKLexer getLexer()

getLocation

public final SourceLocation getLocation(LLKToken t)

LA0

public final int LA0()

LA1

public final int LA1()

LA

public final int LA(int n)

LT0

public final LLKToken LT0()

LT1

public final LLKToken LT1()

LT

public final LLKToken LT(int n)

enableContext

public final void enableContext(java.lang.String context)

disableContext

public final void disableContext(java.lang.String context)

consume

public final void consume()

consume

public final void consume(int n)

match

public final void match(int type)
                 throws LLKParseException,
                        LLKTokenStreamError

matchNot

public final void matchNot(int type)
                    throws LLKParseException,
                           LLKTokenStreamError

matchRange

public final void matchRange(int first,
                             int last)
                      throws LLKParseException,
                             LLKTokenStreamError

matchNotRange

public final void matchNotRange(int first,
                                int last)
                         throws LLKParseException,
                                LLKTokenStreamError

match

public final void match(int[] bset)
                 throws LLKParseException,
                        LLKTokenStreamError

matchNot

public final void matchNot(int[] bset)
                    throws LLKParseException,
                           LLKTokenStreamError

llkGetBit

protected static final boolean llkGetBit(int n,
                                         int[] bset)

llkGetBitInverted

protected static final boolean llkGetBitInverted(int n,
                                                 int[] bset)

_throwMismatch

protected void _throwMismatch(java.lang.String msg,
                              int[] bset,
                              int actual)
                       throws LLKParseException

_throwMismatch

protected final void _throwMismatch(java.lang.String msg,
                                    int expected,
                                    int actual)
                             throws LLKParseException

_throwMismatch

protected final void _throwMismatch(java.lang.String msg,
                                    int first,
                                    int last,
                                    int actual)
                             throws LLKParseException

_toString

protected final java.lang.String _toString(int type)

_toString

protected final java.lang.String _toString(int[] bset)

expandMarkLocations

private final void expandMarkLocations()