Package com.impossibl.postgres.jdbc
Class SQLTextTree.CompositeNode
- java.lang.Object
-
- com.impossibl.postgres.jdbc.SQLTextTree.Node
-
- com.impossibl.postgres.jdbc.SQLTextTree.CompositeNode
-
- Direct Known Subclasses:
SQLTextTree.EscapeNode
,SQLTextTree.MultiStatementNode
,SQLTextTree.ParenGroupNode
,SQLTextTree.StatementNode
- Enclosing class:
- SQLTextTree
public static class SQLTextTree.CompositeNode extends SQLTextTree.Node
-
-
Field Summary
Fields Modifier and Type Field Description protected List<SQLTextTree.Node>
nodes
-
Constructor Summary
Constructors Constructor Description CompositeNode(int startPos)
CompositeNode(List<SQLTextTree.Node> nodes, int startPos)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
containsAll(Class<? extends SQLTextTree.Node> cls)
SQLTextTree.Node
copy()
protected void
copyNodes(SQLTextTree.CompositeNode newNode)
SQLTextTree.Node
getFirstNode()
SQLTextTree.Node
getLastNode()
SQLTextTree.Node
process(SQLTextTree.Processor processor, boolean recurse)
void
trim()
-
Methods inherited from class com.impossibl.postgres.jdbc.SQLTextTree.Node
getEndPos, getStartPos, setEndPos, setStartPos, toString
-
-
-
-
Field Detail
-
nodes
protected List<SQLTextTree.Node> nodes
-
-
Constructor Detail
-
CompositeNode
public CompositeNode(int startPos)
-
CompositeNode
public CompositeNode(List<SQLTextTree.Node> nodes, int startPos)
-
-
Method Detail
-
copy
public SQLTextTree.Node copy()
- Overrides:
copy
in classSQLTextTree.Node
-
copyNodes
protected void copyNodes(SQLTextTree.CompositeNode newNode)
-
process
public SQLTextTree.Node process(SQLTextTree.Processor processor, boolean recurse) throws SQLException
- Overrides:
process
in classSQLTextTree.Node
- Throws:
SQLException
-
containsAll
public boolean containsAll(Class<? extends SQLTextTree.Node> cls)
-
trim
public void trim()
-
getFirstNode
public SQLTextTree.Node getFirstNode()
-
getLastNode
public SQLTextTree.Node getLastNode()
-
-