public interface Parser
Modifier and Type | Method and Description |
---|---|
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.
|
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 unitParseException
- In case the source code could not be parsed, probably
due to syntactical errors.Copyright © 2002-2015 InfoEther. All Rights Reserved.