Package manifold.templates.rt.runtime
Class WrapAppendable
- java.lang.Object
-
- manifold.templates.rt.runtime.WrapAppendable
-
- All Implemented Interfaces:
Appendable
public class WrapAppendable extends Object implements Appendable
Wraps calls toAppendablein the generated template to 1. handleIOExceptions that otherwise are tedious to handle inside lambdas and 2. handle indentation fornesting
-
-
Constructor Summary
Constructors Constructor Description WrapAppendable(Appendable appendable, String indentation)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Appendableappend(char c)Appendableappend(CharSequence csq)Appendableappend(CharSequence csq, int start, int end)
-
-
-
Constructor Detail
-
WrapAppendable
public WrapAppendable(Appendable appendable, String indentation)
-
-
Method Detail
-
append
public Appendable append(CharSequence csq)
- Specified by:
appendin interfaceAppendable
-
append
public Appendable append(CharSequence csq, int start, int end)
- Specified by:
appendin interfaceAppendable
-
append
public Appendable append(char c)
- Specified by:
appendin interfaceAppendable
-
-