|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface Parser
Common interface for calling tree-building parsers or source files.
| Method Summary | |
|---|---|
boolean |
canParse()
Indicates if this parser can actual parse, or if it can only tokenize. |
ParserOptions |
getParserOptions()
Get the ParserOptions used by this Parser. |
Map<Integer,String> |
getSuppressMap()
|
TokenManager |
getTokenManager(String fileName,
Reader source)
Get a TokenManager for the given source. |
Node |
parse(String fileName,
Reader source)
Parse source code and return the root node of the AST. |
| Method Detail |
|---|
ParserOptions getParserOptions()
TokenManager getTokenManager(String fileName,
Reader source)
fileName - The file name being parsed (may be null).source - Reader that provides the source code to tokenize.
boolean canParse()
Node parse(String fileName,
Reader source)
throws ParseException
fileName - The file name being parsed (may be null).source - Reader that provides the source code of a compilation unit
ParseException - In case the source code could not be parsed, probably
due to syntactical errors.Map<Integer,String> getSuppressMap()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||