public class JGrammar extends JavaCC30Grammar implements JGrammarConstants
| Modifier and Type | Field and Description |
|---|---|
Token |
jj_nt |
boolean |
lookingAhead |
Token |
token |
JGrammarTokenManager |
token_source |
syntaxBuilder_DEFAULT, ABSTRACT, ANDASSIGN, ASSIGN, BANG, BIT_AND, BIT_OR, BREAK, CASE, CATCH, CHARACTER_LITERAL, COLON, COMMA, CONST, CONTINUE, DECIMAL_LITERAL, DECR, DEFAULT, DIGIT, DO, DOT, ELSE, EOF, EQ, EXP, EXPONENT, EXTENDS, FALSE, FINAL, FINALLY, FLOATING_POINT_LITERAL, FOR, FORMAL_COMMENT, GE, GOTO, GT, HEX_LITERAL, HOOK, IDENTIFIER, IF, IMPL, IMPLEMENTS, IMPORT, IN_FORMAL_COMMENT, IN_MULTI_LINE_COMMENT, INCR, INSTANCEOF, INTEGER_LITERAL, INTERFACE, LBRACE, LBRACKET, LE, LETTER, LPAREN, LSHIFT, LSHIFTASSIGN, LT, MINUS, MINUSASSIGN, MULTI_LINE_COMMENT, NATIVE, NE, NEW, NULL, OCTAL_LITERAL, ORASSIGN, PACKAGE, PLUS, PLUSASSIGN, PRIVATE, PROTECTED, PUBLIC, RBRACE, RBRACKET, REM, REMASSIGN, RETURN, RPAREN, RSIGNEDSHIFT, RSIGNEDSHIFTASSIGN, RUNSIGNEDSHIFT, RUNSIGNEDSHIFTASSIGN, SC_AND, SC_OR, SEMICOLON, SINGLE_LINE_COMMENT, SLASH, SLASHASSIGN, STAR, STARASSIGN, STATIC, STRING_LITERAL, SUPER, SWITCH, SYNCHRONIZED, THROW, THROWS, TILDE, tokenImage, TRANSIENT, TRUE, TRY, VOID, VOLATILE, WHILE, XOR, XORASSIGN| Constructor and Description |
|---|
JGrammar() |
JGrammar(InputStream stream) |
JGrammar(InputStream stream,
String encoding) |
JGrammar(JGrammarTokenManager tm) |
JGrammar(Reader stream) |
parse, parseAsMethod, parseAsMethodHeader, parseAsModule, parseAsType, posgetErrors, getSyntaxTreeBuilder, getTopNode, setModulepublic JGrammarTokenManager token_source
public Token token
public Token jj_nt
public boolean lookingAhead
public JGrammar()
public JGrammar(InputStream stream)
public JGrammar(InputStream stream, String encoding)
public JGrammar(Reader stream)
public JGrammar(JGrammarTokenManager tm)
protected TextInterval pos(Token t)
protected TextInterval pos(Token t1, Token t2)
protected TextInterval pos(String lexError, Token t, StringBuffer resMessage)
public void parseTopNode(String type)
parseTopNode in class JavaCC30Grammarpublic final void Expression()
throws ParseException
ParseExceptionpublic final void ConditionalExpression()
throws ParseException
ParseExceptionpublic final void ConditionalImplExpression()
throws ParseException
ParseExceptionpublic final void ConditionalOrExpression()
throws ParseException
ParseExceptionpublic final void ConditionalXorExpression()
throws ParseException
ParseExceptionpublic final void ConditionalAndExpression()
throws ParseException
ParseExceptionpublic final void EqualityExpression()
throws ParseException
ParseExceptionpublic final void RelationalExpression()
throws ParseException
ParseExceptionpublic final void AdditiveExpression()
throws ParseException
ParseExceptionpublic final void MultiplicativeExpression()
throws ParseException
ParseExceptionpublic final void PowerExpression()
throws ParseException
ParseExceptionpublic final void UnaryExpression()
throws ParseException
ParseExceptionpublic final void PreIncrementExpression()
throws ParseException
ParseExceptionpublic final void PreDecrementExpression()
throws ParseException
ParseExceptionpublic final void PostfixExpression()
throws ParseException
ParseExceptionpublic final void PrimaryExpression()
throws ParseException
ParseExceptionpublic final void PrimaryPrefix()
throws ParseException
ParseExceptionpublic final void PrimarySuffix()
throws ParseException
ParseExceptionpublic final void CastExpression()
throws ParseException
ParseExceptionpublic final void CastLookahead()
throws ParseException
ParseExceptionpublic final void identifier()
throws ParseException
ParseExceptionpublic final void TypeDimension()
throws ParseException
ParseExceptionpublic final void Type()
throws ParseException
ParseExceptionpublic final void ResultType()
throws ParseException
ParseExceptionpublic final void ClassName()
throws ParseException
ParseExceptionpublic final void function()
throws ParseException
ParseExceptionpublic final void AllocationExpression()
throws ParseException
ParseExceptionpublic final void ArrayDimsAndInits()
throws ParseException
ParseExceptionpublic final void index()
throws ParseException
ParseExceptionpublic final void AbsExpression()
throws ParseException
ParseExceptionpublic final void Literal()
throws ParseException
ParseExceptionpublic final void BooleanLiteral()
throws ParseException
ParseExceptionpublic final void NullLiteral()
throws ParseException
ParseExceptionpublic final void Block()
throws ParseException
ParseExceptionpublic final void BlockStatementList()
throws ParseException
ParseExceptionpublic final void OptionalSemiColon()
throws ParseException
ParseExceptionpublic final void Statement()
throws ParseException
ParseExceptionpublic final void LabeledStatement()
throws ParseException
ParseExceptionpublic final void BlockStatement()
throws ParseException
ParseExceptionpublic final void StatementExpression()
throws ParseException
ParseExceptionpublic final void EmptyStatement()
throws ParseException
ParseExceptionpublic final void IfStatement()
throws ParseException
ParseExceptionpublic final void WhileStatement()
throws ParseException
ParseExceptionpublic final void ReturnStatement()
throws ParseException
ParseExceptionpublic final void ThrowStatement()
throws ParseException
ParseExceptionpublic final void DoStatement()
throws ParseException
ParseExceptionpublic final void LocalVariableDeclaration()
throws ParseException
ParseExceptionpublic final void VariableDeclarator()
throws ParseException
ParseExceptionpublic final void VariableDeclaratorId()
throws ParseException
ParseExceptionpublic final void VariableInitializer()
throws ParseException
ParseExceptionpublic final void ArrayInitializer()
throws ParseException
ParseExceptionpublic final void ForStatement()
throws ParseException
ParseExceptionpublic final void ForInit()
throws ParseException
ParseExceptionpublic final void StatementExpressionList()
throws ParseException
ParseExceptionpublic final void ForUpdate()
throws ParseException
ParseExceptionpublic final void BreakStatement()
throws ParseException
ParseExceptionpublic final void ContinueStatement()
throws ParseException
ParseExceptionpublic final void MethodHeader()
throws ParseException
ParseExceptionpublic final void MethodDeclaration()
throws ParseException
ParseExceptionpublic final void MethodDeclarator()
throws ParseException
ParseExceptionpublic final void MethodName()
throws ParseException
ParseExceptionpublic final void FormalParameters()
throws ParseException
ParseExceptionpublic final void FormalParameter()
throws ParseException
ParseExceptionpublic final void VarDeclaration()
throws ParseException
ParseExceptionpublic final void MethodOrVarDeclaration()
throws ParseException
ParseExceptionpublic final void parseModuleInternal()
throws ParseException
ParseExceptionpublic final void parseTopNodeInternal()
throws ParseException
ParseExceptionpublic void ReInit(InputStream stream)
public void ReInit(InputStream stream, String encoding)
public void ReInit(Reader stream)
ReInit in class JavaCC30Grammarpublic void ReInit(JGrammarTokenManager tm)
public final Token getNextToken()
public final Token getToken(int index)
public ParseException generateParseException()
public final void enable_tracing()
public final void disable_tracing()
Copyright © 2015. All rights reserved.