Jet.Pat
Class AddFeaturesAction

java.lang.Object
  extended byJet.Pat.Action
      extended byJet.Pat.AddFeaturesAction

public class AddFeaturesAction
extends Action

the action (in a when statement) for adding features to an existing Annotation.


Constructor Summary
AddFeaturesAction(FeatureSet fs, Variable sv)
           
AddFeaturesAction(java.io.StreamTokenizer tok)
          creates an AddFeaturesAction from the input processed by StreamTokenizer tok, which should have the form
addfeatures [type feature=value feature=value ...] to annotationVariable
 
Method Summary
 int perform(Document doc, PatternApplication patap)
          performs the action, adding the specified Annotation.
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

AddFeaturesAction

public AddFeaturesAction(FeatureSet fs,
                         Variable sv)

AddFeaturesAction

public AddFeaturesAction(java.io.StreamTokenizer tok)
                  throws java.io.IOException,
                         PatternSyntaxError
creates an AddFeaturesAction from the input processed by StreamTokenizer tok, which should have the form
addfeatures [type feature=value feature=value ...] to annotationVariable

Method Detail

perform

public int perform(Document doc,
                   PatternApplication patap)
performs the action, adding the specified Annotation. Returns the position of the end of the Annotation.

Specified by:
perform in class Action

toString

public java.lang.String toString()
Specified by:
toString in class Action