Jet.Pat
Class WriteAction

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

public class WriteAction
extends Action

the encoding of the "write message" action, where message is a StringExpression (one or more strings or variables).


Constructor Summary
WriteAction(java.io.StreamTokenizer tok)
          constructs a new WriteAction by reading from StreamTokenizer tok.
WriteAction(StringExpression message)
          constructs a new WriteAction, given a message
 
Method Summary
 int perform(Document doc, PatternApplication patap)
          performs the "write" action, writing the message to standard output.
 java.lang.String toString()
          returns a printable form of the "write" action, consisting of "write" followed by the elements of the message, separated by "+".
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

WriteAction

public WriteAction(StringExpression message)
constructs a new WriteAction, given a message


WriteAction

public WriteAction(java.io.StreamTokenizer tok)
            throws java.io.IOException,
                   PatternSyntaxError
constructs a new WriteAction by reading from StreamTokenizer tok. The input should be the token "write" (the current token) followed by a StringExpression: one or more strings or variables, separated by "+".

Method Detail

perform

public int perform(Document doc,
                   PatternApplication patap)
performs the "write" action, writing the message to standard output.

Specified by:
perform in class Action

toString

public java.lang.String toString()
returns a printable form of the "write" action, consisting of "write" followed by the elements of the message, separated by "+".

Specified by:
toString in class Action