net.sourceforge.pmd.ast
Class JavaParser
java.lang.Object
|
+--net.sourceforge.pmd.ast.JavaParser
- All Implemented Interfaces:
- JavaParserConstants, JavaParserTreeConstants
- public class JavaParser
- extends java.lang.Object
- implements JavaParserTreeConstants, JavaParserConstants
Fields inherited from interface net.sourceforge.pmd.ast.JavaParserTreeConstants |
JJTALLOCATIONEXPRESSION, JJTARGUMENTLIST, JJTARGUMENTS, JJTARRAYDIMSANDINITS, JJTARRAYINITIALIZER, JJTASSERTSTATEMENT, JJTASSIGNMENTOPERATOR, JJTBLOCK, JJTBLOCKSTATEMENT, JJTBOOLEANLITERAL, JJTBREAKSTATEMENT, JJTCASTEXPRESSION, JJTCASTLOOKAHEAD, JJTCLASSBODY, JJTCLASSBODYDECLARATION, JJTCLASSDECLARATION, JJTCOMPILATIONUNIT, JJTCONDITIONALANDEXPRESSION, JJTCONSTRUCTORDECLARATION, JJTCONTINUESTATEMENT, JJTDOSTATEMENT, JJTEMPTYSTATEMENT, JJTEXPLICITCONSTRUCTORINVOCATION, JJTEXPRESSION, JJTFIELDDECLARATION, JJTFORINIT, JJTFORMALPARAMETER, JJTFORMALPARAMETERS, JJTFORSTATEMENT, JJTFORUPDATE, JJTIFSTATEMENT, JJTIMPORTDECLARATION, JJTINITIALIZER, JJTINSTANCEOFEXPRESSION, JJTINTERFACEDECLARATION, JJTINTERFACEMEMBERDECLARATION, JJTLABELEDSTATEMENT, JJTLITERAL, JJTLOCALVARIABLEDECLARATION, JJTMETHODDECLARATION, JJTMETHODDECLARATIONLOOKAHEAD, JJTMETHODDECLARATOR, JJTNAME, JJTNAMELIST, JJTNESTEDCLASSDECLARATION, JJTNESTEDINTERFACEDECLARATION, jjtNodeName, JJTNULLLITERAL, JJTPACKAGEDECLARATION, JJTPREDECREMENTEXPRESSION, JJTPREINCREMENTEXPRESSION, JJTPRIMARYEXPRESSION, JJTPRIMARYPREFIX, JJTPRIMARYSUFFIX, JJTPRIMITIVETYPE, JJTRESULTTYPE, JJTRETURNSTATEMENT, JJTSTATEMENT, JJTSTATEMENTEXPRESSION, JJTSTATEMENTEXPRESSIONLIST, JJTSWITCHLABEL, JJTSWITCHSTATEMENT, JJTSYNCHRONIZEDSTATEMENT, JJTTHROWSTATEMENT, JJTTRYSTATEMENT, JJTTYPE, JJTTYPEDECLARATION, JJTUNMODIFIEDCLASSDECLARATION, JJTUNMODIFIEDINTERFACEDECLARATION, JJTVARIABLEDECLARATOR, JJTVARIABLEDECLARATORID, JJTVARIABLEINITIALIZER, JJTVOID, JJTWHILESTATEMENT |
Fields inherited from interface net.sourceforge.pmd.ast.JavaParserConstants |
_DEFAULT, ABSTRACT, ANDASSIGN, ASSERT, 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, 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 |
jjtree
protected net.sourceforge.pmd.ast.JJTJavaParserState jjtree
token_source
public JavaParserTokenManager token_source
token
public Token token
jj_nt
public Token jj_nt
lookingAhead
public boolean lookingAhead
JavaParser
public JavaParser(java.io.InputStream stream)
JavaParser
public JavaParser(java.io.Reader stream)
JavaParser
public JavaParser(JavaParserTokenManager tm)
CompilationUnit
public final ASTCompilationUnit CompilationUnit()
throws ParseException
- THE JAVA LANGUAGE GRAMMAR STARTS HERE *
ParseException
PackageDeclaration
public final void PackageDeclaration()
throws ParseException
ParseException
ImportDeclaration
public final void ImportDeclaration()
throws ParseException
ParseException
TypeDeclaration
public final void TypeDeclaration()
throws ParseException
ParseException
ClassDeclaration
public final void ClassDeclaration()
throws ParseException
ParseException
UnmodifiedClassDeclaration
public final void UnmodifiedClassDeclaration()
throws ParseException
ParseException
ClassBody
public final void ClassBody()
throws ParseException
ParseException
NestedClassDeclaration
public final void NestedClassDeclaration()
throws ParseException
ParseException
ClassBodyDeclaration
public final void ClassBodyDeclaration()
throws ParseException
ParseException
MethodDeclarationLookahead
public final void MethodDeclarationLookahead()
throws ParseException
ParseException
InterfaceDeclaration
public final void InterfaceDeclaration()
throws ParseException
ParseException
NestedInterfaceDeclaration
public final void NestedInterfaceDeclaration()
throws ParseException
ParseException
UnmodifiedInterfaceDeclaration
public final void UnmodifiedInterfaceDeclaration()
throws ParseException
ParseException
InterfaceMemberDeclaration
public final void InterfaceMemberDeclaration()
throws ParseException
ParseException
FieldDeclaration
public final void FieldDeclaration()
throws ParseException
ParseException
VariableDeclarator
public final void VariableDeclarator()
throws ParseException
ParseException
VariableDeclaratorId
public final void VariableDeclaratorId()
throws ParseException
ParseException
VariableInitializer
public final void VariableInitializer()
throws ParseException
ParseException
ArrayInitializer
public final void ArrayInitializer()
throws ParseException
ParseException
MethodDeclaration
public final void MethodDeclaration()
throws ParseException
ParseException
MethodDeclarator
public final void MethodDeclarator()
throws ParseException
ParseException
FormalParameters
public final void FormalParameters()
throws ParseException
ParseException
FormalParameter
public final void FormalParameter()
throws ParseException
ParseException
ConstructorDeclaration
public final void ConstructorDeclaration()
throws ParseException
ParseException
ExplicitConstructorInvocation
public final void ExplicitConstructorInvocation()
throws ParseException
ParseException
Initializer
public final void Initializer()
throws ParseException
ParseException
Type
public final void Type()
throws ParseException
ParseException
PrimitiveType
public final void PrimitiveType()
throws ParseException
ParseException
ResultType
public final void ResultType()
throws ParseException
ParseException
Name
public final void Name()
throws ParseException
ParseException
NameList
public final void NameList()
throws ParseException
ParseException
Expression
public final void Expression()
throws ParseException
ParseException
AssignmentOperator
public final void AssignmentOperator()
throws ParseException
ParseException
ConditionalExpression
public final void ConditionalExpression()
throws ParseException
ParseException
ConditionalOrExpression
public final void ConditionalOrExpression()
throws ParseException
ParseException
ConditionalAndExpression
public final void ConditionalAndExpression()
throws ParseException
ParseException
InclusiveOrExpression
public final void InclusiveOrExpression()
throws ParseException
ParseException
ExclusiveOrExpression
public final void ExclusiveOrExpression()
throws ParseException
ParseException
AndExpression
public final void AndExpression()
throws ParseException
ParseException
EqualityExpression
public final void EqualityExpression()
throws ParseException
ParseException
InstanceOfExpression
public final void InstanceOfExpression()
throws ParseException
ParseException
RelationalExpression
public final void RelationalExpression()
throws ParseException
ParseException
ShiftExpression
public final void ShiftExpression()
throws ParseException
ParseException
AdditiveExpression
public final void AdditiveExpression()
throws ParseException
ParseException
MultiplicativeExpression
public final void MultiplicativeExpression()
throws ParseException
ParseException
UnaryExpression
public final void UnaryExpression()
throws ParseException
ParseException
PreIncrementExpression
public final void PreIncrementExpression()
throws ParseException
ParseException
PreDecrementExpression
public final void PreDecrementExpression()
throws ParseException
ParseException
UnaryExpressionNotPlusMinus
public final void UnaryExpressionNotPlusMinus()
throws ParseException
ParseException
CastLookahead
public final void CastLookahead()
throws ParseException
ParseException
PostfixExpression
public final void PostfixExpression()
throws ParseException
ParseException
CastExpression
public final void CastExpression()
throws ParseException
ParseException
PrimaryExpression
public final void PrimaryExpression()
throws ParseException
ParseException
PrimaryPrefix
public final void PrimaryPrefix()
throws ParseException
ParseException
PrimarySuffix
public final void PrimarySuffix()
throws ParseException
ParseException
Literal
public final void Literal()
throws ParseException
ParseException
BooleanLiteral
public final void BooleanLiteral()
throws ParseException
ParseException
NullLiteral
public final void NullLiteral()
throws ParseException
ParseException
Arguments
public final void Arguments()
throws ParseException
ParseException
ArgumentList
public final void ArgumentList()
throws ParseException
ParseException
AllocationExpression
public final void AllocationExpression()
throws ParseException
ParseException
ArrayDimsAndInits
public final void ArrayDimsAndInits()
throws ParseException
ParseException
Statement
public final void Statement()
throws ParseException
ParseException
LabeledStatement
public final void LabeledStatement()
throws ParseException
ParseException
Block
public final void Block()
throws ParseException
ParseException
BlockStatement
public final void BlockStatement()
throws ParseException
ParseException
LocalVariableDeclaration
public final void LocalVariableDeclaration()
throws ParseException
ParseException
EmptyStatement
public final void EmptyStatement()
throws ParseException
ParseException
StatementExpression
public final void StatementExpression()
throws ParseException
ParseException
SwitchStatement
public final void SwitchStatement()
throws ParseException
ParseException
SwitchLabel
public final void SwitchLabel()
throws ParseException
ParseException
IfStatement
public final void IfStatement()
throws ParseException
ParseException
WhileStatement
public final void WhileStatement()
throws ParseException
ParseException
DoStatement
public final void DoStatement()
throws ParseException
ParseException
ForStatement
public final void ForStatement()
throws ParseException
ParseException
ForInit
public final void ForInit()
throws ParseException
ParseException
StatementExpressionList
public final void StatementExpressionList()
throws ParseException
ParseException
ForUpdate
public final void ForUpdate()
throws ParseException
ParseException
BreakStatement
public final void BreakStatement()
throws ParseException
ParseException
ContinueStatement
public final void ContinueStatement()
throws ParseException
ParseException
ReturnStatement
public final void ReturnStatement()
throws ParseException
ParseException
ThrowStatement
public final void ThrowStatement()
throws ParseException
ParseException
SynchronizedStatement
public final void SynchronizedStatement()
throws ParseException
ParseException
TryStatement
public final void TryStatement()
throws ParseException
ParseException
AssertStatement
public final void AssertStatement()
throws ParseException
ParseException
ReInit
public void ReInit(java.io.InputStream stream)
ReInit
public void ReInit(java.io.Reader stream)
ReInit
public void ReInit(JavaParserTokenManager tm)
getNextToken
public final Token getNextToken()
getToken
public final Token getToken(int index)
generateParseException
public ParseException generateParseException()
enable_tracing
public final void enable_tracing()
disable_tracing
public final void disable_tracing()
Copyright © 2002-2003 Project Ultra*Log @ DARPA. All Rights Reserved.