public final class DiSL
extends java.lang.Object
Modifier and Type | Class and Description |
---|---|
static class |
DiSL.CodeOption
Options for code transformations performed by DiSL.
|
Constructor and Description |
---|
DiSL(boolean useDynamicBypass)
Deprecated.
|
Modifier and Type | Method and Description |
---|---|
static DiSL |
init()
Loads transformers, exclusion lists, and DiSL classes with snippets, and
creates an instance of the
DiSL class. |
byte[] |
instrument(byte[] originalBytes)
Instruments the given class, provided as an array of bytes representing
the contents of its class file.
|
void |
terminate()
Termination handler - should be invoked by the instrumentation framework.
|
@Deprecated public DiSL(boolean useDynamicBypass) throws ch.usi.dag.disl.exception.DiSLException
Note: This constructor is deprecated and will be removed in later
releases. Use the init()
static factory method to obtain a
DiSL
instance.
useDynamicBypass
- determines whether to generate bypass code and whether to control
the bypass dynamically.ch.usi.dag.disl.exception.DiSLException
public static DiSL init() throws ch.usi.dag.disl.exception.DiSLException
DiSL
class.DiSL
instance.ch.usi.dag.disl.exception.DiSLException
- if the initialization failed.public byte[] instrument(byte[] originalBytes) throws ch.usi.dag.disl.exception.DiSLException
originalBytes
- the class to instrument as an array of bytesnull
if the class has not been instrumented.ch.usi.dag.disl.exception.DiSLException
public void terminate()