jess
Class JessToken
java.lang.Object
jess.JessToken
- All Implemented Interfaces:
- java.io.Serializable
- public final class JessToken
- extends java.lang.Object
- implements java.io.Serializable
A packet of info about a single token parsed from an input stream.
(C) 2006 Sandia National Laboratories
- See Also:
Jesp
,
Tokenizer
,
Serialized Form
Constructor Summary |
JessToken(int start,
int end)
|
JessToken(int start,
int end,
int type,
java.lang.String sval)
|
Methods inherited from class java.lang.Object |
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
NONE_TOK
public static final int NONE_TOK
- See Also:
- Constant Field Values
MULTIVARIABLE_TOK
public static final int MULTIVARIABLE_TOK
- See Also:
- Constant Field Values
VARIABLE_TOK
public static final int VARIABLE_TOK
- See Also:
- Constant Field Values
STRING_TOK
public static final int STRING_TOK
- See Also:
- Constant Field Values
SYMBOL_TOK
public static final int SYMBOL_TOK
- See Also:
- Constant Field Values
INTEGER_TOK
public static final int INTEGER_TOK
- See Also:
- Constant Field Values
FLOAT_TOK
public static final int FLOAT_TOK
- See Also:
- Constant Field Values
COMMENT_TOK
public static final int COMMENT_TOK
- See Also:
- Constant Field Values
REGEXP_TOK
public static final int REGEXP_TOK
- See Also:
- Constant Field Values
LONG_TOK
public static final int LONG_TOK
- See Also:
- Constant Field Values
MULTILINE_COMMENT_TOK
public static final int MULTILINE_COMMENT_TOK
- See Also:
- Constant Field Values
m_sval
public java.lang.String m_sval
m_nval
public double m_nval
m_lval
public long m_lval
m_lineno
public int m_lineno
m_ttype
public int m_ttype
m_start
public int m_start
m_end
public int m_end
JessToken
public JessToken(int start,
int end)
JessToken
public JessToken(int start,
int end,
int type,
java.lang.String sval)
valueOf
public Value valueOf(Context context)
throws JessException
- Throws:
JessException
toString
public java.lang.String toString()
isComment
public boolean isComment()
isEOF
public boolean isEOF()
isVariable
public boolean isVariable()
isLexeme
public boolean isLexeme()
equals
public boolean equals(java.lang.Object o)
hashCode
public int hashCode()