public class ReflectiveEvalutator extends Object
Constructor and Description |
---|
ReflectiveEvalutator(BaseTypeChecker checker,
ValueAnnotatedTypeFactory factory,
boolean reportWarnings) |
Modifier and Type | Method and Description |
---|---|
Object |
evaluateStaticFieldAccess(String classname,
String fieldName,
MemberSelectTree tree) |
List<?> |
evaluteConstrutorCall(ArrayList<List<?>> argValues,
NewClassTree tree,
TypeMirror typeToCreate) |
List<?> |
evaluteMethodCall(List<List<?>> allArgValues,
List<?> receiverValues,
MethodInvocationTree tree) |
public ReflectiveEvalutator(BaseTypeChecker checker, ValueAnnotatedTypeFactory factory, boolean reportWarnings)
public List<?> evaluteMethodCall(List<List<?>> allArgValues, 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 Object evaluateStaticFieldAccess(String classname, String fieldName, MemberSelectTree tree)
public List<?> evaluteConstrutorCall(ArrayList<List<?>> argValues, NewClassTree tree, TypeMirror typeToCreate)