openjava.tools.parser
Class TokenSourceAdapter

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

public final class TokenSourceAdapter
extends ParserTokenManager

Converts a TokenSource into a ParserTokenManager.

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

Field Summary
private  TokenSource token_src
           
 
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
TokenSourceAdapter(TokenSource token_src)
           
 
Method Summary
 Token getNextToken()
           
 Token getToken(int i)
           
 
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

token_src

private TokenSource token_src
Constructor Detail

TokenSourceAdapter

public TokenSourceAdapter(TokenSource token_src)
Method Detail

getNextToken

public Token getNextToken()
Overrides:
getNextToken in class ParserTokenManager

getToken

public Token getToken(int i)

SourceForge.net_Logo