|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface DdlParser

Interface for parsing DDL files.
| Method Summary | |
|---|---|
String |
getId()
Get the identifier for this parser. |
void |
parse(String ddl,
AstNode rootNode,
Object scoreReturnObject)
Parses a DDL string, adding child AstNodes and properties to the supplied root. |
Object |
score(String ddl,
String fileName,
DdlParserScorer scorer)
Determine this parser's score for the given DDL string. |
| Method Detail |
|---|
Object score(String ddl,
String fileName,
DdlParserScorer scorer)
throws ParsingException
parse(String, AstNode, Object) method.
ddl - the input string to parse; may not be nullfileName - the name of the DDL content, which may be used to improve the score; may be null if not knownscorer - the scorer that should be used to record the score; may not be null
parse(String, AstNode,Object) method
ParsingException - if there is an error parsing the supplied DDL content
void parse(String ddl,
AstNode rootNode,
Object scoreReturnObject)
throws ParsingException
AstNodes and properties to the supplied root. This method instantiates the
tokenizer, calls a method to allow subclasses to register keywords and statement start phrases with the tokenizer and
finally performs the tokenizing (i.e. tokens.start()) before calling the actual parse method.
ddl - the input string to parse; may not be nullrootNode - the top level AstNode; may not be nullscoreReturnObject - the object returned from score(String, String, DdlParserScorer) for the same DDL content;
may be null if the score(String, String, DdlParserScorer) method was not called
ParsingException - if there is an error parsing the supplied DDL contentString getId()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||