|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectnet.sf.parcinj.TerminalSymbolType
public class TerminalSymbolType
Class representing a token type which is a terminal symbol.
| Method Summary | |
|---|---|
java.lang.String |
asString()
Returns the text representation of the terminal symbol. |
static TerminalSymbolType |
delimiter(java.lang.String delimiter)
Creates a terminal symbol type which is a delimiter. |
boolean |
isKeyWord()
Returns true if this is a key word. |
static TerminalSymbolType |
keyWord(java.lang.String keyWord)
Creates a terminal symbol type which is a key word. |
java.lang.String |
toString()
Returns asString(). |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Method Detail |
|---|
public static final TerminalSymbolType keyWord(java.lang.String keyWord)
keyWord and true
for asString() and isKeyWord(), respectively.
public static final TerminalSymbolType delimiter(java.lang.String delimiter)
delimiter and false
for asString() and isKeyWord(), respectively.
public java.lang.String asString()
Lexer classes for parsing.
public boolean isKeyWord()
true if this is a key word.
public java.lang.String toString()
asString().
toString in class java.lang.Object
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||