|
Data Request Broker 2-3-release |
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectfr.gael.drb.query.TokenElement
public class TokenElement
Simple class to represent a lexical token. This wraps the QueryParserConstants used by the scanner to provide a convenient class that can be stored as a attribute value.
| Field Summary | |
|---|---|
static Object |
TOKEN_ATTRIBUTE
Key to be used in AttributeSet's holding a value of TokenElement. |
| Method Summary | |
|---|---|
boolean |
equals(Object obj)
Compares this object to the specifed object. |
String |
getCategory()
Specifies the category of the token as a string that can be used as a label. |
Color |
getColor()
TokenElement color accessor. |
Font |
getFont()
TokenElement font accessor. |
int |
getScanValue()
Numeric value of this token. |
Style |
getStyle()
TokenElement style accessor. |
int |
hashCode()
Returns a hashcode for this set of attributes. |
void |
setFont(Font new_font)
Sets the new font of this token. |
void |
setStyle(Style style)
Sets this token style. |
String |
toString()
A human presentable form of the token, useful for things like lists, debugging, etc. |
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
public static final Object TOKEN_ATTRIBUTE
| Method Detail |
|---|
public String toString()
toString in class Objectpublic int getScanValue()
public Color getColor()
public Font getFont()
public void setFont(Font new_font)
new_font - the font to be set.public void setStyle(Style style)
style - the style to be associated with this token.public Style getStyle()
public String getCategory()
public final int hashCode()
hashCode in class Objectpublic final boolean equals(Object obj)
true if and only if the argument is not null
and is a Font object with the same name, style, and point
size as this font.
equals in class Objectobj - the object to compare this font with.
true if the objects are equal; false
otherwise.
|
Data Request Broker - DRB API® 2-3-release |
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||