public class JavaConstantExpressionEvaluator extends JavaRecursiveElementWalkingVisitor
EMPTY_VISITOR
Modifier and Type | Method and Description |
---|---|
static java.lang.Object |
computeConstantExpression(PsiExpression expression,
boolean throwExceptionOnOverflow) |
static java.lang.Object |
computeConstantExpression(PsiExpression expression,
java.util.Set<PsiVariable> visitedVars,
boolean throwExceptionOnOverflow) |
static java.lang.Object |
computeConstantExpression(PsiExpression expression,
java.util.Set<PsiVariable> visitedVars,
boolean throwExceptionOnOverflow,
PsiConstantEvaluationHelper.AuxEvaluator auxEvaluator) |
protected void |
elementFinished(PsiElement element) |
void |
visitElement(PsiElement element) |
stopWalking, visitReferenceExpression
visitAnnotation, visitAnnotationArrayInitializer, visitAnnotationMethod, visitAnnotationParameterList, visitAnonymousClass, visitArrayAccessExpression, visitArrayInitializerExpression, visitAssertStatement, visitAssignmentExpression, visitBinaryExpression, visitBlockStatement, visitBreakStatement, visitCallExpression, visitCatchSection, visitClass, visitClassInitializer, visitClassObjectAccessExpression, visitCodeBlock, visitCodeFragment, visitConditionalExpression, visitContinueStatement, visitDeclarationStatement, visitDocComment, visitDocTag, visitDocTagValue, visitDocToken, visitDoWhileStatement, visitEmptyStatement, visitEnumConstant, visitEnumConstantInitializer, visitExpression, visitExpressionList, visitExpressionListStatement, visitExpressionStatement, visitField, visitForeachStatement, visitForStatement, visitIdentifier, visitIfStatement, visitImplicitVariable, visitImportList, visitImportStatement, visitImportStaticReferenceElement, visitImportStaticStatement, visitInlineDocTag, visitInstanceOfExpression, visitJavaFile, visitJavaToken, visitKeyword, visitLabeledStatement, visitLambdaExpression, visitLiteralExpression, visitLocalVariable, visitMethod, visitMethodCallExpression, visitMethodReferenceExpression, visitModifierList, visitModule, visitModuleReferenceElement, visitModuleStatement, visitNameValuePair, visitNewExpression, visitPackage, visitPackageAccessibilityStatement, visitPackageStatement, visitParameter, visitParameterList, visitParenthesizedExpression, visitPattern, visitPatternVariable, visitPolyadicExpression, visitPostfixExpression, visitPrefixExpression, visitProvidesStatement, visitReceiverParameter, visitRecordComponent, visitRecordHeader, visitReferenceElement, visitReferenceList, visitReferenceParameterList, visitRequiresStatement, visitResourceExpression, visitResourceList, visitResourceVariable, visitReturnStatement, visitStatement, visitSuperExpression, visitSwitchExpression, visitSwitchLabeledRuleStatement, visitSwitchLabelStatement, visitSwitchStatement, visitSynchronizedStatement, visitThisExpression, visitThrowStatement, visitTryStatement, visitTypeCastExpression, visitTypeElement, visitTypeParameter, visitTypeParameterList, visitTypeTestPattern, visitUnaryExpression, visitUsesStatement, visitVariable, visitWhileStatement, visitYieldStatement
visitBinaryFile, visitComment, visitDirectory, visitErrorElement, visitFile, visitOuterLanguageElement, visitPlainText, visitPlainTextFile, visitWhiteSpace
protected void elementFinished(PsiElement element)
elementFinished
in class JavaRecursiveElementWalkingVisitor
public void visitElement(PsiElement element)
visitElement
in class JavaRecursiveElementWalkingVisitor
public static java.lang.Object computeConstantExpression(PsiExpression expression, java.util.Set<PsiVariable> visitedVars, boolean throwExceptionOnOverflow)
public static java.lang.Object computeConstantExpression(PsiExpression expression, java.util.Set<PsiVariable> visitedVars, boolean throwExceptionOnOverflow, PsiConstantEvaluationHelper.AuxEvaluator auxEvaluator)
public static java.lang.Object computeConstantExpression(PsiExpression expression, boolean throwExceptionOnOverflow)