Modifier and Type | Field and Description |
---|---|
private int |
count
count identifying which synchronization should be taken as the trigger point.
|
private boolean |
whenComplete
flag which is false if the trigger should be inserted before the synchronization is performed
and true if it should be inserted after
|
ACCESS_READ, ACCESS_WRITE
Modifier | Constructor and Description |
---|---|
private |
Location.SynchronizeLocation(int count,
boolean whenComplete)
construct a location identifying a synchronization trigger point
|
Modifier and Type | Method and Description |
---|---|
protected static Location |
create(java.lang.String parameters,
boolean whenComplete)
create a location identifying a synchronization trigger point
|
LocationType |
getLocationType()
identify the type of this location
|
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() |
private int count
private boolean whenComplete
private Location.SynchronizeLocation(int count, boolean whenComplete)
count
- count identifying which synchronization should be taken as the trigger pointwhenComplete
- false if the trigger should be inserted before the synchronization is
performed and true if it should be inserted afterprotected static Location create(java.lang.String parameters, boolean whenComplete)
parameters
- the text of the parameters appended to the location specifierwhenComplete
- false if the trigger should be inserted before the synchronization is
performed and true if it should be inserted afterpublic RuleCheckAdapter getRuleCheckAdapter(ClassVisitor cv, TransformContext transformContext)
getRuleCheckAdapter
in class Location
public RuleTriggerAdapter getRuleAdapter(ClassVisitor cv, TransformContext transformContext)
getRuleAdapter
in class Location
public LocationType getLocationType()
Location
getLocationType
in class Location
public java.lang.String toString()
toString
in class java.lang.Object