openjava.tools.parser
Class CustomTokenManager

java.lang.Object
  |
  +--openjava.tools.parser.ParserTokenManager
        |
        +--openjava.tools.parser.CustomTokenManager
All Implemented Interfaces:
ParserConstants, TokenSource

public final class CustomTokenManager
extends ParserTokenManager
implements TokenSource

Implementation of TokenSource.

Since:
%SOFTWARE% 1.0
Version:
1.0
Author:
Michiaki Tatsubori
See Also:
Object

Field Summary
private  Environment env
           
(package private)  int offset
           
private  Parser parser
           
(package private)  int pointer
           
 
Fields inherited from class openjava.tools.parser.ParserTokenManager
curChar, curLexState, debugStream, defaultLexState, image, jjbitVec0, jjbitVec2, jjbitVec3, jjbitVec4, jjbitVec5, jjbitVec6, jjbitVec7, jjbitVec8, jjimageLen, jjmatchedKind, jjmatchedPos, jjnewLexState, jjnewStateCnt, jjnextStates, jjround, jjstrLiteralImages, jjtoMore, jjtoSkip, jjtoSpecial, jjtoToken, lengthOfMatch, lexStateNames
 
Fields inherited from interface openjava.tools.parser.ParserConstants
_DEFAULT, ABSTRACT, ANDASSIGN, AS, ASSIGN, BANG, BIT_AND, BIT_OR, BOOLEAN, BREAK, BY, BYTE, CASE, CATCH, CHAR, CHARACTER_LITERAL, CLASS, COLON, COMMA, CONST, CONTINUE, DECIMAL_LITERAL, DECR, DIGIT, DO, DOT, DOUBLE, DOUBLE_FLOATING_POINT_LITERAL, ELSE, EOF, EQ, EXISTS, EXPONENT, EXTENDS, FALSE, FINAL, FINALLY, FLOAT, FLOATING_POINT_LITERAL, FOR, FORMAL_COMMENT, FROM, FULL, GE, GOTO, GROUP, GT, HEX_LITERAL, HOOK, IDENTIFIER, IF, IMPLEMENTS, IMPORT, IN, INCR, INNER, INSTANCEOF, INSTANTIATES, INT, INTEGER_LITERAL, INTERFACE, INTERSECT, JOIN, LBRACE, LBRACKET, LE, LEFT, LETTER, LONG, LONG_LITERAL, LPAREN, LSHIFT, LSHIFTASSIGN, LT, METACLASS, MINUS, MINUSASSIGN, MULTI_LINE_COMMENT, NATIVE, NE, NEW, NULL, OCTAL_LITERAL, ON, ORASSIGN, ORDER, PACKAGE, PLUS, PLUSASSIGN, PRIVATE, PROTECTED, PUBLIC, RBRACE, RBRACKET, REL_MINUS, REM, REMASSIGN, RETURN, RIGHT, RPAREN, RSIGNEDSHIFT, RSIGNEDSHIFTASSIGN, RUNSIGNEDSHIFT, RUNSIGNEDSHIFTASSIGN, SC_AND, SC_OR, SELECT, SEMICOLON, SHORT, SINGLE_LINE_COMMENT, SLASH, SLASHASSIGN, STAR, STARASSIGN, STATIC, STRING_LITERAL, SUPER, SWITCH, SYNCHRONIZED, THIS, THROW, THROWS, TILDE, tokenImage, TRANSIENT, TRUE, TRY, UNION, VOID, VOLATILE, WHERE, WHILE, XOR, XORASSIGN
 
Constructor Summary
CustomTokenManager(Parser parser, Environment env)
           
 
Method Summary
 void assume()
           
 void fix()
           
 Environment getEnvironment()
           
 Token getNextToken()
           
 Token getToken(int i)
           
 void restore()
           
 
Methods inherited from class openjava.tools.parser.ParserTokenManager
ReInit, ReInit, setDebugStream, SkipLexicalActions, SwitchTo
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

parser

private Parser parser

env

private Environment env

pointer

int pointer

offset

int offset
Constructor Detail

CustomTokenManager

public CustomTokenManager(Parser parser,
                          Environment env)
Method Detail

getEnvironment

public Environment getEnvironment()
Specified by:
getEnvironment in interface TokenSource

assume

public void assume()

restore

public void restore()

fix

public void fix()

getNextToken

public Token getNextToken()
Specified by:
getNextToken in interface TokenSource
Overrides:
getNextToken in class ParserTokenManager

getToken

public Token getToken(int i)
Specified by:
getToken in interface TokenSource

SourceForge.net_Logo