|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjess.Value
jess.LongValue
A class to represent a Java long.
(C) 1998 E.J. Friedman-Hill and the Sandia Corporation
Constructor Summary | |
LongValue(long l)
Create a LongValue |
Method Summary | |
boolean |
equals(Value v)
Compare this value to another value. |
int |
intValue(Context c)
Returns the contents of this value, as an int |
long |
longValue(Context c)
Returns the contents of this value, as a long |
double |
numericValue(Context c)
Returns the contents of this value, as a number |
java.lang.String |
stringValue(Context c)
Returns the contents of this value, as a String |
java.lang.String |
toString()
Pretty-print this value, without adding parens to any lists |
Methods inherited from class jess.Value |
atomValue, equals, equalsStar, externalAddressValue, factValue, floatValue, funcallValue, hashCode, listValue, resolveValue, toStringWithParens, type, variableValue |
Methods inherited from class java.lang.Object |
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
Constructor Detail |
public LongValue(long l) throws JessException
l
- The long value
JessException
- If the type is invalidMethod Detail |
public final long longValue(Context c) throws JessException
Value
longValue
in class Value
JessException
- If this value does not contain any kind of numberpublic final double numericValue(Context c) throws JessException
Value
numericValue
in class Value
JessException
- If this value does not contain any kind of numberpublic final int intValue(Context c) throws JessException
Value
intValue
in class Value
JessException
- If this value does not contain any kind of numberpublic final java.lang.String stringValue(Context c) throws JessException
Value
stringValue
in class Value
JessException
- If this value does not contain any kind of Stringpublic final java.lang.String toString()
Value
toString
in class Value
public final boolean equals(Value v)
Value
equals
in class Value
v
- The Value to compare to.
|
© 2001 E.J. Friedman-Hill and Sandia Corporation | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |