Package eu.bandm.tscore.base
Class Translet.StorageWrapper<S>
java.lang.Object
eu.bandm.tscore.base.Translet.Parser<S>
eu.bandm.tscore.base.Translet.StorageWrapper<S>
- Direct Known Subclasses:
Translet.Store_1
,Translet.Store_I
,Translet.Store_M
- Enclosing class:
- Translet
Common superclass of the storing oeprators. Its direct sub-parser
calculates the result for storing and its type must match the
storage object (Map or Multimap). The corresponding
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.-
Field Summary
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionname
(boolean full, Map<Translet.Recursive, String> names) Returns a user-readable text representation.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
Return an identity indication for the storage container object.Methods inherited from class eu.bandm.tscore.base.Translet.Parser
executeStoring, isTerminal, mparse, name, parseEpsilon, stripOpt, toString, toString, unparse
-
Field Details
-
sub
-
-
Constructor Details
-
StorageWrapper
-
-
Method Details
-
parseOneState
public 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.- Specified by:
parseOneState
in classTranslet.Parser<S>
-
name
Description copied from class:Translet.Parser
Returns a user-readable text representation. This is in most cases, but not always, source text to construct the parser.- Specified by:
name
in classTranslet.Parser<S>
- Parameters:
full
- whether storage constructs do appear in the rendering.names
- a map for managing the renderings of recursive calls
-
storageName
Return an identity indication for the storage container object.
-