public class StringExpression extends Object
| Constructor and Description |
|---|
StringExpression(StreamTokenizer tok)
creates a new StringExpression from the input read by StreamTokenizer
tok, which should consist of a sequence of strings and
variable names, separated by "+".
|
| Modifier and Type | Method and Description |
|---|---|
String |
evaluate(Document doc,
PatternApplication patap)
evaluates the StringExpression at the time when print or write
action is performed.
|
String |
toString()
produces a printable form of the StringExpression, consisting of
the elements of the expression, separated by "+".
|
public StringExpression(StreamTokenizer tok) throws IOException, PatternSyntaxError
IOExceptionPatternSyntaxErrorpublic String evaluate(Document doc, PatternApplication patap)
Copyright © 2016 New York University. All rights reserved.