org.seasar.doma.internal.expr
クラス ExpressionEvaluator.Decimal

java.lang.Object
  上位を拡張 org.seasar.doma.internal.expr.ExpressionEvaluator.Decimal
含まれているクラス:
ExpressionEvaluator

protected static class ExpressionEvaluator.Decimal
extends Object


フィールドの概要
protected  BigDecimal decimalValue
           
protected  ExpressionNode operandNode
           
protected  ArithmeticOperatorNode operatorNode
           
protected  Integer priority
           
protected static Map<Class<?>,Integer> priorityMap
           
protected  Class<?> realClass
           
 
コンストラクタの概要
protected ExpressionEvaluator.Decimal(ArithmeticOperatorNode operatorNode, ExpressionNode operandNode, EvaluationResult evaluationResult)
           
 
メソッドの概要
protected  EvaluationResult add(ExpressionEvaluator.Decimal other)
           
protected  EvaluationResult createEvaluationResult(ExpressionEvaluator.Decimal other, BigDecimal newValue)
           
protected  EvaluationResult divide(ExpressionEvaluator.Decimal other)
           
protected  void handleArithmeticException(ArithmeticException e)
           
protected  EvaluationResult multiply(ExpressionEvaluator.Decimal other)
           
protected  Object narrowValue(BigDecimal value, Class<?> clazz)
           
protected  EvaluationResult subtract(ExpressionEvaluator.Decimal other)
           
protected  BigDecimal widenValue(ArithmeticOperatorNode operatorNode, ExpressionNode operandNode, Object value, Class<?> clazz)
           
 
クラス java.lang.Object から継承されたメソッド
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

フィールドの詳細

priorityMap

protected static final Map<Class<?>,Integer> priorityMap

operatorNode

protected final ArithmeticOperatorNode operatorNode

operandNode

protected final ExpressionNode operandNode

decimalValue

protected final BigDecimal decimalValue

realClass

protected final Class<?> realClass

priority

protected final Integer priority
コンストラクタの詳細

ExpressionEvaluator.Decimal

protected ExpressionEvaluator.Decimal(ArithmeticOperatorNode operatorNode,
                                      ExpressionNode operandNode,
                                      EvaluationResult evaluationResult)
メソッドの詳細

widenValue

protected BigDecimal widenValue(ArithmeticOperatorNode operatorNode,
                                ExpressionNode operandNode,
                                Object value,
                                Class<?> clazz)

narrowValue

protected Object narrowValue(BigDecimal value,
                             Class<?> clazz)

add

protected EvaluationResult add(ExpressionEvaluator.Decimal other)

subtract

protected EvaluationResult subtract(ExpressionEvaluator.Decimal other)

multiply

protected EvaluationResult multiply(ExpressionEvaluator.Decimal other)

divide

protected EvaluationResult divide(ExpressionEvaluator.Decimal other)

handleArithmeticException

protected void handleArithmeticException(ArithmeticException e)

createEvaluationResult

protected EvaluationResult createEvaluationResult(ExpressionEvaluator.Decimal other,
                                                  BigDecimal newValue)


Copyright © 2009 The Seasar Foundation. All Rights Reserved.