|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectgui.highlighting.Symbol
public class Symbol
A Symbol represents the information shared between similar tokens, i.e. their type and spelling.
Field Summary | |
---|---|
java.lang.String |
name
The spelling. |
int |
type
The type is a small integer used to classify symbols. |
Constructor Summary | |
---|---|
Symbol(int type,
java.lang.String name)
Construct a symbol from its type and name. |
Method Summary | |
---|---|
boolean |
equals(java.lang.Object obj)
Compare the type and name with some other symbol. |
int |
hashCode()
Form a hash value from the type and name. |
java.lang.String |
toString()
Return 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 java.lang.String name
Constructor Detail |
---|
public Symbol(int type, java.lang.String name)
Method Detail |
---|
public java.lang.String toString()
toString
in class java.lang.Object
public int hashCode()
hashCode
in class java.lang.Object
public boolean equals(java.lang.Object obj)
equals
in class java.lang.Object
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |