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

Variable Index

 o ADD
 o SUBTRACT

Constructor Index

 o AdditiveExpr(Expr, Expr)
Creates a new AdditiveExpr using the default operator
 o AdditiveExpr(Expr, Expr, short)
Creates a new AdditiveExpr
 o AdditiveExpr(Expr, Expr, String)
Creates a new AdditiveExpr

Method Index

 o evaluate(Node, ProcessorState)
Evaluates this Expr using the given context Node and ProcessorState
 o evaluate(Node, ProcessorState)
Evaluates this Expr using the given context Node and ProcessorState
 o getExprType()
Returns the type of Expr this Expr represents
 o isAdditiveOperator(String)
 o toString()
Returns the String representation of this EqualityExpr

Variables

 o ADD
 public static final short ADD
 o SUBTRACT
 public static final short SUBTRACT

Constructors

 o 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
 o 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
 o 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

Methods

 o getExprType
 public short getExprType()
Returns the type of Expr this Expr represents

Returns:
the type of Expr this Expr represents
 o 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
 o isAdditiveOperator
 public static boolean isAdditiveOperator(String operator)
 o 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