コード例 #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
ファイル: CodeAttribute.java プロジェクト: JimoLucy/javassist
 /**
  * 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;
 }