public static class TerminalNode.ReteVariableAssignments extends java.lang.Object implements IVariableAssignments
Modifier and Type | Field and Description |
---|---|
protected java.util.Map |
assignments
The map with assignments.
|
protected int |
hashcode
The cached hashcode as multi-slots could change and would prevent lookup.
|
Constructor and Description |
---|
ReteVariableAssignments(java.util.Map assignments,
IRule rule)
Create a new variable assignments.
|
Modifier and Type | Method and Description |
---|---|
boolean |
equals(java.lang.Object obj)
Test if an object equals this.
|
java.lang.String[] |
getVariableNames()
Get the variable names.
|
java.lang.Object |
getVariableValue(java.lang.String var)
Get a variable values.
|
int |
hashCode()
Get the hashcode of this object.
|
java.lang.String |
toString()
Get the string representation.
|
protected java.util.Map assignments
protected int hashcode
public ReteVariableAssignments(java.util.Map assignments, IRule rule)
public java.lang.Object getVariableValue(java.lang.String var)
getVariableValue
in interface IVariableAssignments
var
- The variable name.public java.lang.String[] getVariableNames()
getVariableNames
in interface IVariableAssignments
public int hashCode()
hashCode
in class java.lang.Object
public boolean equals(java.lang.Object obj)
equals
in class java.lang.Object
obj
- The object.public java.lang.String toString()
toString
in class java.lang.Object