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