public class RightParenPush extends FixedStringToken
Modifier and Type | Field and Description |
---|---|
static char |
toc |
static java.lang.String |
tok |
static int |
toklen |
toBeParsed
Constructor and Description |
---|
RightParenPush()
Standard constructor
|
RightParenPush(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.
|
RightParenPush |
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 int toklen
public static final char toc
public RightParenPush()
public RightParenPush(LineToParse l)
l
- -- line to parsepublic boolean canParse()
Token
canParse
in class FixedStringToken
public void consumeToken()
Token
consumeToken
in class FixedStringToken
public java.lang.String getTokenString()
Token
getTokenString
in class FixedStringToken
public void parse()
Token
parse
in class FixedStringToken
public RightParenPush klone(LineToParse l)
Token