org.jaxen.expr

Class DefaultBinaryExpr

Implemented Interfaces:
BinaryExpr, Expr, Serializable
Known Direct Subclasses:
DefaultArithExpr, DefaultTruthExpr, DefaultUnionExpr

(package private) abstract class DefaultBinaryExpr
extends DefaultExpr
implements BinaryExpr

Field Summary

private Expr
lhs
private Expr
rhs

Constructor Summary

DefaultBinaryExpr(Expr lhs, Expr rhs)

Method Summary

Expr
getLHS()
Returns the left-hand side of the binary expression.
abstract String
getOperator()
Returns the operator for the binary expression such as "+" or "div".
Expr
getRHS()
Returns the right-hand side of the binary expression.
String
getText()
void
setLHS(Expr lhs)
void
setRHS(Expr rhs)
Expr
simplify()
String
toString()

Methods inherited from class org.jaxen.expr.DefaultExpr

convertToIterator, convertToList, simplify

Field Details

lhs

private Expr lhs

rhs

private Expr rhs

Constructor Details

DefaultBinaryExpr

(package private)  DefaultBinaryExpr(Expr lhs,
                                     Expr rhs)

Method Details

getLHS

public Expr getLHS()
Returns the left-hand side of the binary expression.
Specified by:
getLHS in interface BinaryExpr
Returns:
the left hand side expression

getOperator

public abstract String getOperator()
Returns the operator for the binary expression such as "+" or "div".
Specified by:
getOperator in interface BinaryExpr
Returns:
the operator for the expression

getRHS

public Expr getRHS()
Returns the right-hand side of the binary expression.
Specified by:
getRHS in interface BinaryExpr
Returns:
the right-hand side expression

getText

public String getText()
Specified by:
getText in interface Expr

setLHS

public void setLHS(Expr lhs)

setRHS

public void setRHS(Expr rhs)

simplify

public Expr simplify()
Specified by:
simplify in interface Expr
Overrides:
simplify in interface DefaultExpr

toString

public String toString()