Class Bridger
java.lang.Object
org.jboss.bridger.Bridger
- All Implemented Interfaces:
ClassFileTransformer
-
Nested Class Summary
Nested Classes -
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprivate voiddoAccept(org.objectweb.asm.ClassWriter classWriter, org.objectweb.asm.ClassReader classReader) intintstatic voidTranslate all.classfiles in the given list of files and directories.private static voidbyte[]transform(InputStream input) voidtransform(InputStream input, OutputStream output) voidtransform(RandomAccessFile file) byte[]transform(ClassLoader loader, String className, Class<?> classBeingRedefined, ProtectionDomain protectionDomain, byte[] classfileBuffer) voidtransformRecursive(File... files) Translate all.classfiles in the given list of files and directories.voidtransformRecursive(String... names) Translate all.classfiles in the given list of files and directories.Methods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface ClassFileTransformer
transform
-
Field Details
-
transformedMethodCount
-
transformedMethodCallCount
-
-
Constructor Details
-
Bridger
public Bridger()
-
-
Method Details
-
main
Translate all.classfiles in the given list of files and directories.- Parameters:
args- the file and directory names
-
transformRecursive
Translate all.classfiles in the given list of files and directories.- Parameters:
names- the file and directory names
-
transformRecursive
Translate all.classfiles in the given list of files and directories.- Parameters:
files- the files and directories
-
transform
public byte[] transform(ClassLoader loader, String className, Class<?> classBeingRedefined, ProtectionDomain protectionDomain, byte[] classfileBuffer) throws IllegalClassFormatException - Specified by:
transformin interfaceClassFileTransformer- Throws:
IllegalClassFormatException
-
transform
-
getTransformedMethodCount
public int getTransformedMethodCount() -
getTransformedMethodCallCount
public int getTransformedMethodCallCount() -
doAccept
private void doAccept(org.objectweb.asm.ClassWriter classWriter, org.objectweb.asm.ClassReader classReader) throws IllegalClassFormatException - Throws:
IllegalClassFormatException
-
transform
public void transform(InputStream input, OutputStream output) throws IllegalClassFormatException, IOException -
transform
-
safeClose
-