package net.pterodactylus.sone.text;
import java.io.IOException;
+import java.io.StringWriter;
import java.io.Writer;
import java.util.ArrayList;
import java.util.List;
}
}
+ //
+ // OBJECT METHODS
+ //
+
+ @Override
+ public String toString() {
+ StringWriter stringWriter = new StringWriter();
+ try {
+ render(stringWriter);
+ } catch (IOException ioe1) {
+ /* should never throw, ignore. */
+ }
+ return stringWriter.toString();
+ }
+
}
package net.pterodactylus.sone.text;
import java.io.IOException;
+import java.io.StringWriter;
import java.io.Writer;
import net.pterodactylus.util.template.Template;
template.render(templateContext.mergeContext(template.getInitialContext()), writer);
}
+ //
+ // OBJECT METHODS
+ //
+
+ @Override
+ public String toString() {
+ StringWriter stringWriter = new StringWriter();
+ try {
+ render(stringWriter);
+ } catch (IOException ioe1) {
+ /* should never throw, ignore. */
+ }
+ return stringWriter.toString();
+ }
+
}