|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.jboss.byteman.agent.Location
org.jboss.byteman.agent.Location.AccessLocation
org.jboss.byteman.agent.Location.VariableAccessLocation
private static class Location.VariableAccessLocation
location identifying a variable access trigger point
Field Summary | |
---|---|
private boolean |
isIndex
flag which is true if the name is a method parameter index such as $0, $1 etc otherwise false |
private java.lang.String |
variableName
the name of the variable being accessed at the point where the trigger point should be inserted |
Fields inherited from class org.jboss.byteman.agent.Location.AccessLocation |
---|
count, flags, whenComplete |
Fields inherited from class org.jboss.byteman.agent.Location |
---|
ACCESS_READ, ACCESS_WRITE |
Constructor Summary | |
---|---|
protected |
Location.VariableAccessLocation(java.lang.String variablename,
int count,
int flags,
boolean whenComplete)
construct a location identifying a variable read trigger point |
Method Summary | |
---|---|
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()
|
Methods inherited from class org.jboss.byteman.agent.Location.AccessLocation |
---|
create |
Methods inherited from class org.jboss.byteman.agent.Location |
---|
create |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
private java.lang.String variableName
private boolean isIndex
Constructor Detail |
---|
protected Location.VariableAccessLocation(java.lang.String variablename, int count, int flags, boolean whenComplete)
typeName
- the name of the class owning the fieldvariablename
- the name of the variable 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 afterMethod Detail |
---|
public 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.AccessLocation
public java.lang.String toString()
toString
in class java.lang.Object
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |