PassthroughParser class
A no-op String parser.
class PassthroughParser implements Parser<String> { static PassthroughParser _instance; /** * Returns the instance of the no-op renderer. */ factory PassthroughParser.instance() { if (_instance == null) { _instance = new PassthroughParser(); } return _instance; } PassthroughParser(); String parse(String text) { return text; } }
Implements
Constructors
new PassthroughParser() #
factory PassthroughParser.instance() #
Returns the instance of the no-op renderer.
factory PassthroughParser.instance() { if (_instance == null) { _instance = new PassthroughParser(); } return _instance; }
Methods
String parse(String text) #
String parse(String text) { return text; }