diff options
author | chiba <chiba@30ef5769-5b8d-40dd-aea6-55b5d6557bb3> | 2006-11-23 02:49:04 +0000 |
---|---|---|
committer | chiba <chiba@30ef5769-5b8d-40dd-aea6-55b5d6557bb3> | 2006-11-23 02:49:04 +0000 |
commit | 43a08a3a82916abdddd870752823c13bbb91ed0e (patch) | |
tree | 8948983d5ba5c48350617f573686944e50b7b1eb /src/main/javassist/CtMethod.java | |
parent | 4f6352718e35fae2ad15745e16c05768882a17f9 (diff) | |
download | javassist-43a08a3a82916abdddd870752823c13bbb91ed0e.tar.gz javassist-43a08a3a82916abdddd870752823c13bbb91ed0e.zip |
added CtBehavior.getLongName()
git-svn-id: http://anonsvn.jboss.org/repos/javassist/trunk@336 30ef5769-5b8d-40dd-aea6-55b5d6557bb3
Diffstat (limited to 'src/main/javassist/CtMethod.java')
-rw-r--r-- | src/main/javassist/CtMethod.java | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/src/main/javassist/CtMethod.java b/src/main/javassist/CtMethod.java index 90181c8d..a2286645 100644 --- a/src/main/javassist/CtMethod.java +++ b/src/main/javassist/CtMethod.java @@ -155,6 +155,17 @@ public final class CtMethod extends CtBehavior { } /** + * Returns the method name followed by parameter types + * such as <code>javassist.CtMethod.setBody(String)</code>. + * + * @since 3.5 + */ + public String getLongName() { + return getDeclaringClass().getName() + "." + + getName() + Descriptor.toString(getSignature()); + } + + /** * Obtains the name of this method. */ public String getName() { |