예제 #1
0
 /**
  * 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;
 }
예제 #2
0
 /**
  * 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);
 }
예제 #3
0
 /**
  * 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;
 }