public class WriteAction extends Action
| Constructor and Description |
|---|
WriteAction(StreamTokenizer tok)
constructs a new WriteAction by reading from StreamTokenizer tok.
|
WriteAction(StringExpression message)
constructs a new WriteAction, given a message
|
| Modifier and Type | Method and Description |
|---|---|
int |
perform(Document doc,
PatternApplication patap)
performs the "write" action, writing the message to standard output.
|
String |
toString()
returns a printable form of the "write" action, consisting of
"write" followed by the elements of the message, separated by "+".
|
public WriteAction(StringExpression message)
public WriteAction(StreamTokenizer tok) throws IOException, PatternSyntaxError
IOExceptionPatternSyntaxErrorpublic int perform(Document doc, PatternApplication patap)
Copyright © 2016 New York University. All rights reserved.