public abstract static class Translet.StorageWrapper<S> extends Translet.Parser<S>
Translet.State
object
is the immediate predecessor of the state of the StorageWrapper.
The storage operation is not performed when parsing, but later, ex-parte-post,
when one of the solutions (=complete and rest-less parsing trees) will have been
been selected.Modifier and Type | Field and Description |
---|---|
protected Translet.Parser<S> |
sub |
Modifier | Constructor and Description |
---|---|
protected |
StorageWrapper(Translet.Parser<S> sub) |
Modifier and Type | Method and Description |
---|---|
Format |
name(boolean full,
Map<Translet.Recursive,String> names)
Returns a user-readable text representation.
|
Set<Translet.State<S>> |
parseOneState(Translet.State<?> inState,
Set<Translet.Alternative> alternatives)
Simply memorizes this parser by inserting a new state after the
states resulting from the sub-parser.
|
protected abstract Format |
storageName()
Return an identity indication for the storage container object.
|
executeStoring, isTerminal, mparse, name, parseEpsilon, stripOpt, toString, toString, unparse, wrapResult
protected Translet.Parser<S> sub
protected StorageWrapper(Translet.Parser<S> sub)
public Set<Translet.State<S>> parseOneState(Translet.State<?> inState, Set<Translet.Alternative> alternatives)
parseOneState
in class Translet.Parser<S>
public Format name(boolean full, Map<Translet.Recursive,String> names)
Translet.Parser
name
in class Translet.Parser<S>
full
- whether storage constructs do appear in the rendering.names
- a map for managing the renderings of recursive callsprotected abstract Format storageName()