public class VerbStepIndexPredicate extends VerbStepPredicate
java.util.List
. An index starts from
0.Modifier and Type | Field and Description |
---|---|
static java.lang.String |
CLASS_NAME
Name of this class
|
static java.lang.String |
COPYRIGHT
IBM Copyright
|
Constructor and Description |
---|
VerbStepIndexPredicate(int index)
Constructs an instance of this predicate
|
VerbStepIndexPredicate(java.lang.Integer index)
Constructs an instance of this predicate
|
Modifier and Type | Method and Description |
---|---|
boolean |
evaluate(java.lang.Object index)
Evaluates a given index.
|
equals, getSymbol, getVariableName, getVariableValue, hashCode, toString
public static final java.lang.String COPYRIGHT
public static final java.lang.String CLASS_NAME
public VerbStepIndexPredicate(java.lang.Integer index)
index
- the expected indexpublic VerbStepIndexPredicate(int index)
index
- the expected indexpublic boolean evaluate(java.lang.Object index)
evaluate
in class VerbStepPredicate
index
- the node that will be tested against the predicateVerbStepPredicate.evaluate(java.lang.Object)