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)
-
DIVIDE
-
-
MODULUS
-
-
MULTIPLY
-
-
QUOTIENT
-
-
MultiplicativeExpr(Expr, Expr)
- Creates a new MultiplicativeExpr using the default operator
-
MultiplicativeExpr(Expr, Expr, short)
- Creates a new MultiplicativeExpr
-
MultiplicativeExpr(Expr, Expr, String)
- Creates a new MultiplicativeExpr
-
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
-
isMultiplicativeOperator(String)
-
-
toString()
- Returns the String representation of this EqualityExpr
MULTIPLY
public static final short MULTIPLY
DIVIDE
public static final short DIVIDE
MODULUS
public static final short MODULUS
QUOTIENT
public static final short QUOTIENT
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
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
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
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
isMultiplicativeOperator
public static boolean isMultiplicativeOperator(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