package sh.calaba.instrumentationbackend.query.ast; import java.lang.reflect.Method; import java.util.ArrayList; import java.util.List; import org.antlr.runtime.tree.CommonTree; import sh.calaba.instrumentationbackend.InstrumentationBackend; import sh.calaba.instrumentationbackend.query.antlr.UIQueryParser; import android.view.View; public class UIQueryASTWith implements UIQueryAST { public final String propertyName; public final Object value; public UIQueryASTWith(String property, Object value) { if (property == null) {throw new IllegalArgumentException("Cannot instantiate Filter with null property name");} this.propertyName = property; this.value = value; } @SuppressWarnings({ "rawtypes", "unchecked"}) @Override public List evaluateWithViewsAndDirection(List inputViews, UIQueryDirection direction) { List result = new ArrayList(8); for (int i=0;i