public abstract class VerbStepPredicate
extends java.lang.Object
VerbPathStep
. A predicate can be
used to filter out nodes. When a node in a graph is to be accessed, only
the nodes whose predicates are true will be accessed.Modifier and Type | Field and Description |
---|---|
static java.lang.String |
CLASS_NAME
Name of this class
|
static java.lang.String |
COPYRIGHT
IBM Copyright notice field.
|
Constructor and Description |
---|
VerbStepPredicate(java.lang.String aVariableName,
java.lang.Object aVariableValue) |
Modifier and Type | Method and Description |
---|---|
boolean |
equals(java.lang.Object o)
Compares this instance with a given instance.
|
abstract boolean |
evaluate(java.lang.Object node)
Computes whether the predicate is true against the given node
|
java.lang.String |
getSymbol() |
java.lang.String |
getVariableName() |
java.lang.Object |
getVariableValue() |
int |
hashCode()
Returns a hash value for an instance of VerbAction
|
java.lang.String |
toString() |
public static final java.lang.String COPYRIGHT
public static final java.lang.String CLASS_NAME
public VerbStepPredicate(java.lang.String aVariableName, java.lang.Object aVariableValue)
aVariableName
- The name of the predicate variable. Since a predicate
can be null, the name can be null.aVariableValue
- The value of the predicate.public java.lang.String getSymbol()
public abstract boolean evaluate(java.lang.Object node)
node
- the node that will be tested against the predicatepublic java.lang.String toString()
toString
in class java.lang.Object
public java.lang.String getVariableName()
public java.lang.Object getVariableValue()
public final boolean equals(java.lang.Object o)
Object.equals(java.lang.Object)
equals
in class java.lang.Object
o
- the object to be compared withpublic int hashCode()
hashCode
in class java.lang.Object