de.fzi.XPath
Class OrExpr

java.lang.Object
  |
  +--de.fzi.XPath.Expr
        |
        +--de.fzi.XPath.NaryExpr
              |
              +--de.fzi.XPath.OrExpr

public class OrExpr
extends NaryExpr

Class OrExpr represents a disjunction of other expressions.


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
OrExpr()
           
 
Method Summary
 void addExpr(Expr expr)
          Adds expression to or-expression.
 void addExpr(Expr expr, int operator)
          Adds expression to disjunction.
 
Methods inherited from class de.fzi.XPath.NaryExpr
getExpr, getExprsCount, toString
 
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

OrExpr

public OrExpr()
Method Detail

addExpr

public void addExpr(Expr expr,
                    int operator)
Adds expression to disjunction.
Parameters:
expr - expression to be added.
operator - operator.
If the expression is another disjunction expression, the function does not add it as a subexpression. Instead, its subexpressions are added.
Example
a or (b or c) will be a or b or c.

addExpr

public void addExpr(Expr expr)
Adds expression to or-expression.
Parameters:
expr - expression to be added.
Equivalent to addExpr(expr, Expr.OR_OP);