org.jboss.byteman.agent
Class Location.AccessLocation

java.lang.Object
  extended by org.jboss.byteman.agent.Location
      extended by org.jboss.byteman.agent.Location.AccessLocation
Direct Known Subclasses:
Location.FieldAccessLocation, Location.VariableAccessLocation
Enclosing class:
Location

private abstract static class Location.AccessLocation
extends Location

location identifying a generic access trigger point


Field Summary
protected  int count
          count identifying which access should be taken as the trigger point.
protected  int flags
          flags identifying which type of access should be used to identify the trigger.
protected  boolean whenComplete
          flag which is false if the trigger should be inserted before the field access is performed and true if it should be inserted after
 
Fields inherited from class org.jboss.byteman.agent.Location
ACCESS_READ, ACCESS_WRITE
 
Constructor Summary
protected Location.AccessLocation(int count, int flags, boolean whenComplete)
           
 
Method Summary
protected static Location create(java.lang.String parameters, int flags, boolean whenComplete)
          create a location identifying a method entry trigger point
 LocationType getLocationType()
          identify the type of this location
 
Methods inherited from class org.jboss.byteman.agent.Location
create, getRuleAdapter, getRuleCheckAdapter
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

count

protected int count
count 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 flags
flags 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 whenComplete
flag which is false if the trigger should be inserted before the field access is performed and true if it should be inserted after

Constructor Detail

Location.AccessLocation

protected Location.AccessLocation(int count,
                                  int flags,
                                  boolean whenComplete)
Method Detail

create

protected static Location create(java.lang.String parameters,
                                 int flags,
                                 boolean whenComplete)
create a location identifying a method entry trigger point

Parameters:
parameters - the text of the parameters appended to the location specifier
whenComplete - 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

public LocationType getLocationType()
Description copied from class: Location
identify the type of this location

Specified by:
getLocationType in class Location
Returns:
the type of this location