|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.modeshape.sequencer.ddl.DdlParsers
public class DdlParsers
A parser of DDL file content. This class can be used directly to create an AstNode
tree representing nodes and
properties for DDL statement components.
You can also provide an input or parent AstNode
node as the starting point for your tree.
The parser is based on the SQL-92 and extended by specific dialects. These dialect-specific parsers provide db-specific parsing of db-specific statements of statement extensions, features or properties.
Constructor Summary | |
---|---|
DdlParsers()
|
Method Summary | |
---|---|
AstNode |
parse(String ddl)
Parses input ddl string and adds discovered child AstNode s and properties to a new root node. |
boolean |
parse(String ddl,
AstNode rootNode)
Parses input ddl string and adds discovered child AstNode s and properties. |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public DdlParsers()
Method Detail |
---|
public AstNode parse(String ddl) throws ParsingException
AstNode
s and properties to a new root node.
ddl
- content string; may not be null
AstNode
ParsingException
public boolean parse(String ddl, AstNode rootNode) throws ParsingException
AstNode
s and properties.
ddl
- content string; may not be nullrootNode
- the root AstNode
; may not be null
ParsingException
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |