|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectnet.sf.japaki.kit.SuperParserMold<T,B,V>
public abstract class SuperParserMold<T,B,V>
Parser mold for parsers that have subparses.
Constructor Summary | |
---|---|
protected |
SuperParserMold(Class<T> targetType,
Property<B,V> property,
Factory<? extends T> factory)
Constructs a generic parser mold from the given arguments. |
Method Summary | |
---|---|
protected ParserMold<T> |
createMold(Parser<? super T> parser)
Creates a new FixedParserMold from the specified parser and
the underlying type and factory. |
abstract ParserMold<T> |
createMold(Parser<B> parser,
Parser<Object> delParser)
Creates a new parser mold. |
protected Factory<? extends T> |
getFactory()
Returns the factory used to create new collections. |
Property<B,V> |
getProperty()
Returns the property to create the sub parser |
Class<T> |
getTargetType()
Returns the target type of the parsers created by this mold. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
protected SuperParserMold(Class<T> targetType, Property<B,V> property, Factory<? extends T> factory)
targetType
- the target type of the parsers created by this moldproperty
- the property to create the sub parserfactory
- the factory used to create new collections
NullPointerException
- if any parameter is null
.Method Detail |
---|
public Class<T> getTargetType()
public Property<B,V> getProperty()
protected Factory<? extends T> getFactory()
protected ParserMold<T> createMold(Parser<? super T> parser)
FixedParserMold
from the specified parser and
the underlying type and factory.
parser
- fixed parser of the mold
public abstract ParserMold<T> createMold(Parser<B> parser, Parser<Object> delParser)
parser
- sub- or element parserdelParser
- delimiter parser
NullPointerException
- if parser is null
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |