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
| クラス 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 optionsinstrumentation - 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.