org.webmacro.parser
Class ParserBlockBuilder
java.lang.Object
org.webmacro.engine.BlockBuilder
org.webmacro.parser.ParserBlockBuilder
- All Implemented Interfaces:
- Builder
- public class ParserBlockBuilder
- extends BlockBuilder
ParserBlockBuilder extends BlockBuilder, and should only be used by
the WMParser_impl parser. It adds methods for eating trailing
or that precede directives.
It assumes that literal text will not span elements (true for the
current parser) so if the parser changes, this will need to change too.
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ParserBlockBuilder
public ParserBlockBuilder()
ParserBlockBuilder
public ParserBlockBuilder(java.lang.String name)
markLiteral
public final void markLiteral()
- Mark the last character in the block as being a literal (quoted
with backslash) so we don't eat trailing quoted whitespace.
eatTrailingWs
public final void eatTrailingWs()
eatTrailingWsNl
public final void eatTrailingWsNl()
eatTrailingWsNlWs
public final void eatTrailingWsNlWs()
eatOneWs
public final void eatOneWs()
eatLeadingWsNl
public final void eatLeadingWsNl()
directiveOk
public final boolean directiveOk()