|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.xlattice.corexml.expr.Symbol
public class Symbol
These are a subset of what rule [28] calls ExprToken but with the addition of left and right curly brackets (braces), the colon, the dollar sign, and possibly other symbols.
| Field Summary | |
|---|---|
static java.lang.String |
ALL_ONE_CHAR_SYMBOLS
all 1-char symbols, including those which start other symbols |
static int |
AT
|
static int |
COLON
|
static int |
COMMA
|
static int |
DCOLON
|
static int |
DDOT
|
static int |
DOLLAR
|
static int |
DOT
|
static int |
LBRACE
|
static int |
LBRACKET
|
static int |
LPAREN
|
static int |
RBRACE
|
static int |
RBRACKET
|
static int |
RPAREN
|
static java.lang.String |
SINGLE_CHAR_SYMBOLS
those symbols which only appear in one form |
static int |
STAR
|
static java.lang.String[] |
SYMBOLS
list of the symbols in string form in the same order |
| Constructor Summary | |
|---|---|
Symbol(char c)
Create a Symbol from its one-character form. |
|
Symbol(java.lang.String sym)
Create a Symbol given its String form. |
|
| Method Summary | |
|---|---|
boolean |
equals(java.lang.Object o)
|
int |
getIndex()
|
int |
hashCode()
|
static boolean |
isSingleCharSymbol(char c)
|
java.lang.String |
toString()
|
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
public static final int LPAREN
public static final int RPAREN
public static final int LBRACKET
public static final int RBRACKET
public static final int LBRACE
public static final int RBRACE
public static final int AT
public static final int COMMA
public static final int DOLLAR
public static final int STAR
public static final int DOT
public static final int COLON
public static final int DDOT
public static final int DCOLON
public static final java.lang.String[] SYMBOLS
public static final java.lang.String SINGLE_CHAR_SYMBOLS
public static final java.lang.String ALL_ONE_CHAR_SYMBOLS
| Constructor Detail |
|---|
public Symbol(char c)
java.lang.IllegalStateException - if it isn't a valid symbol.public Symbol(java.lang.String sym)
| Method Detail |
|---|
public static boolean isSingleCharSymbol(char c)
public int getIndex()
public boolean equals(java.lang.Object o)
equals in class java.lang.Objectpublic int hashCode()
hashCode in class java.lang.Objectpublic java.lang.String toString()
toString in class java.lang.Object
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||