Package daikon.dcomp
Class Instrument
- Object
-
- Instrument
-
- All Implemented Interfaces:
ClassFileTransformer
public class Instrument extends Object implements ClassFileTransformer
-
-
Constructor Summary
Constructors Constructor Description Instrument()
Instrument class constructor.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description protected static boolean
is_transformer(String classname)
Returns whether or not the specified class is part of a tool known to do Java byte code transformation.static void
print_call_stack()
Debug code for printing the current run-time call stack.byte @Nullable []
transform(ClassLoader loader, @InternalForm String className, Class<?> classBeingRedefined, ProtectionDomain protectionDomain, byte[] classfileBuffer)
-
Methods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface ClassFileTransformer
transform
-
-
-
-
Constructor Detail
-
Instrument
public Instrument()
Instrument class constructor. Setup debug directories, if needed.
-
-
Method Detail
-
print_call_stack
public static void print_call_stack()
Debug code for printing the current run-time call stack.
-
transform
public byte @Nullable [] transform(ClassLoader loader, @InternalForm String className, Class<?> classBeingRedefined, ProtectionDomain protectionDomain, byte[] classfileBuffer) throws IllegalClassFormatException
- Specified by:
transform
in interfaceClassFileTransformer
- Throws:
IllegalClassFormatException
-
is_transformer
@Pure protected static boolean is_transformer(String classname)
Returns whether or not the specified class is part of a tool known to do Java byte code transformation. We need to warn the user that this may not work correctly.- Parameters:
classname
- class to be checked- Returns:
- true if classname is a known transformer
-
-