public abstract class PsiConstantEvaluationHelper
extends java.lang.Object
| Modifier and Type | Class and Description |
|---|---|
static interface |
PsiConstantEvaluationHelper.AuxEvaluator |
| Constructor and Description |
|---|
PsiConstantEvaluationHelper() |
| Modifier and Type | Method and Description |
|---|---|
java.lang.Object |
computeConstantExpression(PsiElement expression)
Evaluates the value of the specified expression.
|
abstract java.lang.Object |
computeConstantExpression(PsiElement expression,
boolean throwExceptionOnOverflow)
Evaluates the value of the specified expression and optionally throws
ConstantEvaluationOverflowException if an overflow is detected
during the evaluation. |
abstract java.lang.Object |
computeExpression(PsiExpression expression,
boolean throwExceptionOnOverflow,
PsiConstantEvaluationHelper.AuxEvaluator auxEvaluator) |
public java.lang.Object computeConstantExpression(PsiElement expression)
expression - the expression to evaluate.public abstract java.lang.Object computeConstantExpression(PsiElement expression, boolean throwExceptionOnOverflow)
ConstantEvaluationOverflowException if an overflow is detected
during the evaluation.expression - the expression to evaluate.throwExceptionOnOverflow - if true, an exception is thrown if an overflow is detected during the evaluation.public abstract java.lang.Object computeExpression(PsiExpression expression, boolean throwExceptionOnOverflow, PsiConstantEvaluationHelper.AuxEvaluator auxEvaluator)