Package de.uzl.its.swat.instrument
Class Transformer
java.lang.Object
de.uzl.its.swat.instrument.Transformer
- All Implemented Interfaces:
- ClassFileTransformer
This class runs all the different transformers.
- 
Constructor SummaryConstructors
- 
Method SummaryModifier and TypeMethodDescriptionstatic voidaddInstrumentedClass(String cname, InternalTransformerType transformer) Adds a class to the list of instrumented classesstatic HashMap<String,ArrayList<InternalTransformerType>> static PrintBoxstatic booleanisInstrumented(String cname) Checks if a class has already been instrumentedstatic booleanstatic voidpremain(String agentArgs, Instrumentation inst) static voidretransform(String cname) static booleanshouldInstrument(String cname) Checks if a class should be instrumented.Methods inherited from class java.lang.Objectclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface java.lang.instrument.ClassFileTransformertransform, transform
- 
Constructor Details- 
Transformerpublic Transformer()
 
- 
- 
Method Details- 
retransform
- 
isInstrumentedChecks if a class has already been instrumented- Parameters:
- cname- the name of the class
- Returns:
- true if the class has been instrumented
 
- 
addInstrumentedClassAdds a class to the list of instrumented classes- Parameters:
- cname- the name of the class
- transformer- the transformer that instrumented the class
 
- 
isLoaded
- 
premain
- 
shouldInstrumentChecks if a class should be instrumented. If the instrumentPackages are set, only classes in these packages will be instrumented. If the excludePackages are set, classes in these packages will not be instrumented.- Parameters:
- cname- the name of the class
- Returns:
- true if the class should be instrumented, false otherwise
 
- 
getInstrumentedClasses
- 
getPrintBox
 
-