org.jaxen.expr

Interface BinaryExpr

All Superinterfaces:
Expr, Serializable
Known Subinterfaces:
AdditiveExpr, EqualityExpr, LogicalExpr, MultiplicativeExpr, RelationalExpr, UnionExpr
Known Implementing Classes:
DefaultAdditiveExpr, DefaultAndExpr, DefaultArithExpr, DefaultBinaryExpr, DefaultDivExpr, DefaultEqualityExpr, DefaultEqualsExpr, DefaultGreaterThanEqualExpr, DefaultGreaterThanExpr, DefaultLessThanEqualExpr, DefaultLessThanExpr, DefaultLogicalExpr, DefaultMinusExpr, DefaultModExpr, DefaultMultiplicativeExpr, DefaultMultiplyExpr, DefaultNotEqualsExpr, DefaultOrExpr, DefaultPlusExpr, DefaultRelationalExpr, DefaultTruthExpr, DefaultUnionExpr

public interface BinaryExpr
extends Expr

Represents a binary expression. This does not match anything in the XPath 1.0 grammar, but in Jaxen it includes the usual binary operations such as addition, multiplication, logical and, logical or, and so forth.

Method Summary

Expr
getLHS()
Returns the left-hand side of the binary expression.
String
getOperator()
Returns the operator for the binary expression such as "+" or "div".
Expr
getRHS()
Returns the right-hand side of the binary expression.

Methods inherited from interface org.jaxen.expr.Expr

evaluate, getText, simplify

Method Details

getLHS

public Expr getLHS()
Returns the left-hand side of the binary expression.
Returns:
the left hand side expression

getOperator

public String getOperator()
Returns the operator for the binary expression such as "+" or "div".
Returns:
the operator for the expression

getRHS

public Expr getRHS()
Returns the right-hand side of the binary expression.
Returns:
the right-hand side expression