com.sun.tools.javac.parser
Interface Parser

All Known Implementing Classes:
EndPosParser, JavacParser

public interface Parser

Reads syntactic units from source code. Parsers are normally created from a ParserFactory.

This is NOT part of any API supported by Sun Microsystems. If you write code that depends on this, you do so at your own risk. This code and its internal interfaces are subject to change or deletion without notice.


Method Summary
 JCTree.JCCompilationUnit parseCompilationUnit()
          Parse a compilation unit.
 JCTree.JCExpression parseExpression()
          Parse an expression.
 JCTree.JCStatement parseStatement()
          Parse a statement.
 JCTree.JCExpression parseType()
          Parse a type.
 

Method Detail

parseCompilationUnit

JCTree.JCCompilationUnit parseCompilationUnit()
Parse a compilation unit.

Returns:
a compilation unit

parseExpression

JCTree.JCExpression parseExpression()
Parse an expression.

Returns:
an expression

parseStatement

JCTree.JCStatement parseStatement()
Parse a statement.

Returns:
an expression

parseType

JCTree.JCExpression parseType()
Parse a type.

Returns:
an expression for a type