Package jadex.bytecode.access
Class AccessAgent
java.lang.Object
jadex.bytecode.access.AccessAgent
- All Implemented Interfaces:
ClassFileTransformer
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic void
agentmain
(String agentargs, Instrumentation inst) static void
Main for testing.static void
premain
(String agentargs, Instrumentation inst) Agent in premain mode (unimplemented).byte[]
transform
(ClassLoader loader, String className, Class<?> classBeingRedefined, ProtectionDomain protectionDomain, byte[] classfileBuffer) Transforms a class using instrumentation.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
-
Constructor Details
-
AccessAgent
public AccessAgent()
-
-
Method Details
-
transform
public byte[] transform(ClassLoader loader, String className, Class<?> classBeingRedefined, ProtectionDomain protectionDomain, byte[] classfileBuffer) throws IllegalClassFormatException Transforms a class using instrumentation.- Specified by:
transform
in interfaceClassFileTransformer
- Parameters:
loader
- The class loader.className
- The class nameclassBeingRedefined
- The class being redefined.protectionDomain
- Protection domain.classfileBuffer
- Original classfile.- Returns:
- Transformed class.
- Throws:
IllegalClassFormatException
-
premain
Agent in premain mode (unimplemented).- Parameters:
agentargs
- Agent arguments.inst
- Instrumentation.
-
agentmain
-
main
Main for testing.- Parameters:
args
- Arguments.
-