public abstract class Criterion extends GTIngredient
Red (tfeng) |
Yellow (tfeng) |
GTIngredient.FieldIterator
FIELD_SEPARATOR
Constructor and Description |
---|
Criterion(GTIngredientList owner,
int elementCount)
Construct a criterion within the given list as its owner containing a
given number of elements.
|
Modifier and Type | Method and Description |
---|---|
boolean |
canCheck(NamedObj object)
Return whether this criterion can check the given object.
|
abstract boolean |
match(NamedObj object)
Test whether the given object in the host model matches the object in
the pattern that has this criterion.
|
_decodeBooleanField, _decodeStringField, _encodeBooleanField, _encodeStringField, _escapeElementString, _findMatchingParen, _findSeparator, _unescapeElementString, disableAll, enableAll, getElements, getOwner, getValue, getValues, isApplicable, isEnabled, setEnabled, setValue, setValues, toString, validate
public Criterion(GTIngredientList owner, int elementCount)
owner
- The list as the owner of the constructed GTIngredientList.elementCount
- The number of elements that the GTIngredient has.public boolean canCheck(NamedObj object)
object
- The object.public abstract boolean match(NamedObj object)
object
- The object.