| java.lang.Object com.caucho.xpath.pattern.AbstractPattern com.caucho.xpath.pattern.Axis com.caucho.xpath.pattern.FromContext
FromContext | public class FromContext extends Axis (Code) | | Matches the node context.
|
_ancestorCount | int _ancestorCount(Code) | | |
FromContext | public FromContext()(Code) | | |
FromContext | public FromContext(int ancestorCount)(Code) | | Creates a new context pattern. Using the ancestorCount,
FromContext collapses parent patterns into a single FromContext
pattern. For example, context()/../.. is collapsed to FromContext(2).
Parameters: ancestorCount - number of parents where the real context starts |
count | public int count(Node node, Env env, AbstractPattern pattern)(Code) | | There is only a single node in the context axis.
Parameters: node - the current node Parameters: env - the variable environment Parameters: pattern - the position pattern 1 |
equals | public boolean equals(Object b)(Code) | | Returns true if the two patterns are equal.
|
firstNode | public Node firstNode(Node node, ExprEnvironment env)(Code) | | Returns the first node in the selection order.
Parameters: node - the current node Parameters: env - the current environment the first node |
getCount | public int getCount()(Code) | | |
isSingleSelect | boolean isSingleSelect()(Code) | | Returns true if the pattern selects a single node
|
isStrictlyAscending | public boolean isStrictlyAscending()(Code) | | The context is strictly ascending.
|
match | public boolean match(Node node, ExprEnvironment env)(Code) | | Matches the node context
Parameters: node - the current node Parameters: env - the variable environment true if the node is the context node. |
nextNode | public Node nextNode(Node node, Node lastNode)(Code) | | Returns the next node in the selection order.
Parameters: node - the current node Parameters: lastNode - the last node the next node |
position | public int position(Node node, Env env, AbstractPattern pattern)(Code) | | There is only a single node in the context axis.
Parameters: node - the current node Parameters: env - the variable environment Parameters: pattern - the position pattern 1 |
toString | public String toString()(Code) | | Prints the pattern representing the context.
|
Methods inherited from com.caucho.xpath.pattern.AbstractPattern | public AbstractPattern copyAxis()(Code)(Java Doc) public AbstractPattern copyPosition()(Code)(Java Doc) public int count(Node node, Env env, AbstractPattern pattern) throws XPathException(Code)(Java Doc) public NodeIterator createNodeIterator(Node node, ExprEnvironment env, AbstractPattern pattern) throws XPathException(Code)(Java Doc) public Node findAny(Node node, ExprEnvironment env) throws XPathException(Code)(Java Doc) public Node firstNode(Node node, ExprEnvironment env) throws XPathException(Code)(Java Doc) public String getNodeName()(Code)(Java Doc) public AbstractPattern getParent()(Code)(Java Doc) protected String getPrefix()(Code)(Java Doc) public double getPriority()(Code)(Java Doc) public boolean isAscending()(Code)(Java Doc) boolean isSingleLevel()(Code)(Java Doc) boolean isSingleSelect()(Code)(Java Doc) public boolean isStrictlyAscending()(Code)(Java Doc) public boolean isUnique()(Code)(Java Doc) public Node lastNode(Node node)(Code)(Java Doc) abstract public boolean match(Node node, ExprEnvironment env) throws XPathException(Code)(Java Doc) public Node nextNode(Node node, Node last) throws XPathException(Code)(Java Doc) public int position(Node node, Env env, AbstractPattern pattern) throws XPathException(Code)(Java Doc) public NodeIterator select(Node node, ExprEnvironment env) throws XPathException(Code)(Java Doc) public NodeIterator selectUnique(Node node, ExprEnvironment env) throws XPathException(Code)(Java Doc) public String toPatternString()(Code)(Java Doc)
|
|
|