|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object jwo.utils.syntaxhighlighter.Symbol
public class Symbol
A Symbol represents the information shared between similar tokens, that is their type and spelling.
Field Summary | |
---|---|
String |
name
The spelling. |
int |
type
Classifies the symbol and distinguishes different symbols with the same spelling, where necessary. |
Constructor Summary | |
---|---|
Symbol(int type,
String name)
Creates a symbol from its type and name. |
Method Summary | |
---|---|
boolean |
equals(Object obj)
Compares the type and name with some other symbol. |
int |
hashCode()
Creates a unique hash value from the type and name. |
String |
toString()
Reports the name of the symbol. |
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
public int type
public String name
Constructor Detail |
---|
public Symbol(int type, String name)
type
- Type of symbol to create.name
- Name (spelling) of symbol.Method Detail |
---|
public String toString()
toString
in class Object
public int hashCode()
hashCode
in class Object
public boolean equals(Object obj)
equals
in class Object
obj
- Other object with which to compare this one.
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |