/** * Returns the (first) attribute with the given name. */ public Attribute getAttribute(Clazz clazz, String name) { for (int index = 0; index < u2attributesCount; index++) { Attribute attribute = attributes[index]; if (attribute.getAttributeName(clazz).equals(name)) { return attribute; } } return null; }
/** * Returns the (first) attribute with the given name. */ public Attribute getAttribute(Clazz clazz, String name) { for (int index = 0; index < u2attributesCount; index++) { Attribute attribute = attributes[index]; if (attribute.getAttributeName(clazz).equals(name)) { return attribute; } } return null; }
/** * Returns the (first) attribute with the given name. */ private Attribute getAttribute(Clazz clazz, String name) { for (int index = 0; index < u2attributesCount; index++) { Attribute attribute = attributes[index]; if (attribute.getAttributeName(clazz).equals(name)) { return attribute; } } return null; }
/** * Returns the (first) attribute with the given name. */ public Attribute getAttribute(Clazz clazz, String name) { for (int index = 0; index < u2attributesCount; index++) { Attribute attribute = attributes[index]; if (attribute.getAttributeName(clazz).equals(name)) { return attribute; } } return null; }
/** * Returns the (first) attribute with the given name. */ private Attribute getAttribute(Clazz clazz, String name) { for (int index = 0; index < u2attributesCount; index++) { Attribute attribute = attributes[index]; if (attribute.getAttributeName(clazz).equals(name)) { return attribute; } } return null; }
/** * Returns the (first) attribute with the given name. */ public Attribute getAttribute(Clazz clazz, String name) { for (int index = 0; index < u2attributesCount; index++) { Attribute attribute = attributes[index]; if (attribute.getAttributeName(clazz).equals(name)) { return attribute; } } return null; }
/** * Returns the (first) attribute with the given name. */ private Attribute getAttribute(Clazz clazz, String name) { for (int index = 0; index < u2attributesCount; index++) { Attribute attribute = attributes[index]; if (attribute.getAttributeName(clazz).equals(name)) { return attribute; } } return null; }
/** * Returns the (first) attribute with the given name. */ private Attribute getAttribute(Clazz clazz, String name) { for (int index = 0; index < u2attributesCount; index++) { Attribute attribute = attributes[index]; if (attribute.getAttributeName(clazz).equals(name)) { return attribute; } } return null; }
/** * Finds the index of the attribute with the given name in the given * array of attributes. */ private int findAttribute(int attributesCount, Attribute[] attributes, String attributeName) { for (int index = 0; index < attributesCount; index++) { if (attributes[index].getAttributeName(targetClass).equals(attributeName)) { return index; } } return -1; } }
public void visitAnyAttribute(Clazz clazz, Attribute attribute) { // Put the internalized attribute's name string in the class pool. name = attribute.getAttributeName(clazz).intern(); clazz.constantPoolEntryAccept(attribute.u2attributeNameIndex, this); } }
private boolean accepted(Clazz clazz, Attribute attribute) { return regularExpressionMatcher.matches(attribute.getAttributeName(clazz)); } }
public void attributeAccept(String name, AttributeVisitor attributeVisitor) { for (int index = 0; index < u2attributesCount; index++) { Attribute attribute = attributes[index]; if (attribute.getAttributeName(this).equals(name)) { attribute.accept(this, attributeVisitor); } } }
public void visitAnyAttribute(Clazz clazz, Attribute attribute) { // Put the internalized attribute's name string in the class pool. name = attribute.getAttributeName(clazz).intern(); clazz.constantPoolEntryAccept(attribute.u2attributeNameIndex, this); } }
private boolean accepted(Clazz clazz, Attribute attribute) { return stringMatcher.matches(attribute.getAttributeName(clazz)); } }
private boolean accepted(Clazz clazz, Attribute attribute) { return regularExpressionMatcher.matches(attribute.getAttributeName(clazz)); } }
public void attributeAccept(String name, AttributeVisitor attributeVisitor) { for (int index = 0; index < u2attributesCount; index++) { Attribute attribute = attributes[index]; if (attribute.getAttributeName(this).equals(name)) { attribute.accept(this, attributeVisitor); } } }
public void attributeAccept(String name, AttributeVisitor attributeVisitor) { for (int index = 0; index < u2attributesCount; index++) { Attribute attribute = attributes[index]; if (attribute.getAttributeName(this).equals(name)) { attribute.accept(this, attributeVisitor); } } }
private boolean accepted(Clazz clazz, Attribute attribute) { return regularExpressionMatcher.matches(attribute.getAttributeName(clazz)); } }
public void visitAnyAttribute(Clazz clazz, Attribute attribute) { // Put the internalized attribute's name string in the class pool. name = attribute.getAttributeName(clazz).intern(); clazz.constantPoolEntryAccept(attribute.u2attributeNameIndex, this); } }
public void visitAnyAttribute(Clazz clazz, Attribute attribute) { // Put the internalized attribute's name string in the class pool. name = attribute.getAttributeName(clazz).intern(); clazz.constantPoolEntryAccept(attribute.u2attributeNameIndex, this); } }