|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Object
|
+--jess.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 valueJessException - If the type is invalid| Method Detail |
public final long longValue(Context c)
throws JessException
ValuelongValue in class Valuejess.ValueJessException - If this value does not contain any kind of number
public final double numericValue(Context c)
throws JessException
ValuenumericValue in class Valuejess.ValueJessException - If this value does not contain any kind of number
public final int intValue(Context c)
throws JessException
ValueintValue in class Valuejess.ValueJessException - If this value does not contain any kind of number
public final java.lang.String stringValue(Context c)
throws JessException
ValuestringValue in class Valuejess.ValueJessException - If this value does not contain any kind of Stringpublic final java.lang.String toString()
ValuetoString in class Valuejess.Valuepublic final boolean equals(Value v)
Valueequals in class Valuejess.Valuev - The Value to compare to.
|
© 1997 E.J. Friedman-Hill and Sandia Corporation | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||