org.antlr.stringtemplate.language
Class StringRef
java.lang.Object
org.antlr.stringtemplate.language.Expr
org.antlr.stringtemplate.language.StringRef
- Direct Known Subclasses:
- NewlineRef
- public class StringRef
- extends Expr
Represents a chunk of just simple text to spit out; nothing to "evaluate"
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
StringRef
public StringRef(StringTemplate enclosingTemplate,
java.lang.String str)
write
public int write(StringTemplate self,
StringTemplateWriter out)
throws java.io.IOException
- Just print out the string; no reference to self because this
is a literal--not sensitive to attribute values.
- Specified by:
write
in class Expr
- Throws:
java.io.IOException
toString
public java.lang.String toString()