public class Parser extends Object implements ParserTreeConstants, ParserConstants
Modifier and Type | Field and Description |
---|---|
Token |
jj_nt
Next token.
|
protected JJTParserState |
jjtree |
Token |
token
Current token.
|
ParserTokenManager |
token_source
Generated Token Manager.
|
JJTCOMMANDLINE, JJTEXPRESSION, jjtNodeName, JJTOPAQUEARGUMENT, JJTPLAINARGUMENT, JJTQUOTEDARGUMENT, JJTVOID, JJTWHITESPACE
COMMENT, DEFAULT, EOF, OPAQUE_STRING, QUOTED_STRING, STRING, tokenImage, WHITESPACE
Constructor and Description |
---|
Parser() |
Parser(InputStream stream)
Constructor with InputStream.
|
Parser(InputStream stream,
String encoding)
Constructor with InputStream and supplied encoding
|
Parser(ParserTokenManager tm)
Constructor with generated Token Manager.
|
Parser(Reader stream)
Constructor.
|
Modifier and Type | Method and Description |
---|---|
void |
argument() |
ASTCommandLine |
commandLine() |
void |
disable_tracing()
Disable tracing.
|
void |
enable_tracing()
Enable tracing.
|
void |
expression() |
ParseException |
generateParseException()
Generate ParseException.
|
Token |
getNextToken()
Get the next Token.
|
Token |
getToken(int index)
Get the specific Token.
|
void |
opaqueArgument() |
ASTCommandLine |
parse(Reader reader) |
void |
plainArgument() |
void |
quotedArgument() |
void |
ReInit(InputStream stream)
Reinitialise.
|
void |
ReInit(InputStream stream,
String encoding)
Reinitialise.
|
void |
ReInit(ParserTokenManager tm)
Reinitialise.
|
void |
ReInit(Reader stream)
Reinitialise.
|
void |
whitespace() |
protected JJTParserState jjtree
public ParserTokenManager token_source
public Token token
public Token jj_nt
public Parser()
public Parser(InputStream stream)
public Parser(InputStream stream, String encoding)
public Parser(Reader stream)
public Parser(ParserTokenManager tm)
public ASTCommandLine parse(Reader reader) throws ParseException
ParseException
public final ASTCommandLine commandLine() throws ParseException
ParseException
public final void expression() throws ParseException
ParseException
public final void whitespace() throws ParseException
ParseException
public final void argument() throws ParseException
ParseException
public final void quotedArgument() throws ParseException
ParseException
public final void opaqueArgument() throws ParseException
ParseException
public final void plainArgument() throws ParseException
ParseException
public void ReInit(InputStream stream)
public void ReInit(InputStream stream, String encoding)
public void ReInit(Reader stream)
public void ReInit(ParserTokenManager tm)
public final Token getNextToken()
public final Token getToken(int index)
public ParseException generateParseException()
public final void enable_tracing()
public final void disable_tracing()
Copyright © 2008-2012 Sonatype. All Rights Reserved.