|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectpt.compiler.parser.JavaParser
public final class JavaParser
Grammar to parse Java version 1.5
Field Summary | |
---|---|
Token |
jj_nt
Next token. |
Token |
token
Current token. |
JavaParserTokenManager |
token_source
Generated Token Manager. |
Constructor Summary | |
---|---|
JavaParser(java.io.InputStream stream)
Constructor with InputStream. |
|
JavaParser(java.io.InputStream stream,
java.lang.String encoding)
Constructor with InputStream and supplied encoding |
|
JavaParser(JavaParserTokenManager tm)
Constructor with generated Token Manager. |
|
JavaParser(java.io.Reader stream)
Constructor. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public JavaParserTokenManager token_source
public Token token
public Token jj_nt
Constructor Detail |
---|
public JavaParser(java.io.InputStream stream)
public JavaParser(java.io.InputStream stream, java.lang.String encoding)
public JavaParser(java.io.Reader stream)
public JavaParser(JavaParserTokenManager tm)
Method Detail |
---|
public static CompilationUnit parse(java.io.InputStream in, java.lang.String encoding) throws ParseException
ParseException
public static CompilationUnit parse(java.io.InputStream in) throws ParseException
ParseException
public static CompilationUnit parse(java.io.File file, java.lang.String encoding) throws ParseException
ParseException
public static CompilationUnit parse(java.io.File file) throws ParseException
ParseException
public final CompilationUnit CompilationUnit() throws ParseException
ParseException
public final PackageDeclaration PackageDeclaration() throws ParseException
ParseException
public final ImportDeclaration ImportDeclaration() throws ParseException
ParseException
public final pt.compiler.parser.JavaParser.Modifier Modifiers() throws ParseException
ParseException
public final TypeDeclaration TypeDeclaration() throws ParseException
ParseException
public final ClassOrInterfaceDeclaration ClassOrInterfaceDeclaration(pt.compiler.parser.JavaParser.Modifier modifier) throws ParseException
ParseException
public final java.util.List ExtendsList(boolean isInterface) throws ParseException
ParseException
public final java.util.List ImplementsList(boolean isInterface) throws ParseException
ParseException
public final EnumDeclaration EnumDeclaration(pt.compiler.parser.JavaParser.Modifier modifier) throws ParseException
ParseException
public final EnumConstantDeclaration EnumConstantDeclaration() throws ParseException
ParseException
public final java.util.List TypeParameters() throws ParseException
ParseException
public final TypeParameter TypeParameter() throws ParseException
ParseException
public final java.util.List TypeBound() throws ParseException
ParseException
public final java.util.List ClassOrInterfaceBody(boolean isInterface) throws ParseException
ParseException
public final BodyDeclaration ClassOrInterfaceBodyDeclaration(boolean isInterface) throws ParseException
ParseException
public final FieldDeclaration FieldDeclaration(pt.compiler.parser.JavaParser.Modifier modifier) throws ParseException
ParseException
public final VariableDeclarator VariableDeclarator() throws ParseException
ParseException
public final VariableDeclaratorId VariableDeclaratorId() throws ParseException
ParseException
public final Expression VariableInitializer() throws ParseException
ParseException
public final ArrayInitializerExpr ArrayInitializer() throws ParseException
ParseException
public final MethodDeclaration MethodDeclaration(pt.compiler.parser.JavaParser.Modifier modifier) throws ParseException
ParseException
public final TaskDeclaration TaskDeclaration() throws ParseException
ParseException
public final java.util.List FormalParameters() throws ParseException
ParseException
public final Parameter FormalParameter() throws ParseException
ParseException
public final ConstructorDeclaration ConstructorDeclaration(pt.compiler.parser.JavaParser.Modifier modifier) throws ParseException
ParseException
public final ExplicitConstructorInvocationStmt ExplicitConstructorInvocation() throws ParseException
ParseException
public final java.util.List Statements() throws ParseException
ParseException
public final InitializerDeclaration InitializerDeclaration() throws ParseException
ParseException
public final Type Type() throws ParseException
ParseException
public final ReferenceType ReferenceType() throws ParseException
ParseException
public final ClassOrInterfaceType ClassOrInterfaceType() throws ParseException
ParseException
public final java.util.List TypeArguments() throws ParseException
ParseException
public final Type TypeArgument() throws ParseException
ParseException
public final WildcardType Wildcard() throws ParseException
ParseException
public final PrimitiveType PrimitiveType() throws ParseException
ParseException
public final Type ResultType() throws ParseException
ParseException
public final NameExpr Name() throws ParseException
ParseException
public final java.util.List NameList() throws ParseException
ParseException
public final Expression Expression() throws ParseException
ParseException
public final TaskClauseExpr TaskClauseExpression() throws ParseException
ParseException
public final AssignExpr.Operator AssignmentOperator() throws ParseException
ParseException
public final Expression ConditionalExpression() throws ParseException
ParseException
public final Expression ConditionalOrExpression() throws ParseException
ParseException
public final Expression ConditionalAndExpression() throws ParseException
ParseException
public final Expression InclusiveOrExpression() throws ParseException
ParseException
public final Expression ExclusiveOrExpression() throws ParseException
ParseException
public final Expression AndExpression() throws ParseException
ParseException
public final Expression EqualityExpression() throws ParseException
ParseException
public final Expression InstanceOfExpression() throws ParseException
ParseException
public final Expression RelationalExpression() throws ParseException
ParseException
public final Expression ShiftExpression() throws ParseException
ParseException
public final Expression AdditiveExpression() throws ParseException
ParseException
public final Expression MultiplicativeExpression() throws ParseException
ParseException
public final Expression UnaryExpression() throws ParseException
ParseException
public final Expression PreIncrementExpression() throws ParseException
ParseException
public final Expression PreDecrementExpression() throws ParseException
ParseException
public final Expression UnaryExpressionNotPlusMinus() throws ParseException
ParseException
public final void CastLookahead() throws ParseException
ParseException
public final Expression PostfixExpression() throws ParseException
ParseException
public final Expression CastExpression() throws ParseException
ParseException
public final Expression PrimaryExpression() throws ParseException
ParseException
public final Expression PrimaryExpressionWithoutSuperSuffix() throws ParseException
ParseException
public final Expression PrimaryPrefix() throws ParseException
ParseException
public final Expression PrimarySuffix(Expression scope) throws ParseException
ParseException
public final Expression PrimarySuffixWithoutSuper(Expression scope) throws ParseException
ParseException
public final Expression Literal() throws ParseException
ParseException
public final Expression BooleanLiteral() throws ParseException
ParseException
public final Expression NullLiteral() throws ParseException
ParseException
public final java.util.List Arguments() throws ParseException
ParseException
public final java.util.List HandlerArgumentList() throws ParseException
ParseException
public final HandlerArg HandlerArgument() throws ParseException
ParseException
public final java.util.List NotifyArgumentList(boolean intermediate) throws ParseException
ParseException
public final NotifyArg NotifyArgument() throws ParseException
ParseException
public final java.util.List ArgumentList() throws ParseException
ParseException
public final Expression AllocationExpression(Expression scope) throws ParseException
ParseException
public final java.lang.Object[] ArrayDimsAndInits() throws ParseException
ParseException
public final Statement Statement() throws ParseException
ParseException
public final AssertStmt AssertStatement() throws ParseException
ParseException
public final LabeledStmt LabeledStatement() throws ParseException
ParseException
public final BlockStmt Block() throws ParseException
ParseException
public final Statement BlockStatement() throws ParseException
ParseException
public final VariableDeclarationExpr VariableDeclarationExpression() throws ParseException
ParseException
public final EmptyStmt EmptyStatement() throws ParseException
ParseException
public final ExpressionStmt StatementExpression() throws ParseException
ParseException
public final SwitchStmt SwitchStatement() throws ParseException
ParseException
public final SwitchEntryStmt SwitchEntry() throws ParseException
ParseException
public final IfStmt IfStatement() throws ParseException
ParseException
public final WhileStmt WhileStatement() throws ParseException
ParseException
public final DoStmt DoStatement() throws ParseException
ParseException
public final Statement ForStatement() throws ParseException
ParseException
public final java.util.List ForInit() throws ParseException
ParseException
public final java.util.List ExpressionList() throws ParseException
ParseException
public final java.util.List ForUpdate() throws ParseException
ParseException
public final BreakStmt BreakStatement() throws ParseException
ParseException
public final ContinueStmt ContinueStatement() throws ParseException
ParseException
public final ReturnStmt ReturnStatement() throws ParseException
ParseException
public final ThrowStmt ThrowStatement() throws ParseException
ParseException
public final SynchronizedStmt SynchronizedStatement() throws ParseException
ParseException
public final TryStmt TryStatement() throws ParseException
ParseException
public final void RUNSIGNEDSHIFT() throws ParseException
ParseException
public final void RSIGNEDSHIFT() throws ParseException
ParseException
public final AnnotationExpr Annotation() throws ParseException
ParseException
public final NormalAnnotationExpr NormalAnnotation() throws ParseException
ParseException
public final MarkerAnnotationExpr MarkerAnnotation() throws ParseException
ParseException
public final SingleMemberAnnotationExpr SingleMemberAnnotation() throws ParseException
ParseException
public final java.util.List MemberValuePairs() throws ParseException
ParseException
public final MemberValuePair MemberValuePair() throws ParseException
ParseException
public final Expression MemberValue() throws ParseException
ParseException
public final Expression MemberValueArrayInitializer() throws ParseException
ParseException
public final AnnotationDeclaration AnnotationTypeDeclaration(pt.compiler.parser.JavaParser.Modifier modifier) throws ParseException
ParseException
public final java.util.List AnnotationTypeBody() throws ParseException
ParseException
public final BodyDeclaration AnnotationBodyDeclaration() throws ParseException
ParseException
public final AnnotationMemberDeclaration AnnotationTypeMemberDeclaration(pt.compiler.parser.JavaParser.Modifier modifier) throws ParseException
ParseException
public final Expression DefaultValue() throws ParseException
ParseException
public void ReInit(java.io.InputStream stream)
public void ReInit(java.io.InputStream stream, java.lang.String encoding)
public void ReInit(java.io.Reader stream)
public void ReInit(JavaParserTokenManager tm)
public final Token getNextToken()
public final Token getToken(int index)
public ParseException generateParseException()
public final void enable_tracing()
public final void disable_tracing()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |