public class CompileTimeConstantExpressionMatcher extends Object implements Matcher<com.sun.source.tree.ExpressionTree>
For the purposes of this matcher, a compile-time constant expression is one of the following:
null
.
final
and has the CompileTimeConstant
annotation.
Constructor and Description |
---|
CompileTimeConstantExpressionMatcher() |
Modifier and Type | Method and Description |
---|---|
static boolean |
hasCompileTimeConstantAnnotation(VisitorState state,
com.sun.tools.javac.code.Symbol symbol) |
boolean |
matches(com.sun.source.tree.ExpressionTree t,
VisitorState state) |
public CompileTimeConstantExpressionMatcher()
public boolean matches(com.sun.source.tree.ExpressionTree t, VisitorState state)
public static boolean hasCompileTimeConstantAnnotation(VisitorState state, com.sun.tools.javac.code.Symbol symbol)
Copyright © 2017. All rights reserved.