|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.multiverse.instrumentation.AbstractInstrumentationPhase
org.multiverse.instrumentation.PreventReinstrumentationInstrumentationPhase
public class PreventReinstrumentationInstrumentationPhase
A control flow InstrumentationPhase responsible for preventing that a class already has been instrumented:
InstrumentationStamp
with a instrumentorName and instrumentorVersion based on the provided compiler. So next
time this class is going to be re-instrumented, the multiverse instrumentation
is skipped or an error is thrown if the instrumentorName/instrumentorVersion don't match.
| Constructor Summary | |
|---|---|
PreventReinstrumentationInstrumentationPhase(Instrumentor instrumentor)
Creates a new PreventReinstrumentationInstrumentationPhase. |
|
| Method Summary | |
|---|---|
protected Clazz |
doInstrument(Environment environment,
Clazz originalClazz)
|
| Methods inherited from class org.multiverse.instrumentation.AbstractInstrumentationPhase |
|---|
doInit, getName, instrument, toString |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public PreventReinstrumentationInstrumentationPhase(Instrumentor instrumentor)
instrumentor - the Instrumentor that is going to compile the classes.
java.lang.NullPointerException - if instrumentor is null.| Method Detail |
|---|
protected Clazz doInstrument(Environment environment,
Clazz originalClazz)
doInstrument in class AbstractInstrumentationPhase
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||