Class AccessAgent

java.lang.Object
jadex.bytecode.access.AccessAgent
All Implemented Interfaces:
ClassFileTransformer

public class AccessAgent extends Object implements ClassFileTransformer
  • 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 interface ClassFileTransformer
      Parameters:
      loader - The class loader.
      className - The class name
      classBeingRedefined - The class being redefined.
      protectionDomain - Protection domain.
      classfileBuffer - Original classfile.
      Returns:
      Transformed class.
      Throws:
      IllegalClassFormatException
    • premain

      public static void premain(String agentargs, Instrumentation inst)
      Agent in premain mode (unimplemented).
      Parameters:
      agentargs - Agent arguments.
      inst - Instrumentation.
    • agentmain

      public static void agentmain(String agentargs, Instrumentation inst)
    • main

      public static void main(String[] args)
      Main for testing.
      Parameters:
      args - Arguments.