net.sf.japaki.kit
Class FixedFormatMold<V>
java.lang.Object
net.sf.japaki.kit.LeafParserMold<V>
net.sf.japaki.kit.FixedFormatMold<V>
- All Implemented Interfaces:
- ParserMold<V>
public class FixedFormatMold<V>
- extends LeafParserMold<V>
Parser mold based on a constant format.
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
FixedFormatMold
public FixedFormatMold(Class<V> targetType,
Format format)
- Constructs a new fixed format mold.
- Parameters:
targetType - the target type of the parsers created by this moldformat - the format of the created leaf parsers
- Throws:
NullPointerException - if targetType is null.
getFormat
protected Format getFormat(String pattern)
- Not implemented.
- Specified by:
getFormat in class LeafParserMold<V>
- Parameters:
pattern - ignored
- Returns:
- format of the parser to be created
- Throws:
IllegalArgumentException - always