Browse Source

Allow for retrieval of the real type name of the annotation.

We need this to emulate isAnnotationPresent(), etc.


git-svn-id: http://anonsvn.jboss.org/repos/javassist/trunk@241 30ef5769-5b8d-40dd-aea6-55b5d6557bb3
tags/rel_3_17_1_ga
adrian 18 years ago
parent
commit
0f1701d237
1 changed files with 6 additions and 1 deletions
  1. 6
    1
      src/main/javassist/bytecode/annotation/AnnotationImpl.java

+ 6
- 1
src/main/javassist/bytecode/annotation/AnnotationImpl.java View File



import java.lang.reflect.*; import java.lang.reflect.*;


class AnnotationImpl implements InvocationHandler {
public class AnnotationImpl implements InvocationHandler {
private Annotation annotation; private Annotation annotation;
private ClassPool pool; private ClassPool pool;
private ClassLoader classLoader; private ClassLoader classLoader;
classLoader = loader; classLoader = loader;
} }


public String getTypeName()
{
return annotation.getTypeName();
}
public Object invoke(Object proxy, Method method, Object[] args) public Object invoke(Object proxy, Method method, Object[] args)
throws Throwable throws Throwable
{ {

Loading…
Cancel
Save