1 23 24 25 package com.sun.enterprise.tools.verifier.apiscan.classfile; 26 27 import java.util.Collection ; 28 import java.util.logging.Logger ; 29 import java.lang.ref.SoftReference ; 30 31 34 public class BCELMethod implements Method{ 35 36 private SoftReference <ClassFile> owningClass; 37 38 private com.sun.org.apache.bcel.internal.classfile.Method method; 39 40 private static Logger logger = Logger.getLogger("apiscan.classfile"); 42 public BCELMethod(ClassFile owningClass, 43 com.sun.org.apache.bcel.internal.classfile.Method method) { 44 logger.entering("BCELMethod", "BCELMethod", new Object []{owningClass.getName(), method.getName()}); 46 this.owningClass = new SoftReference <ClassFile>(owningClass); 47 this.method = method; 48 } 49 50 public ClassFile getOwningClass() { 51 return owningClass.get(); 52 } 53 54 public String getName() { 55 return method.getName(); 56 } 57 58 public String getDescriptor() { 59 return method.getSignature(); 60 } 61 62 public int getAccess() { 63 return method.getAccessFlags(); 64 } 65 66 public String getSignature() { 67 throw new UnsupportedOperationException (); 68 } 69 70 public String [] getExceptions() { 71 throw new UnsupportedOperationException (); 72 } 73 74 public Collection <MethodRef> getReferencedMethods() { 75 throw new UnsupportedOperationException (); 76 } 77 78 public Collection <String > getReferencedClasses() { 79 throw new UnsupportedOperationException (); 80 } 81 82 public MethodRef getSelfReference() { 83 throw new UnsupportedOperationException (); 84 } 85 86 public boolean isNative() { 87 return method.isNative(); 88 } 89 } 90 | Popular Tags |