Back to project page androidtestdebug.
The source code is released under:
MIT License
If you think the Android project androidtestdebug listed in this page is inappropriate, such as containing malicious code/tools or violating the copyright, please email info at java2s dot com, thanks.
package cc.iqa.iquery.mr; //www. j a v a 2 s .com import java.util.Set; import java.util.List; import org.python.core.ClassDictInit; import org.python.core.PyObject; import com.android.monkeyrunner.JythonUtils; import com.android.monkeyrunner.doc.MonkeyRunnerExported; import cc.iqa.iquery.ITreeNode; import cc.iqa.iquery.monkey.LayoutTree; import cc.iqa.iquery.monkey.LayoutTreeParser; @SuppressWarnings("serial") @MonkeyRunnerExported(doc = "QueryableDevice????????iQuery????????????Device") public class ControlHierarchy extends PyObject implements ClassDictInit { @SuppressWarnings("unused") private static final Set<String> EXPORTED_METHODS = JythonUtils .getMethodNames(ControlHierarchy.class); private String[] _viewServerOutput; private LayoutTree _tree; private List<ITreeNode> _nodes; public static void classDictInit(PyObject dict) { JythonUtils.convertDocAnnotationsForClass(ControlHierarchy.class, dict); } @MonkeyRunnerExported(doc = "???????ViewServer?Hierarychy???") public String[] getViewServerOutput() { return _viewServerOutput; } public LayoutTree getLayoutTree() { return _tree; } public List<ITreeNode> getAllNodes() { return _nodes; } public ControlHierarchy(String[] vsoutput) { _viewServerOutput = vsoutput; _tree = LayoutTreeParser.parse(_viewServerOutput); _nodes = _tree.getAllNodesCopy(); } }