Package org.eclipse.wst.xml.xpath2.processor.internal.ast


org.eclipse.wst.xml.xpath2.processor.internal.ast
Class FilterExpr



public class FilterExpr
extends org.eclipse.wst.xml.xpath2.processor.internal.ast.StepExpr
A 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.Objectaccept(org.eclipse.wst.xml.xpath2.processor.internal.ast.XPathVisitor v)
     Support for Visitor interface.
public java.util.Iteratoriterator()
     Get the next predicate.
public intpredicate_count()
     Count the number of predicates.
public org.eclipse.wst.xml.xpath2.processor.internal.ast.PrimaryExprprimary()
     Get the primary expression.
public voidset_primary(org.eclipse.wst.xml.xpath2.processor.internal.ast.PrimaryExpr e)
     Set a new primary expression.

Constructor Detail

FilterExpr

public FilterExpr(org.eclipse.wst.xml.xpath2.processor.internal.ast.PrimaryExpr pexpr , java.util.Collection exprs)

Constructor of FilterExpr.


Methods Detail

accept

public java.lang.Object accept(org.eclipse.wst.xml.xpath2.processor.internal.ast.XPathVisitor v)

Support for Visitor interface.

Parameters

v

Returns

java.lang.Object - Result of Visitor operation.


iterator

public java.util.Iterator iterator()

Get the next predicate.

Returns

java.util.Iterator - The next predicate.


predicate_count

public int predicate_count()

Count the number of predicates.

Returns

int - The size of the collection of predicates.


primary

public org.eclipse.wst.xml.xpath2.processor.internal.ast.PrimaryExpr primary()

Get the primary expression.

Returns

org.eclipse.wst.xml.xpath2.processor.internal.ast.PrimaryExpr - The primary expression.


set_primary

public void set_primary(org.eclipse.wst.xml.xpath2.processor.internal.ast.PrimaryExpr e)

Set a new primary expression.

Parameters

e - is set as the new primary expression.