public class IsVariable extends FixedStringToken
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
IsVar |
static java.lang.String |
tok |
toBeParsed
Constructor and Description |
---|
IsVariable()
Standard constructor
|
IsVariable(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() |
java.lang.String |
getTokenString()
basically this returns the last parsed token.
|
IsVariable |
klone(LineToParse l)
return copy of 'this'
|
void |
parse()
actually parse toBeParsed given requested parsing task
|
setLineToParse
public static final java.lang.String tok
public static final java.lang.String IsVar
public IsVariable()
public IsVariable(LineToParse l)
l
- -- line to parsepublic boolean canParse()
Token
canParse
in class FixedStringToken
public void consumeToken()
Token
consumeToken
in class FixedStringToken
public void parse()
Token
parse
in class FixedStringToken
public java.lang.String getTokenString()
Token
getTokenString
in class FixedStringToken
public IsVariable klone(LineToParse l)
Token