net.csdn.enhancer
Class ControllerEnhancer
java.lang.Object
net.csdn.enhancer.ControllerEnhancer
- Direct Known Subclasses:
- FilterEnhancer
public abstract class ControllerEnhancer
- extends Object
4/9/13 WilliamZhu(allwefantasy@gmail.com)
|
Field Summary |
protected javassist.ClassPool |
classPool
|
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
classPool
protected javassist.ClassPool classPool
ControllerEnhancer
public ControllerEnhancer()
enhanceThisClass
public abstract javassist.CtClass enhanceThisClass(DataInputStream dataInputStream)
throws Exception
- Throws:
Exception
enhanceThisClass2
public abstract void enhanceThisClass2(List<javassist.CtClass> ctClasses)
throws Exception
- Throws:
Exception
hasAnnotation
protected boolean hasAnnotation(javassist.CtClass ctClass,
String annotation)
throws ClassNotFoundException
- Throws:
ClassNotFoundException
hasAnnotation
protected boolean hasAnnotation(javassist.CtField ctField,
String annotation)
throws ClassNotFoundException
- Throws:
ClassNotFoundException
hasAnnotation
protected boolean hasAnnotation(javassist.CtMethod ctMethod,
String annotation)
throws ClassNotFoundException
- Throws:
ClassNotFoundException
createAnnotation
protected static void createAnnotation(javassist.bytecode.AnnotationsAttribute attribute,
Class<? extends Annotation> annotationType,
Map<String,javassist.bytecode.annotation.MemberValue> members)
createAnnotation
protected static void createAnnotation(javassist.bytecode.AnnotationsAttribute attribute,
Class<? extends Annotation> annotationType)
getAnnotations
protected static javassist.bytecode.AnnotationsAttribute getAnnotations(javassist.CtClass ctClass)
getAnnotations
protected static javassist.bytecode.AnnotationsAttribute getAnnotations(javassist.CtField ctField)
getAnnotations
protected static javassist.bytecode.AnnotationsAttribute getAnnotations(javassist.CtMethod ctMethod)
Copyright © 2014. All Rights Reserved.