public class NonEmptyList extends Token
toBeParsed
Constructor and Description |
---|
NonEmptyList(Token node,
Token comma,
boolean skipComma)
Standard constructor
|
NonEmptyList(Token node,
Token comma,
LineToParse l,
boolean skipComma)
Standard constructor with line to parse
|
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()
assuming canParse has been called, consume the next token;
parsed token is stored in LinetoParse object
|
java.lang.String |
getEmsg() |
NonEmptyList |
klone(LineToParse l)
return copy of 'this'
|
void |
parse()
actually parse toBeParsed given requested parsing task
|
getTokenString, setLineToParse
public NonEmptyList(Token node, Token comma, boolean skipComma)
node
- -- token that appears in a listcomma
- -- token separator that is usedskipComma
- -- true means comma should be skipped, not saved.public NonEmptyList(Token node, Token comma, LineToParse l, boolean skipComma)
node
- -- token that appears in a listcomma
- -- token separator that is usedl
- -- line to parseskipComma
- -- should comma be skipped or saved?public boolean canParse()
Token
public void consumeToken()
Token
consumeToken
in class Token
public void parse()
Token
public NonEmptyList klone(LineToParse l)
Token