public final class Agent extends Object
An instrumentation agent that removes final modifiers from classes, fields and methods for classes matching the agent's argument.
The value supplied to as the agent argument is a comma-separated list
of package names or qualified class names.
These are matched by invocations to String.startsWith(String)
Modifier and Type | Method and Description |
---|---|
static void |
agentmain(String agentArgs,
Instrumentation instrumentation)
agentmain.
|
static void |
premain(String agentArgs,
Instrumentation instrumentation)
premain.
|
public static void premain(String agentArgs, Instrumentation instrumentation)
premain.
agentArgs
- a String
object.instrumentation
- a Instrumentation
object.public static void agentmain(String agentArgs, Instrumentation instrumentation)
agentmain.
agentArgs
- a String
object.instrumentation
- a Instrumentation
object.Copyright © 2018 earcam. All rights reserved.