jp.objectfanatics.assertion.agent
クラス Agent

java.lang.Object
  上位を拡張 jp.objectfanatics.assertion.agent.Agent
すべての実装されたインタフェース:
ClassFileTransformer

public class Agent
extends Object
implements ClassFileTransformer

Agent for weaving assertion functions into class file bytes.

作成者:
Makoto Sato

コンストラクタの概要
Agent()
           
 
メソッドの概要
static void premain(String agentArgs, Instrumentation instrumentation)
          Creates and adds instance of this class to instrumentation.
 byte[] transform(ClassLoader loader, String className, Class<?> classBeingRedefined, ProtectionDomain protectionDomain, byte[] classfileBuffer)
          Weaves assertion functions into class file bytes.
 
クラス java.lang.Object から継承されたメソッド
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

コンストラクタの詳細

Agent

public Agent()
メソッドの詳細

premain

public static void premain(String agentArgs,
                           @NotNull
                           Instrumentation instrumentation)
Creates and adds instance of this class to instrumentation.

パラメータ:
agentArgs - agent options
instrumentation - Instrumentation

transform

public byte[] transform(ClassLoader loader,
                        String className,
                        Class<?> classBeingRedefined,
                        ProtectionDomain protectionDomain,
                        @NotNull
                        byte[] classfileBuffer)
                 throws IllegalClassFormatException
Weaves assertion functions into class file bytes.

定義:
インタフェース ClassFileTransformer 内の transform
例外:
IllegalClassFormatException


Copyright © 2009. All Rights Reserved.