All Packages Class Hierarchy This Package Previous Next Index
Class com.kvisco.xsl.EqualityExpr
com.kvisco.xsl.EqualityExpr
- public class EqualityExpr
- implements Expr
Represents an EqualityExpr
- Author:
- Keith Visco (kvisco@ziplink.net)
-
EQUAL
-
-
GREATER_THAN
-
-
GT_OR_EQUAL
-
-
LESS_THAN
-
-
LT_OR_EQUAL
-
-
NOT_EQUAL
-
-
EqualityExpr(Expr, Expr)
- Creates a new EqualityExpr using the default operator
-
EqualityExpr(Expr, Expr, short)
- Creates a new EqualityExpr
-
EqualityExpr(Expr, Expr, String)
- Creates a new EqualityExpr
-
evaluate(Node, ProcessorState)
- Evaluates this Expr using the given context Node and ProcessorState
-
evaluate(Node, ProcessorState)
- Evaluates this Expr using the given context Node and ProcessorState
-
getExprType()
- Returns the type of Expr this Expr represents
-
isRelationalOperator(String)
-
-
toString()
- Returns the String representation of this EqualityExpr
EQUAL
public static final short EQUAL
LESS_THAN
public static final short LESS_THAN
GREATER_THAN
public static final short GREATER_THAN
LT_OR_EQUAL
public static final short LT_OR_EQUAL
GT_OR_EQUAL
public static final short GT_OR_EQUAL
NOT_EQUAL
public static final short NOT_EQUAL
EqualityExpr
public EqualityExpr(Expr leftSideExpr,
Expr rightSideExpr)
- Creates a new EqualityExpr using the default operator
- Parameters:
- leftSideExpr - the Expr that is to be evaluated as
the left side of this EqualityExpr
- rightSideExpr - the Expr that is to be evaluated as
the right side of this EqualityExpr
Note: the default operator is EqualityExpr.EQUALS
EqualityExpr
public EqualityExpr(Expr leftSideExpr,
Expr rightSideExpr,
short compareOp) throws InvalidExprException
- Creates a new EqualityExpr
- Parameters:
- leftSideExpr - the Expr that is to be evaluated as
the left side of this EqualityExpr
- rightSideExpr - the Expr that is to be evaluated as
the right side of this EqualityExpr
- compareOp - the comparison operator for this EqualityExpr
- Throws: InvalidExprException
- when the comparison operator is
invalid
EqualityExpr
public EqualityExpr(Expr leftSideExpr,
Expr rightSideExpr,
String compareOp) throws InvalidExprException
- Creates a new EqualityExpr
- Parameters:
- leftSideExpr - the Expr that is to be evaluated as
the left side of this EqualityExpr
- rightSideExpr - the Expr that is to be evaluated as
the right side of this EqualityExpr
- compareOp - the comparison operator for this EqualityExpr
- Throws: InvalidExprException
- when the comparison operator is
invalid
getExprType
public short getExprType()
- Returns the type of Expr this Expr represents
- Returns:
- the type of Expr this Expr represents
evaluate
public ExprResult evaluate(Node context,
ProcessorState ps) throws InvalidExprException
- Evaluates this Expr using the given context Node and ProcessorState
- Parameters:
- context - the current context Node
- ps - the ProcessorState that contains the current processing
environment
- Returns:
- the ExprResult
isRelationalOperator
public static boolean isRelationalOperator(String operator)
toString
public String toString()
- Returns the String representation of this EqualityExpr
- Returns:
- the String representation of this EqualityExpr
All Packages Class Hierarchy This Package Previous Next Index