|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectjess.Value
jess.BindingValue
A class to represent a location within a rule LHS, used internally. It is 'self-resolving' using Context. You shouldn't need to use this directly except the implement an Accelerator.
(C) 2003 E.J. Friedman-Hill and the Sandia Corporation
$Id: BindingValue.java,v 1.6.2.2 2003/07/08 13:53:51 ejfried Exp $
| Method Summary | |
java.lang.String |
atomValue(Context c)
Returns the contents of this value, as an atom |
boolean |
equals(Value o)
Compare this value to another value. |
java.lang.Object |
externalAddressValue(Context c)
Returns the contents of this value, as an external adress object |
Fact |
factValue(Context c)
Returns the contents of this value, as a fact |
double |
floatValue(Context c)
Returns the contents of this value, as a number |
int |
getFactNumber()
|
java.lang.String |
getName()
|
int |
getSlotIndex()
|
int |
getSubIndex()
|
int |
getType()
|
int |
hashCode()
Return a hashcode for the object |
int |
intValue(Context c)
Returns the contents of this value, as an int |
ValueVector |
listValue(Context c)
Returns the contents of this value, as a list |
double |
numericValue(Context c)
Returns the contents of this value, as a number |
void |
resetFactNumber()
|
Value |
resolveValue(Context c)
Given an evaluation context, return the "true value" of this Value. |
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 |
java.lang.String |
variableValue(Context c)
Returns the contents of this value, as a String (a variable name) |
| Methods inherited from class jess.Value |
equals, equalsStar, funcallValue, longValue, toStringWithParens, type |
| Methods inherited from class java.lang.Object |
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
| Method Detail |
public void resetFactNumber()
public java.lang.String getName()
public int getFactNumber()
public int getSlotIndex()
public int getSubIndex()
public int getType()
public Value resolveValue(Context c)
throws JessException
Value
resolveValue in class Valuec - An execution context. You can pass null if you are sure
that you're not calling this method on a subclass that uses the
argument.
JessExceptionVariable,
Funcall
public final java.lang.Object externalAddressValue(Context c)
throws JessException
Value
externalAddressValue in class ValueJessException - If this value does not contain an object
public final Fact factValue(Context c)
throws JessException
Value
factValue in class ValueJessException - If this value does not contain a fact
public final ValueVector listValue(Context c)
throws JessException
Value
listValue in class ValueJessException - If this value does not contain a list
public final int intValue(Context c)
throws JessException
Value
intValue in class ValueJessException - If this value does not contain any kind of number
public final double floatValue(Context c)
throws JessException
Value
floatValue in class ValueJessException - If this value does not contain any kind of number
public final double numericValue(Context c)
throws JessException
Value
numericValue in class ValueJessException - If this value does not contain any kind of number
public final java.lang.String atomValue(Context c)
throws JessException
Value
atomValue in class ValueJessException - If this value does not contain any kind of String
public final java.lang.String variableValue(Context c)
throws JessException
Value
variableValue in class ValueJessException - If this value does not contain a variable
public final java.lang.String stringValue(Context c)
throws JessException
Value
stringValue in class ValueJessException - If this value does not contain any kind of Stringpublic java.lang.String toString()
Value
toString in class Valuepublic int hashCode()
Value
hashCode in class Valuepublic boolean equals(Value o)
Value
equals in class Valueo - 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 | |||||||||