瀏覽代碼

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 年之前
父節點
當前提交
0f1701d237
共有 1 個檔案被更改,包括 6 行新增1 行删除
  1. 6
    1
      src/main/javassist/bytecode/annotation/AnnotationImpl.java

+ 6
- 1
src/main/javassist/bytecode/annotation/AnnotationImpl.java 查看文件

@@ -24,7 +24,7 @@ import javassist.bytecode.MethodInfo;

import java.lang.reflect.*;

class AnnotationImpl implements InvocationHandler {
public class AnnotationImpl implements InvocationHandler {
private Annotation annotation;
private ClassPool pool;
private ClassLoader classLoader;
@@ -50,6 +50,11 @@ class AnnotationImpl implements InvocationHandler {
classLoader = loader;
}

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

Loading…
取消
儲存