net.sf.japaki.self
Interface ParserBean
- All Known Implementing Classes:
- BeanParserBean, ChoiceParserBean, ConstantParserBean, FixedParserBean, LeafParserBean, OptionalParserBean
public interface ParserBean
Bean to store parser parameters before creating it.
|
Method Summary |
|
toParser(Inspector<?,T> inspector)
Creates a parser from the information stored in the bean. |
toParser
<T> Parser<? super T> toParser(Inspector<?,T> inspector)
- Creates a parser from the information stored in the bean.
- Parameters:
inspector - necessary context information
- Returns:
- the new parser
- Throws:
NullPointerException - if a parameter that is necessary to
create the parser is null
IllegalArgumentException - if a property of this bean has a
value that can not be used to create a parser
NoSuchPropertyException - if the property for a name could not be
found