|
||||||||||
| 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.TriplePatternNode
public class TriplePatternNode
A TriplePatternNode is any node in the abstract syntax that represents a triple pattern
(contains three TriplePatternComponents).
| Constructor Summary | |
|---|---|
TriplePatternNode(TriplePatternComponent s,
TriplePatternComponent p,
TriplePatternComponent o)
Constructor from three triple pattern components. |
|
| Method Summary | |
|---|---|
void |
addChild(TreeNode child)
Adds the given child at the end of this node's children. |
java.util.Iterator<TreeNode> |
getChildren()
|
TriplePattern |
getTriplePattern()
|
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 TriplePatternNode(TriplePatternComponent s,
TriplePatternComponent p,
TriplePatternComponent o)
s - Subjectp - Predicateo - Object| Method Detail |
|---|
public java.lang.String toString()
toString in class java.lang.Objectpublic TriplePattern getTriplePattern()
TriplePattern for this node.public java.util.Iterator<TreeNode> 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 | |||||||||