alt.jiapi.agent
Class HotSpotTransformer
java.lang.Object
alt.jiapi.agent.Transformer
alt.jiapi.agent.HotSpotTransformer
public class HotSpotTransformer
- extends Transformer
Transforms classes. Currently, only method invocations are
subject to instrumentation. Following is a list of properties,
that can be given as an argument to -javaagent command
line switch
- advice=fq_name_of_advice_class: Names a class that
extends alt.jiapi.util.HotSpotAdvice
- inclusion-rule=rule_string: A regular expression indicating
which classes are to be instrumented.
- ir=rule_string: same as above
- exclusion-rule=rule_string: A regular expression indicating
which classes are not to be instrumented.
- er=rule_string: same as above
- resolution=rule_string: A regular expression indicating
which method invocations should be the subject of instrumentation.
- dump: If given, dumps instrumented class into
working directory
- See Also:
HotSpotAdvice
Method Summary |
void |
init(java.util.Properties p)
Initialize Transformer with given properties. |
boolean |
transform(JiapiClass clazz)
Instrument given JiapiClass. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
HotSpotTransformer
public HotSpotTransformer()
init
public void init(java.util.Properties p)
- Description copied from class:
Transformer
- Initialize Transformer with given properties.
- Overrides:
init
in class Transformer
transform
public boolean transform(JiapiClass clazz)
- Instrument given JiapiClass.
- Overrides:
transform
in class Transformer
- Returns:
- true, if bytecode has changed. Default is to return false.
Copyright © 2001. Documenation generated August 26 2011.