All Packages  Class Hierarchy  This Package  Previous  Next  Index

Class com.kvisco.xsl.MultiplicativeExpr

com.kvisco.xsl.MultiplicativeExpr

public class MultiplicativeExpr
implements Expr
Represents an MultiplicativeExpr

Author:
Keith Visco (kvisco@ziplink.net)

Variable Index

 o DIVIDE
 o MODULUS
 o MULTIPLY
 o QUOTIENT

Constructor Index

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

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 isMultiplicativeOperator(String)
 o toString()
Returns the String representation of this EqualityExpr

Variables

 o MULTIPLY
 public static final short MULTIPLY
 o DIVIDE
 public static final short DIVIDE
 o MODULUS
 public static final short MODULUS
 o QUOTIENT
 public static final short QUOTIENT

Constructors

 o MultiplicativeExpr
 public MultiplicativeExpr(Expr leftSideExpr,
                           Expr rightSideExpr)
Creates a new MultiplicativeExpr using the default operator

Parameters:
leftSideExpr - the Expr that is to be evaluated as the left side of this MultiplicativeExpr
rightSideExpr - the Expr that is to be evaluated as the right side of this MultiplicativeExpr
Note: the default operator is MultiplicativeExpr.MULITPLY
 o MultiplicativeExpr
 public MultiplicativeExpr(Expr leftSideExpr,
                           Expr rightSideExpr,
                           short operator) throws InvalidExprException
Creates a new MultiplicativeExpr

Parameters:
leftSideExpr - the Expr that is to be evaluated as the left side of this MultiplicativeExpr
rightSideExpr - the Expr that is to be evaluated as the right side of this MultiplicativeExpr
additiveOp - the additive operator for this MultiplicativeExpr
Throws: InvalidExprException
when the additive operator is invalid
 o MultiplicativeExpr
 public MultiplicativeExpr(Expr leftSideExpr,
                           Expr rightSideExpr,
                           String operator) throws InvalidExprException
Creates a new MultiplicativeExpr

Parameters:
leftSideExpr - the Expr that is to be evaluated as the left side of this MultiplicativeExpr
rightSideExpr - the Expr that is to be evaluated as the right side of this MultiplicativeExpr
additiveOp - the additive operator for this MultiplicativeExpr
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 isMultiplicativeOperator
 public static boolean isMultiplicativeOperator(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