|
|||||||||
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.InvokeLocation
private static class Location.InvokeLocation
location identifying a method invocation trigger point
Field Summary | |
---|---|
private int |
count
count identifying which invocation should be taken as the trigger point. |
private java.lang.String |
methodName
the name of the method being invoked at the point where the trigger point should be inserted |
private java.lang.String |
signature
the method signature in externalised form |
private java.lang.String |
typeName
the name of the type to which the method belongs or null if any type will do |
private boolean |
whenComplete
flag which is false if the trigger should be inserted before the method invocation 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 | |
---|---|
private |
Location.InvokeLocation(java.lang.String typeName,
java.lang.String methodName,
java.lang.String signature,
int count,
boolean whenComplete)
construct a location identifying a method invocation trigger point |
Method Summary | |
---|---|
protected static Location |
create(java.lang.String parameters,
boolean whenComplete)
create a location identifying a method entry 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()
|
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 methodName
private java.lang.String typeName
private java.lang.String signature
private int count
private boolean whenComplete
Constructor Detail |
---|
private Location.InvokeLocation(java.lang.String typeName, java.lang.String methodName, java.lang.String signature, int count, boolean whenComplete)
typeName
- the name of the class owning the methodmethodName
- the name of the method being calledsignature
- the method signature in externalised formcount
- count identifying which invocation should be taken as the trigger pointwhenComplete
- false if the trigger should be inserted before the method invocation is
performed and true if it should be inserted afterMethod Detail |
---|
protected 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 access is performed
and true if ti shoudl be inserted after
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
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 |