public class PsiConstantEvaluationHelperImpl extends PsiConstantEvaluationHelper
PsiConstantEvaluationHelper.AuxEvaluator
Constructor and Description |
---|
PsiConstantEvaluationHelperImpl() |
Modifier and Type | Method and Description |
---|---|
static java.lang.Object |
computeCastTo(PsiExpression expression,
PsiType castTo,
java.util.Set<PsiVariable> visitedVars) |
java.lang.Object |
computeConstantExpression(PsiElement expression)
Evaluates the value of the specified expression.
|
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. |
java.lang.Object |
computeExpression(PsiExpression expression,
boolean throwExceptionOnOverflow,
PsiConstantEvaluationHelper.AuxEvaluator auxEvaluator) |
public java.lang.Object computeConstantExpression(PsiElement expression)
PsiConstantEvaluationHelper
computeConstantExpression
in class PsiConstantEvaluationHelper
expression
- the expression to evaluate.public java.lang.Object computeConstantExpression(PsiElement expression, boolean throwExceptionOnOverflow)
PsiConstantEvaluationHelper
ConstantEvaluationOverflowException
if an overflow is detected
during the evaluation.computeConstantExpression
in class PsiConstantEvaluationHelper
expression
- the expression to evaluate.throwExceptionOnOverflow
- if true, an exception is thrown if an overflow is detected during the evaluation.public java.lang.Object computeExpression(PsiExpression expression, boolean throwExceptionOnOverflow, PsiConstantEvaluationHelper.AuxEvaluator auxEvaluator)
computeExpression
in class PsiConstantEvaluationHelper
public static java.lang.Object computeCastTo(PsiExpression expression, PsiType castTo, java.util.Set<PsiVariable> visitedVars)