Package org.jboss.byteman.agent
Class Location.AccessLocation
java.lang.Object
org.jboss.byteman.agent.Location
org.jboss.byteman.agent.Location.AccessLocation
- Direct Known Subclasses:
Location.FieldAccessLocation
,Location.VariableAccessLocation
- Enclosing class:
Location
location identifying a generic access trigger point
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected int
count identifying which access should be taken as the trigger point.protected int
flags identifying which type of access should be used to identify the trigger.protected boolean
flag which is false if the trigger should be inserted before the field access is performed and true if it should be inserted afterFields inherited from class org.jboss.byteman.agent.Location
ACCESS_READ, ACCESS_WRITE
-
Constructor Summary
ConstructorsModifierConstructorDescriptionprotected
AccessLocation
(int count, int flags, boolean whenComplete) -
Method Summary
Modifier and TypeMethodDescriptionprotected static Location
create a location identifying a method entry trigger pointidentify the type of this locationMethods inherited from class org.jboss.byteman.agent.Location
create, getRuleAdapter, getRuleCheckAdapter
-
Field Details
-
count
protected int countcount identifying which access should be taken as the trigger point. if not specified as a parameter this defaults to the first access. -
flags
protected int flagsflags identifying which type of access should be used to identify the trigger. this is either ACCESS_READ, ACCESS_WRITE or an OR of these two values -
whenComplete
protected boolean whenCompleteflag which is false if the trigger should be inserted before the field access is performed and true if it should be inserted after
-
-
Constructor Details
-
AccessLocation
protected AccessLocation(int count, int flags, boolean whenComplete)
-
-
Method Details
-
create
create a location identifying a method entry trigger point- Parameters:
parameters
- the text of the parameters appended to the location specifierflags
- 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 after- Returns:
- a method entry location or null if the parameters is not a blank String
-
getLocationType
Description copied from class:Location
identify the type of this location- Specified by:
getLocationType
in classLocation
- Returns:
- the type of this location
-