public class NonEmptyList extends Token
toBeParsed| Constructor and Description |
|---|
NonEmptyList(Token node,
Token comma)
Standard constructor
|
NonEmptyList(Token node,
Token comma,
LineToParse l)
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()
consume the next token if canParse()==true ; 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
|
setLineToParsepublic NonEmptyList(Token node, Token comma)
node - -- token that appears in a listcomma - -- token separator that is usedpublic NonEmptyList(Token node, Token comma, LineToParse l)
node - -- token that appears in a listcomma - -- token separator that is usedl - -- line to parsepublic boolean canParse()
Tokenpublic void consumeToken()
TokenconsumeToken in class Tokenpublic void parse()
Tokenpublic NonEmptyList klone(LineToParse l)
Token