com.tc.object.config
Interface TransparencyCodeSpec


public interface TransparencyCodeSpec

Transparency code specification, modifies method code


Method Summary
 boolean isArraycopyInstrumentationReq(java.lang.String className, java.lang.String methodName)
          Check whether calling System.arraycopy() should be instrumented
 boolean isArrayOperatorInstrumentationReq()
          Check whether store operations on arrays should be instrumented
 boolean isFieldInstrumentationReq(java.lang.String fieldName)
          Check whether field access should be instrumented
 boolean isForceRawFieldAccess()
          Should field accessed be forced to be raw access
 boolean isMonitorInstrumentationReq()
          Check whether MONITORENTER and MONNITOREXIT should be instrumented
 boolean isWaitNotifyInstrumentationReq()
          Check whether wait/notify instructions should be instrumented
 void setArraycopyInstrumentationReq(boolean arraycopyInstrumentationReq)
          Set that System.arraycopy() should be instrumented
 void setArrayOperatorInstrumentationReq(boolean arrayOperatorInstrumentationReq)
          Set that array store operations should be instrumented
 void setFieldInstrumentationReq(boolean fieldInstrumentationReq)
          Set that field access should be instrumented
 void setForceRawFieldAccess()
          Force the code adapter to use raw field reads
 void setMonitorInstrumentationReq(boolean monitorInstrumentationReq)
          Set that MONITORENTER and MONNITOREXIT should be instrumented
 void setWaitNotifyInstrumentationReq(boolean waitNotifyInstrumentationReq)
          Set that wait/notify should be instrumented
 

Method Detail

isArraycopyInstrumentationReq

boolean isArraycopyInstrumentationReq(java.lang.String className,
                                      java.lang.String methodName)
Check whether calling System.arraycopy() should be instrumented

Parameters:
className - Class name to check
Returns:
True to instrument

setArraycopyInstrumentationReq

void setArraycopyInstrumentationReq(boolean arraycopyInstrumentationReq)
Set that System.arraycopy() should be instrumented

Parameters:
arraycopyInstrumentationReq - Flag

isArrayOperatorInstrumentationReq

boolean isArrayOperatorInstrumentationReq()
Check whether store operations on arrays should be instrumented

Returns:
True to instrument

setArrayOperatorInstrumentationReq

void setArrayOperatorInstrumentationReq(boolean arrayOperatorInstrumentationReq)
Set that array store operations should be instrumented

Parameters:
arrayOperatorInstrumentationReq - Flag

isFieldInstrumentationReq

boolean isFieldInstrumentationReq(java.lang.String fieldName)
Check whether field access should be instrumented

Parameters:
fieldName - Field to check
Returns:
True to instrument

setFieldInstrumentationReq

void setFieldInstrumentationReq(boolean fieldInstrumentationReq)
Set that field access should be instrumented

Parameters:
fieldInstrumentationReq - Flag

isWaitNotifyInstrumentationReq

boolean isWaitNotifyInstrumentationReq()
Check whether wait/notify instructions should be instrumented

Returns:
True to instrument

setWaitNotifyInstrumentationReq

void setWaitNotifyInstrumentationReq(boolean waitNotifyInstrumentationReq)
Set that wait/notify should be instrumented

Parameters:
waitNotifyInstrumentationReq - Flag

isMonitorInstrumentationReq

boolean isMonitorInstrumentationReq()
Check whether MONITORENTER and MONNITOREXIT should be instrumented

Returns:
True if MONITORENTER and MONNITOREXIT should be instrumented

setMonitorInstrumentationReq

void setMonitorInstrumentationReq(boolean monitorInstrumentationReq)
Set that MONITORENTER and MONNITOREXIT should be instrumented

Parameters:
monitorInstrumentationReq - Flag

setForceRawFieldAccess

void setForceRawFieldAccess()
Force the code adapter to use raw field reads


isForceRawFieldAccess

boolean isForceRawFieldAccess()
Should field accessed be forced to be raw access



Copyright © 2010 Terracotta, Inc.. All Rights Reserved.