Java Doc for JavaParser.java in » IDE » tIDE » japa » parser » Java Source Code / Java DocumentationJava Source Code and Java Documentation
Java Source Code / Java Documentation
1.
6.0 JDK Core
2.
6.0 JDK Modules
3.
6.0 JDK Modules com.sun
4.
6.0 JDK Modules com.sun.java
5.
6.0 JDK Modules sun
6.
6.0 JDK Platform
7.
Ajax
8.
Apache Harmony Java SE
9.
Aspect oriented
10.
Authentication Authorization
11.
Blogger System
12.
Build
13.
Byte Code
14.
Cache
15.
Chart
16.
Chat
17.
Code Analyzer
18.
Collaboration
19.
Content Management System
20.
Database Client
21.
Database DBMS
22.
Database JDBC Connection Pool
23.
Database ORM
24.
Development
25.
EJB Server geronimo
26.
EJB Server GlassFish
27.
EJB Server JBoss 4.2.1
28.
EJB Server resin 3.1.5
29.
ERP CRM Financial
30.
ESB
31.
Forum
32.
GIS
33.
Graphic Library
34.
Groupware
35.
HTML Parser
36.
IDE
37.
IDE Eclipse
38.
IDE Netbeans
39.
Installer
40.
Internationalization Localization
41.
Inversion of Control
42.
Issue Tracking
43.
J2EE
44.
JBoss
45.
JMS
46.
JMX
47.
Library
48.
Mail Clients
49.
Net
50.
Parser
51.
PDF
52.
Portal
53.
Profiler
54.
Project Management
55.
Report
56.
RSS RDF
57.
Rule Engine
58.
Science
59.
Scripting
60.
Search Engine
61.
Security
62.
Sevlet Container
63.
Source Control
64.
Swing Library
65.
Template Engine
66.
Test Coverage
67.
Testing
68.
UML
69.
Web Crawler
70.
Web Framework
71.
Web Mail
72.
Web Server
73.
Web Services
74.
Web Services apache cxf 2.0.1
75.
Web Services AXIS2
76.
Wiki Engine
77.
Workflow Engines
78.
XML
79.
XML UI
Java
Java Tutorial
Java Open Source
Jar File Download
Java Articles
Java Products
Java by API
Photoshop Tutorials
Maya Tutorials
Flash Tutorials
3ds-Max Tutorials
Illustrator Tutorials
GIMP Tutorials
C# / C Sharp
C# / CSharp Tutorial
C# / CSharp Open Source
ASP.Net
ASP.NET Tutorial
JavaScript DHTML
JavaScript Tutorial
JavaScript Reference
HTML / CSS
HTML CSS Reference
C / ANSI-C
C Tutorial
C++
C++ Tutorial
Ruby
PHP
Python
Python Tutorial
Python Open Source
SQL Server / T-SQL
SQL Server / T-SQL Tutorial
Oracle PL / SQL
Oracle PL/SQL Tutorial
PostgreSQL
SQL / MySQL
MySQL Tutorial
VB.Net
VB.Net Tutorial
Flash / Flex / ActionScript
VBA / Excel / Access / Word
XML
XML Tutorial
Microsoft Office PowerPoint 2007 Tutorial
Microsoft Office Excel 2007 Tutorial
Microsoft Office Word 2007 Tutorial
Java Source Code / Java Documentation
»
IDE
»
tIDE
»
japa.parser
Source Cross Reference
Class Diagram
Java Document (Java Doc)
java.lang
.Object
japa.parser
.JavaParser
JavaParser
final
public
class JavaParser implements
JavaParserConstants
(Code)
Grammar to parse Java version 1.5
author:
Sreenivasa Viswanadha - Simplified and enhanced for 1.5
author:
Júlio Vilmar Gesser (jgesser@gmail.com) - bug fixes and added AST generation
Inner Class :final static class JJCalls
Field Summary
JavaCharStream
jj_input_stream
public
boolean
lookingAhead
public
JavaParserTokenManager
token_source
public
Token
tokenjj_nt
Constructor Summary
public
JavaParser
(
java.io.InputStream
stream)
public
JavaParser
(
java.io.InputStream
stream,
String
encoding)
public
JavaParser
(
java.io.Reader
stream)
public
JavaParser
(
JavaParserTokenManager
tm)
Method Summary
final
public
Expression
AdditiveExpression
()
final
public
Expression
AllocationExpression
(
Expression
scope)
final
public
Expression
AndExpression
()
final
public
AnnotationExpr
Annotation
()
final
public
BodyDeclaration
AnnotationBodyDeclaration
()
final
public
List
AnnotationTypeBody
()
final
public
AnnotationDeclaration
AnnotationTypeDeclaration
(Modifier modifier)
final
public
AnnotationMemberDeclaration
AnnotationTypeMemberDeclaration
(Modifier modifier)
final
public
List
ArgumentList
()
final
public
List
Arguments
()
final
public
Object
[]
ArrayDimsAndInits
()
final
public
ArrayInitializerExpr
ArrayInitializer
()
final
public
AssertStmt
AssertStatement
()
final
public
AssignExpr.Operator
AssignmentOperator
()
final
public
BlockStmt
Block
()
final
public
Statement
BlockStatement
()
final
public
Expression
BooleanLiteral
()
final
public
BreakStmt
BreakStatement
()
final
public
Expression
CastExpression
()
final
public
void
CastLookahead
()
final
public
List
ClassOrInterfaceBody
(boolean isInterface)
final
public
BodyDeclaration
ClassOrInterfaceBodyDeclaration
(boolean isInterface)
final
public
ClassOrInterfaceDeclaration
ClassOrInterfaceDeclaration
(Modifier modifier)
final
public
ClassOrInterfaceType
ClassOrInterfaceType
()
final
public
CompilationUnit
CompilationUnit
()
final
public
Expression
ConditionalAndExpression
()
final
public
Expression
ConditionalExpression
()
final
public
Expression
ConditionalOrExpression
()
final
public
ConstructorDeclaration
ConstructorDeclaration
(Modifier modifier)
final
public
ContinueStmt
ContinueStatement
()
final
public
Expression
DefaultValue
()
final
public
DoStmt
DoStatement
()
final
public
EmptyStmt
EmptyStatement
()
final
public
EnumConstantDeclaration
EnumConstant
()
final
public
EnumDeclaration
EnumDeclaration
(Modifier modifier)
final
public
Expression
EqualityExpression
()
final
public
Expression
ExclusiveOrExpression
()
final
public
ExplicitConstructorInvocationStmt
ExplicitConstructorInvocation
()
final
public
Expression
Expression
()
final
public
List
ExpressionList
()
final
public
List
ExtendsList
(boolean isInterface)
final
public
FieldDeclaration
FieldDeclaration
(Modifier modifier)
final
public
List
ForInit
()
final
public
Statement
ForStatement
()
final
public
List
ForUpdate
()
final
public
Parameter
FormalParameter
()
final
public
List
FormalParameters
()
final
public
IfStmt
IfStatement
()
final
public
List
ImplementsList
(boolean isInterface)
final
public
ImportDeclaration
ImportDeclaration
()
final
public
Expression
InclusiveOrExpression
()
final
public
InitializerDeclaration
Initializer
()
final
public
Expression
InstanceOfExpression
()
final
public
LabeledStmt
LabeledStatement
()
final
public
Expression
Literal
()
final
public
MarkerAnnotationExpr
MarkerAnnotation
()
final
public
Expression
MemberValue
()
final
public
Expression
MemberValueArrayInitializer
()
final
public
MemberValuePair
MemberValuePair
()
final
public
List
MemberValuePairs
()
final
public
MethodDeclaration
MethodDeclaration
(Modifier modifier)
final
public
Modifier
Modifiers
()
final
public
Expression
MultiplicativeExpression
()
final
public
NameExpr
Name
()
final
public
List
NameList
()
final
public
NormalAnnotationExpr
NormalAnnotation
()
final
public
Expression
NullLiteral
()
final
public
PackageDeclaration
PackageDeclaration
()
final
public
Expression
PostfixExpression
()
final
public
Expression
PreDecrementExpression
()
final
public
Expression
PreIncrementExpression
()
final
public
Expression
PrimaryExpression
()
final
public
Expression
PrimaryExpressionWithoutSuperSuffix
()
final
public
Expression
PrimaryPrefix
()
final
public
Expression
PrimarySuffix
(
Expression
scope)
final
public
Expression
PrimarySuffixWithoutSuper
(
Expression
scope)
final
public
PrimitiveType
PrimitiveType
()
final
public
void
RSIGNEDSHIFT
()
final
public
void
RUNSIGNEDSHIFT
()
public
void
ReInit
(
java.io.InputStream
stream)
public
void
ReInit
(
java.io.InputStream
stream,
String
encoding)
public
void
ReInit
(
java.io.Reader
stream)
public
void
ReInit
(
JavaParserTokenManager
tm)
final
public
ReferenceType
ReferenceType
()
final
public
Expression
RelationalExpression
()
final
public
Type
ResultType
()
final
public
ReturnStmt
ReturnStatement
()
final
public
Expression
ShiftExpression
()
final
public
SingleMemberAnnotationExpr
SingleMemberAnnotation
()
final
public
Statement
Statement
()
final
public
ExpressionStmt
StatementExpression
()
final
public
List
Statements
()
final
public
SwitchEntryStmt
SwitchEntry
()
final
public
SwitchStmt
SwitchStatement
()
final
public
SynchronizedStmt
SynchronizedStatement
()
final
public
ThrowStmt
ThrowStatement
()
final
public
TryStmt
TryStatement
()
final
public
Type
Type
()
final
public
Type
TypeArgument
()
final
public
List
TypeArguments
()
final
public
List
TypeBound
()
final
public
TypeDeclaration
TypeDeclaration
()
final
public
TypeParameter
TypeParameter
()
final
public
List
TypeParameters
()
final
public
Expression
UnaryExpression
()
final
public
Expression
UnaryExpressionNotPlusMinus
()
final
public
VariableDeclarationExpr
VariableDeclarationExpression
()
final
public
VariableDeclarator
VariableDeclarator
()
final
public
VariableDeclaratorId
VariableDeclaratorId
()
final
public
Expression
VariableInitializer
()
final
public
WhileStmt
WhileStatement
()
final
public
WildcardType
Wildcard
()
final
public
void
disable_tracing
()
final
public
void
enable_tracing
()
public
ParseException
generateParseException
()
final
public
Token
getNextToken
()
final
public
Token
getToken
(int index)
public
static
CompilationUnit
parse
(
InputStream
in,
String
encoding)
public
static
CompilationUnit
parse
(
Reader
in)
public
static
CompilationUnit
parse
(
InputStream
in)
public
static
CompilationUnit
parse
(
File
file,
String
encoding)
public
static
CompilationUnit
parse
(
File
file)
Field Detail
jj_input_stream
JavaCharStream
jj_input_stream
(Code)
lookingAhead
public
boolean lookingAhead
(Code)
token_source
public
JavaParserTokenManager
token_source
(Code)
tokenjj_nt
public
Token
tokenjj_nt
(Code)
Constructor Detail
JavaParser
public
JavaParser(
java.io.InputStream
stream)
(Code)
JavaParser
public
JavaParser(
java.io.InputStream
stream,
String
encoding)
(Code)
JavaParser
public
JavaParser(
java.io.Reader
stream)
(Code)
JavaParser
public
JavaParser(
JavaParserTokenManager
tm)
(Code)
Method Detail
AdditiveExpression
final
public
Expression
AdditiveExpression() throws
ParseException
(Code)
AllocationExpression
final
public
Expression
AllocationExpression(
Expression
scope) throws
ParseException
(Code)
AndExpression
final
public
Expression
AndExpression() throws
ParseException
(Code)
Annotation
final
public
AnnotationExpr
Annotation() throws
ParseException
(Code)
AnnotationBodyDeclaration
final
public
BodyDeclaration
AnnotationBodyDeclaration() throws
ParseException
(Code)
AnnotationTypeBody
final
public
List
AnnotationTypeBody() throws
ParseException
(Code)
AnnotationTypeDeclaration
final
public
AnnotationDeclaration
AnnotationTypeDeclaration(Modifier modifier) throws
ParseException
(Code)
AnnotationTypeMemberDeclaration
final
public
AnnotationMemberDeclaration
AnnotationTypeMemberDeclaration(Modifier modifier) throws
ParseException
(Code)
ArgumentList
final
public
List
ArgumentList() throws
ParseException
(Code)
Arguments
final
public
List
Arguments() throws
ParseException
(Code)
ArrayDimsAndInits
final
public
Object
[] ArrayDimsAndInits() throws
ParseException
(Code)
ArrayInitializer
final
public
ArrayInitializerExpr
ArrayInitializer() throws
ParseException
(Code)
AssertStatement
final
public
AssertStmt
AssertStatement() throws
ParseException
(Code)
AssignmentOperator
final
public
AssignExpr.Operator
AssignmentOperator() throws
ParseException
(Code)
Block
final
public
BlockStmt
Block() throws
ParseException
(Code)
BlockStatement
final
public
Statement
BlockStatement() throws
ParseException
(Code)
BooleanLiteral
final
public
Expression
BooleanLiteral() throws
ParseException
(Code)
BreakStatement
final
public
BreakStmt
BreakStatement() throws
ParseException
(Code)
CastExpression
final
public
Expression
CastExpression() throws
ParseException
(Code)
CastLookahead
final
public
void CastLookahead() throws
ParseException
(Code)
ClassOrInterfaceBody
final
public
List
ClassOrInterfaceBody(boolean isInterface) throws
ParseException
(Code)
ClassOrInterfaceBodyDeclaration
final
public
BodyDeclaration
ClassOrInterfaceBodyDeclaration(boolean isInterface) throws
ParseException
(Code)
ClassOrInterfaceDeclaration
final
public
ClassOrInterfaceDeclaration
ClassOrInterfaceDeclaration(Modifier modifier) throws
ParseException
(Code)
ClassOrInterfaceType
final
public
ClassOrInterfaceType
ClassOrInterfaceType() throws
ParseException
(Code)
CompilationUnit
final
public
CompilationUnit
CompilationUnit() throws
ParseException
(Code)
THE JAVA LANGUAGE GRAMMAR STARTS HERE *
ConditionalAndExpression
final
public
Expression
ConditionalAndExpression() throws
ParseException
(Code)
ConditionalExpression
final
public
Expression
ConditionalExpression() throws
ParseException
(Code)
ConditionalOrExpression
final
public
Expression
ConditionalOrExpression() throws
ParseException
(Code)
ConstructorDeclaration
final
public
ConstructorDeclaration
ConstructorDeclaration(Modifier modifier) throws
ParseException
(Code)
ContinueStatement
final
public
ContinueStmt
ContinueStatement() throws
ParseException
(Code)
DefaultValue
final
public
Expression
DefaultValue() throws
ParseException
(Code)
DoStatement
final
public
DoStmt
DoStatement() throws
ParseException
(Code)
EmptyStatement
final
public
EmptyStmt
EmptyStatement() throws
ParseException
(Code)
EnumConstant
final
public
EnumConstantDeclaration
EnumConstant() throws
ParseException
(Code)
EnumDeclaration
final
public
EnumDeclaration
EnumDeclaration(Modifier modifier) throws
ParseException
(Code)
EqualityExpression
final
public
Expression
EqualityExpression() throws
ParseException
(Code)
ExclusiveOrExpression
final
public
Expression
ExclusiveOrExpression() throws
ParseException
(Code)
ExplicitConstructorInvocation
final
public
ExplicitConstructorInvocationStmt
ExplicitConstructorInvocation() throws
ParseException
(Code)
Expression
final
public
Expression
Expression() throws
ParseException
(Code)
ExpressionList
final
public
List
ExpressionList() throws
ParseException
(Code)
ExtendsList
final
public
List
ExtendsList(boolean isInterface) throws
ParseException
(Code)
FieldDeclaration
final
public
FieldDeclaration
FieldDeclaration(Modifier modifier) throws
ParseException
(Code)
ForInit
final
public
List
ForInit() throws
ParseException
(Code)
ForStatement
final
public
Statement
ForStatement() throws
ParseException
(Code)
ForUpdate
final
public
List
ForUpdate() throws
ParseException
(Code)
FormalParameter
final
public
Parameter
FormalParameter() throws
ParseException
(Code)
FormalParameters
final
public
List
FormalParameters() throws
ParseException
(Code)
IfStatement
final
public
IfStmt
IfStatement() throws
ParseException
(Code)
ImplementsList
final
public
List
ImplementsList(boolean isInterface) throws
ParseException
(Code)
ImportDeclaration
final
public
ImportDeclaration
ImportDeclaration() throws
ParseException
(Code)
InclusiveOrExpression
final
public
Expression
InclusiveOrExpression() throws
ParseException
(Code)
Initializer
final
public
InitializerDeclaration
Initializer() throws
ParseException
(Code)
InstanceOfExpression
final
public
Expression
InstanceOfExpression() throws
ParseException
(Code)
LabeledStatement
final
public
LabeledStmt
LabeledStatement() throws
ParseException
(Code)
Literal
final
public
Expression
Literal() throws
ParseException
(Code)
MarkerAnnotation
final
public
MarkerAnnotationExpr
MarkerAnnotation() throws
ParseException
(Code)
MemberValue
final
public
Expression
MemberValue() throws
ParseException
(Code)
MemberValueArrayInitializer
final
public
Expression
MemberValueArrayInitializer() throws
ParseException
(Code)
MemberValuePair
final
public
MemberValuePair
MemberValuePair() throws
ParseException
(Code)
MemberValuePairs
final
public
List
MemberValuePairs() throws
ParseException
(Code)
MethodDeclaration
final
public
MethodDeclaration
MethodDeclaration(Modifier modifier) throws
ParseException
(Code)
Modifiers
final
public
Modifier Modifiers() throws
ParseException
(Code)
MultiplicativeExpression
final
public
Expression
MultiplicativeExpression() throws
ParseException
(Code)
Name
final
public
NameExpr
Name() throws
ParseException
(Code)
NameList
final
public
List
NameList() throws
ParseException
(Code)
NormalAnnotation
final
public
NormalAnnotationExpr
NormalAnnotation() throws
ParseException
(Code)
NullLiteral
final
public
Expression
NullLiteral() throws
ParseException
(Code)
PackageDeclaration
final
public
PackageDeclaration
PackageDeclaration() throws
ParseException
(Code)
PostfixExpression
final
public
Expression
PostfixExpression() throws
ParseException
(Code)
PreDecrementExpression
final
public
Expression
PreDecrementExpression() throws
ParseException
(Code)
PreIncrementExpression
final
public
Expression
PreIncrementExpression() throws
ParseException
(Code)
PrimaryExpression
final
public
Expression
PrimaryExpression() throws
ParseException
(Code)
PrimaryExpressionWithoutSuperSuffix
final
public
Expression
PrimaryExpressionWithoutSuperSuffix() throws
ParseException
(Code)
PrimaryPrefix
final
public
Expression
PrimaryPrefix() throws
ParseException
(Code)
PrimarySuffix
final
public
Expression
PrimarySuffix(
Expression
scope) throws
ParseException
(Code)
PrimarySuffixWithoutSuper
final
public
Expression
PrimarySuffixWithoutSuper(
Expression
scope) throws
ParseException
(Code)
PrimitiveType
final
public
PrimitiveType
PrimitiveType() throws
ParseException
(Code)
RSIGNEDSHIFT
final
public
void RSIGNEDSHIFT() throws
ParseException
(Code)
RUNSIGNEDSHIFT
final
public
void RUNSIGNEDSHIFT() throws
ParseException
(Code)
ReInit
public
void ReInit(
java.io.InputStream
stream)
(Code)
ReInit
public
void ReInit(
java.io.InputStream
stream,
String
encoding)
(Code)
ReInit
public
void ReInit(
java.io.Reader
stream)
(Code)
ReInit
public
void ReInit(
JavaParserTokenManager
tm)
(Code)
ReferenceType
final
public
ReferenceType
ReferenceType() throws
ParseException
(Code)
RelationalExpression
final
public
Expression
RelationalExpression() throws
ParseException
(Code)
ResultType
final
public
Type
ResultType() throws
ParseException
(Code)
ReturnStatement
final
public
ReturnStmt
ReturnStatement() throws
ParseException
(Code)
ShiftExpression
final
public
Expression
ShiftExpression() throws
ParseException
(Code)
SingleMemberAnnotation
final
public
SingleMemberAnnotationExpr
SingleMemberAnnotation() throws
ParseException
(Code)
Statement
final
public
Statement
Statement() throws
ParseException
(Code)
StatementExpression
final
public
ExpressionStmt
StatementExpression() throws
ParseException
(Code)
Statements
final
public
List
Statements() throws
ParseException
(Code)
SwitchEntry
final
public
SwitchEntryStmt
SwitchEntry() throws
ParseException
(Code)
SwitchStatement
final
public
SwitchStmt
SwitchStatement() throws
ParseException
(Code)
SynchronizedStatement
final
public
SynchronizedStmt
SynchronizedStatement() throws
ParseException
(Code)
ThrowStatement
final
public
ThrowStmt
ThrowStatement() throws
ParseException
(Code)
TryStatement
final
public
TryStmt
TryStatement() throws
ParseException
(Code)
Type
final
public
Type
Type() throws
ParseException
(Code)
TypeArgument
final
public
Type
TypeArgument() throws
ParseException
(Code)
TypeArguments
final
public
List
TypeArguments() throws
ParseException
(Code)
TypeBound
final
public
List
TypeBound() throws
ParseException
(Code)
TypeDeclaration
final
public
TypeDeclaration
TypeDeclaration() throws
ParseException
(Code)
TypeParameter
final
public
TypeParameter
TypeParameter() throws
ParseException
(Code)
TypeParameters
final
public
List
TypeParameters() throws
ParseException
(Code)
UnaryExpression
final
public
Expression
UnaryExpression() throws
ParseException
(Code)
UnaryExpressionNotPlusMinus
final
public
Expression
UnaryExpressionNotPlusMinus() throws
ParseException
(Code)
VariableDeclarationExpression
final
public
VariableDeclarationExpr
VariableDeclarationExpression() throws
ParseException
(Code)
VariableDeclarator
final
public
VariableDeclarator
VariableDeclarator() throws
ParseException
(Code)
VariableDeclaratorId
final
public
VariableDeclaratorId
VariableDeclaratorId() throws
ParseException
(Code)
VariableInitializer
final
public
Expression
VariableInitializer() throws
ParseException
(Code)
WhileStatement
final
public
WhileStmt
WhileStatement() throws
ParseException
(Code)
Wildcard
final
public
WildcardType
Wildcard() throws
ParseException
(Code)
disable_tracing
final
public
void disable_tracing()
(Code)
enable_tracing
final
public
void enable_tracing()
(Code)
generateParseException
public
ParseException
generateParseException()
(Code)
getNextToken
final
public
Token
getNextToken()
(Code)
getToken
final
public
Token
getToken(int index)
(Code)
parse
public
static
CompilationUnit
parse(
InputStream
in,
String
encoding) throws
ParseException
(Code)
parse
public
static
CompilationUnit
parse(
Reader
in) throws
ParseException
(Code)
parse
public
static
CompilationUnit
parse(
InputStream
in) throws
ParseException
(Code)
parse
public
static
CompilationUnit
parse(
File
file,
String
encoding) throws
ParseException
(Code)
parse
public
static
CompilationUnit
parse(
File
file) throws
ParseException
(Code)
Methods inherited from
java.lang.Object
native
protected
Object
clone() throws
CloneNotSupportedException
(Code)
(Java Doc)
public
boolean equals(
Object
obj)
(Code)
(Java Doc)
protected
void finalize() throws
Throwable
(Code)
(Java Doc)
final native
public
Class
> getClass()
(Code)
(Java Doc)
native
public
int hashCode()
(Code)
(Java Doc)
final native
public
void notify()
(Code)
(Java Doc)
final native
public
void notifyAll()
(Code)
(Java Doc)
public
String
toString()
(Code)
(Java Doc)
final native
public
void wait(long timeout) throws
InterruptedException
(Code)
(Java Doc)
final
public
void wait(long timeout, int nanos) throws
InterruptedException
(Code)
(Java Doc)
final
public
void wait() throws
InterruptedException
(Code)
(Java Doc)
www.java2java.com
|
Contact Us
Copyright 2009 - 12 Demo Source and Support. All rights reserved.
All other trademarks are property of their respective owners.