/** * Ensures the name of the given field name will be kept. */ private void keepFieldName(Clazz clazz, Field field) { MemberObfuscator.setFixedNewMemberName(field, field.getName(clazz)); }
public Field findField(String name, String descriptor) { for (int index = 0; index < u2fieldsCount; index++) { Field field = fields[index]; if ((name == null || field.getName(this).equals(name)) && (descriptor == null || field.getDescriptor(this).equals(descriptor))) { return field; } } return null; }
/** * Ensures the name of the given field name will be kept. */ private void keepFieldName(Clazz clazz, Field field) { MemberObfuscator.setFixedNewMemberName(field, field.getName(clazz)); }
/** * Ensures the name of the given field name will be kept. */ private void keepFieldName(Clazz clazz, Field field) { MemberObfuscator.setFixedNewMemberName(field, field.getName(clazz)); }
/** * Ensures the name of the given field name will be kept. */ private void keepFieldName(Clazz clazz, Field field) { MemberObfuscator.setFixedNewMemberName(field, field.getName(clazz)); }
public Field findField(String name, String descriptor) { for (int index = 0; index < u2fieldsCount; index++) { Field field = fields[index]; if ((name == null || field.getName(this).equals(name)) && (descriptor == null || field.getDescriptor(this).equals(descriptor))) { return field; } } return null; }
public Field findField(String name, String descriptor) { for (int index = 0; index < u2fieldsCount; index++) { Field field = fields[index]; if ((name == null || field.getName(this).equals(name)) && (descriptor == null || field.getDescriptor(this).equals(descriptor))) { return field; } } return null; }
public Field findField(String name, String descriptor) { for (int index = 0; index < u2fieldsCount; index++) { Field field = fields[index]; if ((name == null || field.getName(this).equals(name)) && (descriptor == null || field.getDescriptor(this).equals(descriptor))) { return field; } } return null; }
public Field findField(String name, String descriptor) { for (int index = 0; index < fields.length; index++) { Field field = fields[index]; if (field != null && (name == null || field.getName(this).equals(name)) && (descriptor == null || field.getDescriptor(this).equals(descriptor))) { return field; } } return null; }
public Field findField(String name, String descriptor) { for (int index = 0; index < fields.length; index++) { Field field = fields[index]; if (field != null && (name == null || field.getName(this).equals(name)) && (descriptor == null || field.getDescriptor(this).equals(descriptor))) { return field; } } return null; }
public Field findField(String name, String descriptor) { for (int index = 0; index < fields.length; index++) { Field field = fields[index]; if (field != null && (name == null || field.getName(this).equals(name)) && (descriptor == null || field.getDescriptor(this).equals(descriptor))) { return field; } } return null; }
public Field findField(String name, String descriptor) { for (int index = 0; index < fields.length; index++) { Field field = fields[index]; if (field != null && (name == null || field.getName(this).equals(name)) && (descriptor == null || field.getDescriptor(this).equals(descriptor))) { return field; } } return null; }
/** * Returns whether the given field is shadowed anywhere down the class * hierarchy. */ public boolean isShadowed(Clazz clazz, Field field) { String name = field.getName(clazz); String descriptor = field.getDescriptor(clazz); // Go looking for the field down the class hierarchy. try { this.clazz = null; this.member = null; clazz.hierarchyAccept(false, false, false, true, new NamedFieldVisitor(name, descriptor, new MemberAccessFilter(0, ClassConstants.INTERNAL_ACC_PRIVATE, this))); } catch (MemberFoundException ex) { // We've found a shadowing field. return true; } return false; }
/** * Returns whether the given field is shadowed anywhere down the class * hierarchy. */ public boolean isShadowed(Clazz clazz, Field field) { String name = field.getName(clazz); String descriptor = field.getDescriptor(clazz); // Go looking for the field down the class hierarchy. try { this.clazz = null; this.member = null; clazz.hierarchyAccept(false, false, false, true, new NamedFieldVisitor(name, descriptor, new MemberAccessFilter(0, ClassConstants.ACC_PRIVATE, this))); } catch (MemberFoundException ex) { // We've found a shadowing field. return true; } return false; }
/** * Returns whether the given field is shadowed anywhere down the class * hierarchy. */ public boolean isShadowed(Clazz clazz, Field field) { String name = field.getName(clazz); String descriptor = field.getDescriptor(clazz); // Go looking for the field down the class hierarchy. try { this.clazz = null; this.member = null; clazz.hierarchyAccept(false, false, false, true, new NamedFieldVisitor(name, descriptor, new MemberAccessFilter(0, ClassConstants.ACC_PRIVATE, this))); } catch (MemberFoundException ex) { // We've found a shadowing field. return true; } return false; }
/** * Returns whether the given field is shadowed anywhere down the class * hierarchy. */ public boolean isShadowed(Clazz clazz, Field field) { String name = field.getName(clazz); String descriptor = field.getDescriptor(clazz); // Go looking for the field down the class hierarchy. try { this.clazz = null; this.member = null; clazz.hierarchyAccept(false, false, false, true, new NamedFieldVisitor(name, descriptor, new MemberAccessFilter(0, ClassConstants.ACC_PRIVATE, this))); } catch (MemberFoundException ex) { // We've found a shadowing field. return true; } return false; }