| Prev Class | Next Class | Frames | No Frames |
| Summary: Nested | Field | Method | Constr | Detail: Nested | Field | Method | Constr |
java.lang.Objectsleep.parser.Rulepublic class Ruleextends ObjectField Summary | |
static int | |
static int | |
protected LinkedList | |
protected LinkedList | |
Constructor Summary | |
| |
| |
| |
Method Summary | |
Rule |
|
char |
|
char |
|
SyntaxError | |
int |
|
boolean | |
boolean |
|
boolean |
|
boolean |
|
String |
|
void |
|
void |
|
String |
|
public static int PRESERVE_ENTITY
public static int PRESERVE_SINGLE
protected LinkedList close
protected LinkedList open
public Rule()
public Rule(String errorDesc1,
String errorDesc2,
char l,
char r)public Rule(String errorDesc,
char s)public char getLeft()
public char getRight()
public int getType()
public boolean isBalanced()
public boolean isLeft(char n)
public boolean isMatch(char n)
public boolean isRight(char n)
public String toString()
public void witnessClose(Token token)
Used to keep track of closing braces to check balance later on
public void witnessOpen(Token token)
Used to keep track of opening braces to check balance later on
public String wrap(String value)