Jet.Pat
Class FeatureTest

java.lang.Object
  extended byJet.Pat.FeatureTest

public class FeatureTest
extends java.lang.Object

representation of a condition on a feature value, represented in the pattern language by ? predicate (argument).


Constructor Summary
FeatureTest(java.io.StreamTokenizer tok)
          creates a FeatureTest from the next tokens in tok.
FeatureTest(java.lang.String predicate, java.lang.Object argument)
          creates a FeatureTest with the specified predicate and argument.
 
Method Summary
 boolean apply(java.lang.Object value)
          returns true if this FeatureTest is satisfied by value.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

FeatureTest

public FeatureTest(java.lang.String predicate,
                   java.lang.Object argument)
creates a FeatureTest with the specified predicate and argument.


FeatureTest

public FeatureTest(java.io.StreamTokenizer tok)
            throws java.io.IOException,
                   PatternSyntaxError
creates a FeatureTest from the next tokens in tok. These should have the form
? predicate ( argument )
where the '?' is the current token on entry, argument is a symbol or integer, and the ')' is the current token on exit.

Method Detail

apply

public boolean apply(java.lang.Object value)
returns true if this FeatureTest is satisfied by value.