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,
com.sun.source.tree.MethodInvocationTree tree) |
java.lang.Object |
evaluateStaticFieldAccess(java.lang.String classname,
java.lang.String fieldName,
com.sun.source.tree.MemberSelectTree tree) |
java.util.List<?> |
evaluteConstructorCall(java.util.ArrayList<java.util.List<?>> argValues,
com.sun.source.tree.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, com.sun.source.tree.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, com.sun.source.tree.MemberSelectTree tree)
public java.util.List<?> evaluteConstructorCall(java.util.ArrayList<java.util.List<?>> argValues, com.sun.source.tree.NewClassTree tree, javax.lang.model.type.TypeMirror typeToCreate)