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"
-
-
Field Summary
-
Fields inherited from class org.antlr.stringtemplate.language.Expr
enclosingTemplate, indentation
-
-
Constructor Summary
Constructors Constructor Description StringRef(StringTemplate enclosingTemplate, java.lang.String str)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.String
toString()
int
write(StringTemplate self, StringTemplateWriter out)
Just print out the string; no reference to self because this is a literal--not sensitive to attribute values.-
Methods inherited from class org.antlr.stringtemplate.language.Expr
getEnclosingTemplate, getIndentation, setIndentation
-
-
-
-
Constructor Detail
-
StringRef
public StringRef(StringTemplate enclosingTemplate, java.lang.String str)
-
-
Method Detail
-
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. These strings never wrap because they are not part of an <...> expression. <"foo"; wrap="\n"> should wrap though if necessary.
-
toString
public java.lang.String toString()
- Overrides:
toString
in classjava.lang.Object
-
-