All Packages Class Hierarchy This Package Previous Next Index
Class com.kvisco.xsl.AdditiveExpr
com.kvisco.xsl.AdditiveExpr
- public class AdditiveExpr
- implements Expr
Represents an AdditiveExpr
- Author:
- Keith Visco
-
ADD
-
-
SUBTRACT
-
-
AdditiveExpr(Expr, Expr)
- Creates a new AdditiveExpr using the default operator
-
AdditiveExpr(Expr, Expr, short)
- Creates a new AdditiveExpr
-
AdditiveExpr(Expr, Expr, String)
- Creates a new AdditiveExpr
-
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
-
isAdditiveOperator(String)
-
-
toString()
- Returns the String representation of this EqualityExpr
ADD
public static final short ADD
SUBTRACT
public static final short SUBTRACT
AdditiveExpr
public AdditiveExpr(Expr leftSideExpr,
Expr rightSideExpr)
- Creates a new AdditiveExpr using the default operator
- Parameters:
- leftSideExpr - the Expr that is to be evaluated as
the left side of this AdditiveExpr
- rightSideExpr - the Expr that is to be evaluated as
the right side of this AdditiveExpr
Note: the default operator is AdditiveExpr.ADD
AdditiveExpr
public AdditiveExpr(Expr leftSideExpr,
Expr rightSideExpr,
short additiveOp) throws InvalidExprException
- Creates a new AdditiveExpr
- Parameters:
- leftSideExpr - the Expr that is to be evaluated as
the left side of this AdditiveExpr
- rightSideExpr - the Expr that is to be evaluated as
the right side of this AdditiveExpr
- additiveOp - the additive operator for this AdditiveExpr
- Throws: InvalidExprException
- when the additive operator is
invalid
AdditiveExpr
public AdditiveExpr(Expr leftSideExpr,
Expr rightSideExpr,
String additiveOp) throws InvalidExprException
- Creates a new AdditiveExpr
- Parameters:
- leftSideExpr - the Expr that is to be evaluated as
the left side of this AdditiveExpr
- rightSideExpr - the Expr that is to be evaluated as
the right side of this AdditiveExpr
- additiveOp - the additive operator for this AdditiveExpr
- Throws: InvalidExprException
- when the additive 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
isAdditiveOperator
public static boolean isAdditiveOperator(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