/** * Returns a Code attribute. * * @return a Code attribute or null if it is not specified. */ public CodeAttribute getCodeAttribute() { AttributeInfo info = AttributeInfo.lookup(attribute, CodeAttribute.tag); return (CodeAttribute) info; }
/** * Returns the attribute with the specified name. If it is not found, this method returns null. * * @param name attribute name * @return an <code>AttributeInfo</code> object or null. */ public AttributeInfo getAttribute(String name) { return AttributeInfo.lookup(attributes, name); }
/** * Returns an Exceptions attribute. * * @return an Exceptions attribute or null if it is not specified. */ public ExceptionsAttribute getExceptionsAttribute() { AttributeInfo info = AttributeInfo.lookup(attribute, ExceptionsAttribute.tag); return (ExceptionsAttribute) info; }