public class ReflectiveEvaluator
extends java.lang.Object
Constructor and Description |
---|
ReflectiveEvaluator(BaseTypeChecker checker,
ValueAnnotatedTypeFactory factory,
boolean reportWarnings) |
Modifier and Type | Method and Description |
---|---|
java.util.List<?> |
evaluateMethodCall(java.util.List<java.util.List<?>> allArgValues,
java.util.List<?> receiverValues,
MethodInvocationTree tree) |
java.lang.Object |
evaluateStaticFieldAccess(java.lang.String classname,
java.lang.String fieldName,
MemberSelectTree tree) |
java.util.List<?> |
evaluteConstructorCall(java.util.ArrayList<java.util.List<?>> argValues,
NewClassTree tree,
javax.lang.model.type.TypeMirror typeToCreate) |
public ReflectiveEvaluator(BaseTypeChecker checker, ValueAnnotatedTypeFactory factory, boolean reportWarnings)
public java.util.List<?> evaluateMethodCall(java.util.List<java.util.List<?>> allArgValues, java.util.List<?> receiverValues, MethodInvocationTree tree)
allArgValues
- a list of list where the first list corresponds to all possible values
for the first argument. Pass null to indicate that the method has no arguments.receiverValues
- a list of possible receiver values. null indicates that the method has
no receiver.tree
- location to report any errorspublic java.lang.Object evaluateStaticFieldAccess(java.lang.String classname, java.lang.String fieldName, MemberSelectTree tree)
public java.util.List<?> evaluteConstructorCall(java.util.ArrayList<java.util.List<?>> argValues, NewClassTree tree, javax.lang.model.type.TypeMirror typeToCreate)