Rename unique non overriden methods

This commit is contained in:
Adam
2015-07-10 22:00:12 -04:00
parent 26458e7280
commit b03a0e3181
13 changed files with 148 additions and 17 deletions

View File

@@ -149,7 +149,7 @@ public class ClassFile
return children;
}
public Field findField(NameAndType nat)
public Field findFieldDeep(NameAndType nat)
{
Field f = fields.findField(nat);
if (f != null)
@@ -157,12 +157,12 @@ public class ClassFile
ClassFile parent = getParent();
if (parent != null)
return parent.findField(nat);
return parent.findFieldDeep(nat);
return null;
}
public Method findMethod(NameAndType nat)
public Method findMethodDeep(NameAndType nat)
{
Method m = methods.findMethod(nat);
if (m != null)
@@ -170,12 +170,17 @@ public class ClassFile
ClassFile parent = getParent();
if (parent != null)
return parent.findMethod(nat);
return parent.findMethodDeep(nat);
return null;
}
public Method findMethod(String name)
public Method findMethod(NameAndType nat)
{
return methods.findMethod(nat);
}
public Method findMethodDeep(String name)
{
Method m = methods.findMethod(name);
if (m != null)
@@ -183,7 +188,7 @@ public class ClassFile
ClassFile parent = getParent();
if (parent != null)
return parent.findMethod(name);
return parent.findMethodDeep(name);
return null;
}