diff options
author | chiba <chiba@30ef5769-5b8d-40dd-aea6-55b5d6557bb3> | 2012-06-17 15:01:27 +0000 |
---|---|---|
committer | chiba <chiba@30ef5769-5b8d-40dd-aea6-55b5d6557bb3> | 2012-06-17 15:01:27 +0000 |
commit | e2cfbeaed7be298c93251f6f9af480cdba84f68f (patch) | |
tree | 8b49af3c3a31cde77e252c5327900fbb0d628505 /src/main/javassist/CtMember.java | |
parent | 08deb0e6bc17f84f6bda03a29a7c2d3a8610a1ef (diff) | |
download | javassist-e2cfbeaed7be298c93251f6f9af480cdba84f68f.tar.gz javassist-e2cfbeaed7be298c93251f6f9af480cdba84f68f.zip |
implemented JASSIST-170
git-svn-id: http://anonsvn.jboss.org/repos/javassist/trunk@639 30ef5769-5b8d-40dd-aea6-55b5d6557bb3
Diffstat (limited to 'src/main/javassist/CtMember.java')
-rw-r--r-- | src/main/javassist/CtMember.java | 23 |
1 files changed, 23 insertions, 0 deletions
diff --git a/src/main/javassist/CtMember.java b/src/main/javassist/CtMember.java index e75130d5..ae141c65 100644 --- a/src/main/javassist/CtMember.java +++ b/src/main/javassist/CtMember.java @@ -42,6 +42,8 @@ public abstract class CtMember { public String getSignature() { return null; } public void setAttribute(String name, byte[] data) {} public void setModifiers(int mod) {} + public String getGenericSignature() { return null; } + public void setGenericSignature(String sig) {} private CtMember methodTail; private CtMember consTail; // constructor tail @@ -270,6 +272,27 @@ public abstract class CtMember { public abstract String getSignature(); /** + * Returns the generic signature of the member. + * + * @see javassist.bytecode.SignatureAttribute#toFieldSignature(String) + * @see javassist.bytecode.SignatureAttribute#toMethodSignature(String) + * @see CtClass#getGenericSignature() + * @since 3.17 + */ + public abstract String getGenericSignature(); + + /** + * Sets the generic signature of the member. + * + * @param sig a new generic signature. + * @see javassist.bytecode.SignatureAttribute.ObjectType#encode() + * @see javassist.bytecode.SignatureAttribute.MethodSignature#encode() + * @see CtClass#setGenericSignature(String) + * @since 3.17 + */ + public abstract void setGenericSignature(String sig); + + /** * Obtains a user-defined attribute with the given name. * If that attribute is not found in the class file, this * method returns null. |