| java.lang.Object com.caucho.xpath.pattern.AbstractPattern com.caucho.xpath.pattern.Axis
All known Subclasses: com.caucho.xpath.pattern.FromSelf, com.caucho.xpath.pattern.FromChildren, com.caucho.xpath.pattern.FromRoot, com.caucho.xpath.pattern.CurrentPattern, com.caucho.xpath.pattern.FromDescendants, com.caucho.xpath.pattern.FromAttributes, com.caucho.xpath.pattern.FromPrevious, com.caucho.xpath.pattern.FromAny, com.caucho.xpath.pattern.FromPreviousSibling, com.caucho.xpath.pattern.FromContext, com.caucho.xpath.pattern.FromAncestors, com.caucho.xpath.pattern.FromNamespace, com.caucho.xpath.pattern.FromNext, com.caucho.xpath.pattern.FromNextSibling, com.caucho.xpath.pattern.FromParent,
Axis | abstract class Axis extends AbstractPattern (Code) | | Represents any of the axis patterns, i.e. those patterns that
select many nodes from a single node.
|
copyPosition | public AbstractPattern copyPosition()(Code) | | Returns null since the axis isn't part of the position pattern.
|
count | public int count(Node node, Env env, AbstractPattern pattern) throws XPathException(Code) | | Counts the nodes within the axis matching the pattern.
Parameters: node - the current node Parameters: env - the variable environment Parameters: pattern - the position pattern the count of the node list. |
isSingleSelect | boolean isSingleSelect()(Code) | | Returns true if the pattern selects a single node
|
isStrictlyAscending | public boolean isStrictlyAscending()(Code) | | Returns true if the pattern is strictly ascending.
|
isUnique | public boolean isUnique()(Code) | | Returns true if the pattern's selector returns unique nodes.
|
position | public int position(Node node, Env env, AbstractPattern pattern) throws XPathException(Code) | | Calculates the position of the node in its context.
Parameters: node - the current node Parameters: env - the variable environment Parameters: pattern - the position pattern the node's position. |
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)
|
|
|