public class ClassTransformer
extends org.objectweb.asm.ClassVisitor
| Modifier | Constructor and Description |
|---|---|
|
ClassTransformer(WeaveLog weaver,
WeaveConfig config,
byte[] inputClass,
ClassLoader loader)
This constructor weaves the given class and provides the result.
|
|
ClassTransformer(WeaveLog weaver,
WeaveConfig config,
org.objectweb.asm.ClassReader reader,
ClassLoader loader)
This constructor weaves the given class and provides the result.
|
protected |
ClassTransformer(WeaveLog weaver,
WeaveConfig config,
org.objectweb.asm.ClassWriter cw)
Initializes the object as a ClassVisitor.
|
| Modifier and Type | Method and Description |
|---|---|
String |
getClassLoaderIdentifier() |
String |
getClassName() |
String |
getFullClassName() |
String[] |
getInterfaces() |
String |
getPackageName() |
String |
getSignature() |
String |
getSourceFileName() |
String |
getSuperName() |
byte[] |
getWeaveResult() |
void |
visit(int version,
int access,
String name,
String signature,
String superName,
String[] interfaces)
A call back from the ClassVisitor.
|
org.objectweb.asm.AnnotationVisitor |
visitAnnotation(String descriptor,
boolean visible) |
void |
visitInnerClass(String name,
String outerName,
String innerName,
int access)
A call back from the ClassVisitor.
|
org.objectweb.asm.MethodVisitor |
visitMethod(int access,
String name,
String desc,
String signature,
String[] exceptions)
A call back from the ClassVisitor.
|
void |
visitSource(String source,
String debug)
A call back from the ClassVisitor.
|
org.objectweb.asm.AnnotationVisitor |
visitTypeAnnotation(int typeRef,
org.objectweb.asm.TypePath typePath,
String descriptor,
boolean visible) |
public ClassTransformer(WeaveLog weaver, WeaveConfig config, byte[] inputClass, ClassLoader loader) throws IOException
weaver - specifies the state of the weaver.config - specifies the configuration.inputClass - specifies a byte array containing the target class.loader - specifies a class loader that loaded the target class.IOException - may be thrown if an error occurs during the weaving.public ClassTransformer(WeaveLog weaver, WeaveConfig config, org.objectweb.asm.ClassReader reader, ClassLoader loader)
weaver - specifies the state of the weaver.config - specifies the configuration.reader - specifies a class reader to read the target class.loader - specifies a class loader that loaded the target class.protected ClassTransformer(WeaveLog weaver, WeaveConfig config, org.objectweb.asm.ClassWriter cw)
weaver - specifies the state of the weaver.config - specifies the configuration.cw - specifies the class writer (MetracerClassWriter).public org.objectweb.asm.AnnotationVisitor visitAnnotation(String descriptor, boolean visible)
visitAnnotation in class org.objectweb.asm.ClassVisitorpublic org.objectweb.asm.AnnotationVisitor visitTypeAnnotation(int typeRef,
org.objectweb.asm.TypePath typePath,
String descriptor,
boolean visible)
visitTypeAnnotation in class org.objectweb.asm.ClassVisitorpublic byte[] getWeaveResult()
public String getFullClassName()
public String getClassName()
public String getPackageName()
public String getClassLoaderIdentifier()
public void visit(int version,
int access,
String name,
String signature,
String superName,
String[] interfaces)
visit in class org.objectweb.asm.ClassVisitorpublic void visitSource(String source, String debug)
visitSource in class org.objectweb.asm.ClassVisitorpublic String getSourceFileName()
public void visitInnerClass(String name, String outerName, String innerName, int access)
visitInnerClass in class org.objectweb.asm.ClassVisitorpublic org.objectweb.asm.MethodVisitor visitMethod(int access,
String name,
String desc,
String signature,
String[] exceptions)
visitMethod in class org.objectweb.asm.ClassVisitorpublic String[] getInterfaces()
public String getSuperName()
public String getSignature()
Copyright © 2023. All rights reserved.