Package org.jboss.bridger
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 void
doAccept
(org.objectweb.asm.ClassWriter classWriter, org.objectweb.asm.ClassReader classReader) int
int
static void
Translate all.class
files in the given list of files and directories.private static void
byte[]
transform
(InputStream input) void
transform
(InputStream input, OutputStream output) void
transform
(RandomAccessFile file) byte[]
transform
(ClassLoader loader, String className, Class<?> classBeingRedefined, ProtectionDomain protectionDomain, byte[] classfileBuffer) void
transformRecursive
(File... files) Translate all.class
files in the given list of files and directories.void
transformRecursive
(String... names) Translate all.class
files in the given list of files and directories.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface java.lang.instrument.ClassFileTransformer
transform
-
Field Details
-
transformedMethodCount
-
transformedMethodCallCount
-
-
Constructor Details
-
Bridger
public Bridger()
-
-
Method Details
-
main
Translate all.class
files in the given list of files and directories.- Parameters:
args
- the file and directory names
-
transformRecursive
Translate all.class
files in the given list of files and directories.- Parameters:
names
- the file and directory names
-
transformRecursive
Translate all.class
files 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:
transform
in 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
-