de.fzi.XPath
Class FilterExpr

java.lang.Object
  |
  +--de.fzi.XPath.Expr
        |
        +--de.fzi.XPath.FilterExpr

public class FilterExpr
extends Expr

Class FilterExpr represents a filtering expression.


Fields inherited from class de.fzi.XPath.Expr
ADD_OP, AND_OP, DIV_OP, EQ_OP, GT_OP, GTE_OP, LT_OP, LTE_OP, MOD_OP, MUL_OP, NEQ_OP, NOP_OP, OR_OP, SUB_OP, U_OP
 
Constructor Summary
FilterExpr(Expr theprimary)
          Constructs new expression.
 
Method Summary
 void addPredicate(Expr predicate)
          Adds predicate expression.
 LocationPath getLocationPath()
          Returns location path of this expression.
 Expr getPredicate(int index)
          Returns predicate expression at given position.
 int getPredicatesCount()
          Returns count of predicates.
 void setLocationPath(LocationPath lp)
          Sets location path following that follows after this filter expression.
 java.lang.String toString()
          Returns string representation of filter expression.
 
Methods inherited from class de.fzi.XPath.Expr
getNegative, getOperator, getOperatorAsString, getOperatorName, getPositive, setOperator, setPositive
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

FilterExpr

public FilterExpr(Expr theprimary)
Constructs new expression.
Parameters:
theprimary - primary expression that is filtered and queried.
Method Detail

addPredicate

public void addPredicate(Expr predicate)
Adds predicate expression.
Parameters:
predicate - predicate expression to be added.

getPredicate

public Expr getPredicate(int index)
Returns predicate expression at given position.
Parameters:
index - position of predicate.
Returns:
Returns predicate at given position or null if no predicate at given position.

getPredicatesCount

public int getPredicatesCount()
Returns count of predicates.
Returns:
Returns count of predicates of this filter expression.

toString

public java.lang.String toString()
Returns string representation of filter expression.
Overrides:
toString in class Expr
Returns:
Returns string representation of filter expression.

setLocationPath

public void setLocationPath(LocationPath lp)
Sets location path following that follows after this filter expression.
Parameters:
lp - location path.

getLocationPath

public LocationPath getLocationPath()
Returns location path of this expression.
Returns:
Returns location path of this expression. Null if was not set.