public class Arrow extends Token
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
tok |
toBeParsed
Constructor and Description |
---|
Arrow()
Standard constructor
|
Arrow(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()
assuming canParse has been called, consume the next token;
parsed token is stored in LinetoParse object
|
java.lang.String |
getEmsg() |
Arrow |
klone(LineToParse l)
return copy of 'this'
|
void |
parse()
actually parse toBeParsed given requested parsing task
|
getTokenString, setLineToParse
public static final java.lang.String tok
public Arrow()
public Arrow(LineToParse l)
l
- -- line to parsepublic boolean canParse()
Token
public void consumeToken()
Token
consumeToken
in class Token
public void parse()
Token
public Arrow klone(LineToParse l)
Token