Class TransformerUtils
- java.lang.Object
-
- com.intergral.deep.agent.tracepoint.inst.asm.TransformerUtils
-
public final class TransformerUtils extends Object
Utilities for transforming the classes.
-
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static booleanisExcludedClass(Class<?> clazz)Is the class excluded from transformation.static booleanisExcludedClass(String classname)Is the class excluded from transformation.static booleanstoreUnsafe(String path, byte[] original, byte[] transformed, String className)Store the transformed bytes to allow us to debug them in enabled.
-
-
-
Method Detail
-
storeUnsafe
public static boolean storeUnsafe(String path, byte[] original, byte[] transformed, String className)
Store the transformed bytes to allow us to debug them in enabled.- Parameters:
path- the path to store the bytesoriginal- the unmodified bytestransformed- the modified bytesclassName- the class name being modified- Returns:
trueif we stored the data
-
isExcludedClass
public static boolean isExcludedClass(Class<?> clazz)
Is the class excluded from transformation.- Parameters:
clazz- the class- Returns:
trueif we should not transform this class.
-
isExcludedClass
public static boolean isExcludedClass(String classname)
Is the class excluded from transformation.- Parameters:
classname- the name of the class- Returns:
trueif we should not transform this class.
-
-