|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.ikokoon.serenity.instrumentation.VisitorFactory
public class VisitorFactory
This class instantiates visitors for classes, methods, field, signature and annotations.
| Constructor Summary | |
|---|---|
VisitorFactory()
|
|
| Method Summary | |
|---|---|
static org.objectweb.asm.AnnotationVisitor |
getAnnotationVisitor(org.objectweb.asm.AnnotationVisitor visitor,
java.lang.String className,
java.lang.String description)
This method constructs an annotation visitor to visit annotations. |
static org.objectweb.asm.ClassVisitor |
getClassVisitor(java.lang.Class<org.objectweb.asm.ClassVisitor>[] classAdapterClasses,
java.lang.String className,
byte[] classBytes,
java.io.ByteArrayOutputStream source)
Instantiates a chain of class visitors. |
static org.objectweb.asm.FieldVisitor |
getFieldVisitor(org.objectweb.asm.FieldVisitor visitor,
java.lang.Class<?> klass,
java.lang.String className,
java.lang.String description,
java.lang.String signature)
This method constructs a field visitor chain that will visit the byte code for a field in a class. |
static org.objectweb.asm.MethodVisitor |
getMethodVisitor(org.objectweb.asm.MethodVisitor visitor,
java.lang.Class<?> klass,
java.lang.String className,
java.lang.String name,
java.lang.String desc)
This method constructs a method visitor chain based on the class of the method adapter passed as a parameter. |
static org.objectweb.asm.signature.SignatureVisitor |
getSignatureVisitor(java.lang.String className,
java.lang.String signature)
This method constructs a signature visitor that will visit a signature for something, could be an annotation or a method. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public VisitorFactory()
| Method Detail |
|---|
public static org.objectweb.asm.ClassVisitor getClassVisitor(java.lang.Class<org.objectweb.asm.ClassVisitor>[] classAdapterClasses,
java.lang.String className,
byte[] classBytes,
java.io.ByteArrayOutputStream source)
classAdapterClasses - the class visitor classesclassName - the name of the class to be visitedclassBytes - the byte array of the byte codesource - the output stream of the source code for the class
public static org.objectweb.asm.MethodVisitor getMethodVisitor(org.objectweb.asm.MethodVisitor visitor,
java.lang.Class<?> klass,
java.lang.String className,
java.lang.String name,
java.lang.String desc)
visitor - the parent method visitorklass - the class of the method visitor to initialiseclassName - the name of the class that the method visitor will visitname - the name of the methoddesc - the description or signature of the method in byte code format
public static org.objectweb.asm.FieldVisitor getFieldVisitor(org.objectweb.asm.FieldVisitor visitor,
java.lang.Class<?> klass,
java.lang.String className,
java.lang.String description,
java.lang.String signature)
visitor - the parent field visitorklass - the field visitor class typeclassName - the name of the class the field is indescription - the description of the field in byte code formatsignature - the signature of the field in byte code
public static org.objectweb.asm.signature.SignatureVisitor getSignatureVisitor(java.lang.String className,
java.lang.String signature)
className - the name of the class the signature is insignature - the signature in byte code to visit
public static org.objectweb.asm.AnnotationVisitor getAnnotationVisitor(org.objectweb.asm.AnnotationVisitor visitor,
java.lang.String className,
java.lang.String description)
visitor - the parent annotation visitorclassName - the name of the class with the annotationdescription - the description or signature of the annotation
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||