|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.openanzo.glitter.syntax.abstrakt.TreeNode
org.openanzo.glitter.syntax.abstrakt.GraphPattern
org.openanzo.glitter.syntax.abstrakt.Graph
public class Graph
Graph represents a GRAPH statement in a query.
| Constructor Summary | |
|---|---|
Graph(TriplePatternComponent graph,
GraphPattern pattern)
Constructs a Graph from either a Variable or an IRIReference representing
the named graph, and a GraphPattern representing the contents of the GRAPH clause. |
|
| Method Summary | |
|---|---|
void |
addChild(TreeNode child)
Adds the given child at the end of this node's children. |
java.util.Iterator<GraphPattern> |
getChildren()
|
TriplePatternComponent |
getGraphContext()
|
GraphPattern |
getGraphPattern()
|
boolean |
removeChild(TreeNode child)
Removes the given child from the collection of children |
boolean |
replaceChild(TreeNode oldChild,
TreeNode newChild)
Changes the tree below this node by replacing oldChild with newChild |
java.lang.String |
toString()
|
| Methods inherited from class org.openanzo.glitter.syntax.abstrakt.TreeNode |
|---|
containsVariable, getBindableVariableCount, getBindableVariableSet, getFilters, getInScopeFilterSet, getParent, getRoot, getVariableCount, getVariableSet, invalidateCache, invalidateCache, mightBindVariable, prettyPrint, prettyPrint |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public Graph(TriplePatternComponent graph,
GraphPattern pattern)
Graph from either a Variable or an IRIReference representing
the named graph, and a GraphPattern representing the contents of the GRAPH clause.
graph - pattern - | Method Detail |
|---|
public TriplePatternComponent getGraphContext()
Variable or an IRIReference/.public GraphPattern getGraphPattern()
public java.lang.String toString()
toString in class java.lang.Objectpublic java.util.Iterator<GraphPattern> getChildren()
getChildren in class TreeNodeIterator over the children of this node.
public boolean replaceChild(TreeNode oldChild,
TreeNode newChild)
TreeNode
replaceChild in class TreeNodepublic boolean removeChild(TreeNode child)
TreeNode
removeChild in class TreeNodepublic void addChild(TreeNode child)
TreeNode
addChild in class TreeNode
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||