private static class Location.FieldAccessLocation extends Location.AccessLocation
| Modifier and Type | Field and Description |
|---|---|
private java.lang.String |
fieldName
the name of the field being accessed at the point where the trigger point should be inserted
|
private java.lang.String |
typeName
the name of the type to which the field belongs or null if any type will do
|
count, flags, whenCompleteACCESS_READ, ACCESS_WRITE| Modifier | Constructor and Description |
|---|---|
private |
Location.FieldAccessLocation(java.lang.String typeName,
java.lang.String fieldName,
int count,
int flags,
boolean whenComplete)
construct a location identifying a field read trigger point
|
| Modifier and Type | Method and Description |
|---|---|
RuleTriggerAdapter |
getRuleAdapter(ClassVisitor cv,
TransformContext transformContext)
return an adapter which can be used to insert a trigger call in a method containing a trigger point whose
position matches this location
|
RuleCheckAdapter |
getRuleCheckAdapter(ClassVisitor cv,
TransformContext transformContext)
return an adapter which can be used to check whether a method contains a trigger point whose position
matches this location
|
java.lang.String |
toString() |
create, getLocationTypeprivate java.lang.String fieldName
private java.lang.String typeName
private Location.FieldAccessLocation(java.lang.String typeName,
java.lang.String fieldName,
int count,
int flags,
boolean whenComplete)
typeName - the name of the class owning the fieldfieldName - the name of the field being readcount - count identifying which access should be taken as the trigger pointflags - bit field comprising one or other of flags ACCESS_READ and ACCESS_WRITE identifying
whether this specifies field READ or WRITE operationswhenComplete - false if the trigger should be inserted before the access is performed
and true if it should be inserted afterpublic RuleCheckAdapter getRuleCheckAdapter(ClassVisitor cv, TransformContext transformContext)
getRuleCheckAdapter in class Locationpublic RuleTriggerAdapter getRuleAdapter(ClassVisitor cv, TransformContext transformContext)
getRuleAdapter in class Locationpublic java.lang.String toString()
toString in class java.lang.Object