Package org.eclipse.wst.xml.xpath2.processor.internal.ast
public class FilterExpr extends org.eclipse.wst.xml.xpath2.processor.internal.ast.StepExprA filter expression consists simply of a primary expression followed by zero or more predicates. The result of the filter expression consists of all the items returned by the primary expression for which all the predicates are true. If no predicates are specified, the result is simply the result of the primary expression. This result may contain nodes, atomic values, or any combination of these. The ordering of the items returned by a filter expression is the same as their order in the result of the primary expression. Context positions are assigned to items based on their ordinal position in the result sequence. The first context position is 1.
Constructor Summary |
FilterExpr(org.eclipse.wst.xml.xpath2.processor.internal.ast.PrimaryExpr pexpr
,
java.util.Collection exprs) |
Method Summary | |
public java.lang.Object | accept(org.eclipse.wst.xml.xpath2.processor.internal.ast.XPathVisitor v) Support for Visitor interface. |
public java.util.Iterator | iterator() Get the next predicate. |
public int | predicate_count() Count the number of predicates. |
public org.eclipse.wst.xml.xpath2.processor.internal.ast.PrimaryExpr | primary() Get the primary expression. |
public void | set_primary(org.eclipse.wst.xml.xpath2.processor.internal.ast.PrimaryExpr e) Set a new primary expression. |
Constructor Detail |
public FilterExpr(org.eclipse.wst.xml.xpath2.processor.internal.ast.PrimaryExpr pexpr
,
java.util.Collection exprs)
Constructor of FilterExpr.
Methods Detail |
public java.lang.Object accept(org.eclipse.wst.xml.xpath2.processor.internal.ast.XPathVisitor v)
Support for Visitor interface.
v
java.lang.Object
- Result of Visitor operation.
public java.util.Iterator iterator()
Get the next predicate.
java.util.Iterator
- The next predicate.
public int predicate_count()
Count the number of predicates.
int
- The size of the collection of predicates.
public org.eclipse.wst.xml.xpath2.processor.internal.ast.PrimaryExpr primary()
Get the primary expression.
org.eclipse.wst.xml.xpath2.processor.internal.ast.PrimaryExpr
- The primary expression.
public void set_primary(org.eclipse.wst.xml.xpath2.processor.internal.ast.PrimaryExpr e)
Set a new primary expression.
e
- is set as the new primary expression.