toBeParsed
Modifier | Constructor and Description |
---|---|
protected |
Choose1()
Standard constructor
|
|
Choose1(LineToParse l,
Token... opts)
Standard constructor with line to parse
|
|
Choose1(Token... opts)
normal call that specifies possible tokens to see
|
Modifier and Type | Method and Description |
---|---|
boolean |
canParse()
can this token be parsed? is the next character
of toBeParsed consistent with the requested parsing task?
no changes to LineToParse are made
|
void |
consumeToken()
consume the next token if canParse()==true ; token is stored
in LinetoParse object
|
java.lang.String |
getEmsg() |
Choose1 |
klone(LineToParse l)
return copy of 'this'
|
void |
parse()
actually parse toBeParsed given requested parsing task
|
setLineToParse
protected Choose1()
public Choose1(Token... opts)
opts
- -- tokens that could follow at this point in a parsepublic Choose1(LineToParse l, Token... opts)
l
- -- line to parseopts
- -- tokens that could follow at this point in a parsepublic boolean canParse()
Token
public void consumeToken()
Token
consumeToken
in class Token
public void parse()
Token
public Choose1 klone(LineToParse l)
Token