|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object jwo.utils.expression.Token
public class Token
A simple token for storing a type, value pair. Modified from original code described at www.devx.com/premier/mgznarch/javapro/2001/05may01/ps0105/ps0105.asp.
Constructor Summary | |
---|---|
Token(Object type,
Object value)
Creates a token of the given type storing the given value. |
Method Summary | |
---|---|
Object |
getType()
Reports the type of object stored by token. |
Object |
getValue()
Reports the value of the stored token. |
String |
toString()
Provides a textual description of the object stored by the token. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public Token(Object type, Object value)
type
- Type of token to store.value
- Value of token to store.Method Detail |
---|
public Object getValue()
public Object getType()
public String toString()
toString
in class Object
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |