diff options
Diffstat (limited to 'src/main/javassist/CtClass.java')
-rw-r--r-- | src/main/javassist/CtClass.java | 16 |
1 files changed, 15 insertions, 1 deletions
diff --git a/src/main/javassist/CtClass.java b/src/main/javassist/CtClass.java index 9e4ca20c..79d7efcb 100644 --- a/src/main/javassist/CtClass.java +++ b/src/main/javassist/CtClass.java @@ -26,10 +26,10 @@ import java.io.OutputStream; import java.net.URL; import java.security.ProtectionDomain; import java.util.Collection; + import javassist.bytecode.ClassFile; import javassist.bytecode.Descriptor; import javassist.bytecode.Opcode; -import javassist.bytecode.SignatureAttribute; import javassist.expr.ExprEditor; /* Note: @@ -993,6 +993,20 @@ public abstract class CtClass { } /** + * Retrieves methods with the specified name among the methods + * declared in the class. Multiple methods with different parameters + * may be returned. + * + * <p>Note: this method does not search the superclasses.</p> + * + * @param name method name. + * @since 3.19 + */ + public CtMethod[] getDeclaredMethods(String name) throws NotFoundException { + throw new NotFoundException(name); + } + + /** * Retrieves the method with the specified name among the methods * declared in the class. If there are multiple methods with * the specified name, then this method returns one of them. |