public class NodeListHead extends Search{
public String getNodeListClass(RSClient data, HashMap<String, ClassGen> classes) {
for (Entry<String, ClassGen> c : classes.entrySet()) {
ClassGen cg = new ClassGen(c.getValue().getJavaClass());
ConstantPoolGen cpg = c.getValue().getConstantPool();
RSClass renderClass = data.getProperClass("Toolkit");
RSClass sdToolkit = data.getProperClass("SDToolkit");
if(sdToolkit == null || renderClass == null)
return null;
if(c.getValue().getSuperclassName().equals(renderClass.className) &&
!(c.getValue().getClassName().equals(sdToolkit.className)) &&
!(cpg.lookupUtf8("microsoft") > 0) &&
!c.getValue().isAbstract()){
for (Method m : c.getValue().getMethods()){
MethodSearcher mS = new MethodSearcher(m, cg, cpg);
if(mS.getTypeCount("java.awt.Canvas") >= 1 && m.getName().equals("<init>")){
MethodGen mg = new MethodGen(m, c.getValue().getClassName(), cpg);