Class JavaParser
java.lang.Object
|
+--JavaParser
- All Implemented Interfaces:
- JavaParserConstants
- public class JavaParser
- extends java.lang.Object
- implements JavaParserConstants
Fields inherited from interface JavaParserConstants |
_DEFAULT, ABSTRACT, ANDASSIGN, ASSIGN, BANG, BIT_AND, BIT_OR, BOOLEAN, BREAK, BYTE, CASE, CATCH, CHAR, CHARACTER_LITERAL, CLASS, COLON, COMMA, CONST, CONTINUE, DECIMAL_LITERAL, DECR, DEFAULT, DIGIT, DO, DOT, DOUBLE, ELSE, EOF, EQ, EXPONENT, EXTENDS, FALSE, FINAL, FINALLY, FLOAT, FLOATING_POINT_LITERAL, FOR, FORMAL_COMMENT, GE, GOTO, GT, HEX_LITERAL, HOOK, IDENTIFIER, IF, IMPLEMENTS, IMPORT, IN_FORMAL_COMMENT, IN_MULTI_LINE_COMMENT, IN_SINGLE_LINE_COMMENT, INCR, INSTANCEOF, INT, INTEGER_LITERAL, INTERFACE, LBRACE, LBRACKET, LE, LETTER, LONG, 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, SHORT, SINGLE_LINE_COMMENT, SLASH, SLASHASSIGN, STAR, STARASSIGN, STATIC, STRICTFP, STRING_LITERAL, SUPER, SWITCH, SYNCHRONIZED, THIS, THROW, THROWS, TILDE, tokenImage, TRANSIENT, TRUE, TRY, VOID, VOLATILE, WHILE, XOR, XORASSIGN |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
token_source
public static JavaParserTokenManager token_source
token
public static Token token
jj_nt
public static Token jj_nt
lookingAhead
public static boolean lookingAhead
JavaParser
public JavaParser(java.io.InputStream stream)
JavaParser
public JavaParser(java.io.Reader stream)
JavaParser
public JavaParser(JavaParserTokenManager tm)
main
public static void main(java.lang.String[] args)
CompilationUnit
public static final Frame CompilationUnit()
throws ParseException
- THE JAVA LANGUAGE GRAMMAR STARTS HERE *
PackageDeclaration
public static final OrderedVector PackageDeclaration()
throws ParseException
ImportDeclaration
public static final OrderedVector ImportDeclaration()
throws ParseException
TypeDeclaration
public static final Frame TypeDeclaration()
throws ParseException
ClassDeclaration
public static final Frame ClassDeclaration()
throws ParseException
UnmodifiedClassDeclaration
public static final void UnmodifiedClassDeclaration(Frame f)
throws ParseException
ClassBody
public static final void ClassBody(Frame f)
throws ParseException
NestedClassDeclaration
public static final Frame NestedClassDeclaration()
throws ParseException
ClassBodyDeclaration
public static final void ClassBodyDeclaration(Frame f)
throws ParseException
MethodDeclarationLookahead
public static final void MethodDeclarationLookahead()
throws ParseException
InterfaceDeclaration
public static final Frame InterfaceDeclaration()
throws ParseException
NestedInterfaceDeclaration
public static final Frame NestedInterfaceDeclaration()
throws ParseException
UnmodifiedInterfaceDeclaration
public static final void UnmodifiedInterfaceDeclaration(Frame f)
throws ParseException
InterfaceMemberDeclaration
public static final void InterfaceMemberDeclaration(Frame f)
throws ParseException
FieldDeclaration
public static final java.util.Vector FieldDeclaration()
throws ParseException
VariableDeclarator
public static final void VariableDeclarator(Frame f,
java.lang.Object t)
throws ParseException
VariableDeclaratorId
public static final void VariableDeclaratorId(Frame f,
java.lang.Object t)
throws ParseException
VariableInitializer
public static final java.lang.Object VariableInitializer()
throws ParseException
ArrayInitializer
public static final DefinedTypeInstance ArrayInitializer()
throws ParseException
MethodDeclaration
public static final Frame MethodDeclaration()
throws ParseException
MethodDeclarator
public static final void MethodDeclarator(Frame f,
java.lang.Object r)
throws ParseException
FormalParameters
public static final OrderedVector FormalParameters()
throws ParseException
FormalParameter
public static final Frame FormalParameter()
throws ParseException
ConstructorDeclaration
public static final Frame ConstructorDeclaration()
throws ParseException
ExplicitConstructorInvocation
public static final Frame ExplicitConstructorInvocation()
throws ParseException
Initializer
public static final Frame Initializer()
throws ParseException
Type
public static final java.lang.Object Type()
throws ParseException
PrimitiveType
public static final DefinedTypeInstance PrimitiveType()
throws ParseException
ResultType
public static final java.lang.Object ResultType()
throws ParseException
Name
public static final OrderedVector Name()
throws ParseException
NameList
public static final UnorderedVector NameList()
throws ParseException
Expression
public static final Frame Expression()
throws ParseException
AssignmentOperator
public static final Frame AssignmentOperator()
throws ParseException
ConditionalExpression
public static final Frame ConditionalExpression()
throws ParseException
ConditionalOrExpression
public static final Frame ConditionalOrExpression()
throws ParseException
ConditionalAndExpression
public static final Frame ConditionalAndExpression()
throws ParseException
InclusiveOrExpression
public static final Frame InclusiveOrExpression()
throws ParseException
ExclusiveOrExpression
public static final Frame ExclusiveOrExpression()
throws ParseException
AndExpression
public static final Frame AndExpression()
throws ParseException
EqualityExpression
public static final Frame EqualityExpression()
throws ParseException
InstanceOfExpression
public static final Frame InstanceOfExpression()
throws ParseException
RelationalExpression
public static final Frame RelationalExpression()
throws ParseException
ShiftExpression
public static final Frame ShiftExpression()
throws ParseException
AdditiveExpression
public static final Frame AdditiveExpression()
throws ParseException
MultiplicativeExpression
public static final Frame MultiplicativeExpression()
throws ParseException
UnaryExpression
public static final Frame UnaryExpression()
throws ParseException
PreIncrementExpression
public static final Frame PreIncrementExpression()
throws ParseException
PreDecrementExpression
public static final Frame PreDecrementExpression()
throws ParseException
UnaryExpressionNotPlusMinus
public static final Frame UnaryExpressionNotPlusMinus()
throws ParseException
CastLookahead
public static final void CastLookahead()
throws ParseException
PostfixExpression
public static final Frame PostfixExpression()
throws ParseException
CastExpression
public static final Frame CastExpression()
throws ParseException
PrimaryExpression
public static final Frame PrimaryExpression()
throws ParseException
PrimaryPrefix
public static final java.lang.Object PrimaryPrefix()
throws ParseException
PrimarySuffix
public static final void PrimarySuffix()
throws ParseException
Literal
public static final Frame Literal()
throws ParseException
BooleanLiteral
public static final Frame BooleanLiteral()
throws ParseException
NullLiteral
public static final Frame NullLiteral()
throws ParseException
Arguments
public static final OrderedVector Arguments()
throws ParseException
ArgumentList
public static final void ArgumentList(OrderedVector l)
throws ParseException
AllocationExpression
public static final Frame AllocationExpression()
throws ParseException
ArrayDimsAndInits
public static final void ArrayDimsAndInits()
throws ParseException
Statement
public static final Frame Statement()
throws ParseException
LabeledStatement
public static final Frame LabeledStatement()
throws ParseException
Block
public static final Frame Block()
throws ParseException
BlockStatement
public static final void BlockStatement(Frame b)
throws ParseException
LocalVariableDeclaration
public static final OrderedVector LocalVariableDeclaration()
throws ParseException
EmptyStatement
public static final Frame EmptyStatement()
throws ParseException
StatementExpression
public static final Frame StatementExpression()
throws ParseException
SwitchStatement
public static final Frame SwitchStatement()
throws ParseException
SwitchLabel
public static final Frame SwitchLabel()
throws ParseException
IfStatement
public static final Frame IfStatement()
throws ParseException
WhileStatement
public static final Frame WhileStatement()
throws ParseException
DoStatement
public static final Frame DoStatement()
throws ParseException
ForStatement
public static final Frame ForStatement()
throws ParseException
ForInit
public static final Frame ForInit()
throws ParseException
StatementExpressionList
public static final Frame StatementExpressionList()
throws ParseException
ForUpdate
public static final Frame ForUpdate()
throws ParseException
BreakStatement
public static final Frame BreakStatement()
throws ParseException
ContinueStatement
public static final Frame ContinueStatement()
throws ParseException
ReturnStatement
public static final Frame ReturnStatement()
throws ParseException
ThrowStatement
public static final Frame ThrowStatement()
throws ParseException
SynchronizedStatement
public static final Frame SynchronizedStatement()
throws ParseException
TryStatement
public static final Frame TryStatement()
throws ParseException
ReInit
public static void ReInit(java.io.InputStream stream)
ReInit
public static void ReInit(java.io.Reader stream)
ReInit
public void ReInit(JavaParserTokenManager tm)
getNextToken
public static final Token getNextToken()
getToken
public static final Token getToken(int index)
generateParseException
public static final ParseException generateParseException()
enable_tracing
public static final void enable_tracing()
disable_tracing
public static final void disable_tracing()