Class Location.LineLocation
java.lang.Object
org.jboss.byteman.agent.Location
org.jboss.byteman.agent.Location.LineLocation
- Enclosing class:
Location
location identifying a method line trigger point
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate intthe line at which the trigger point should be insertedFields inherited from class Location
ACCESS_READ, ACCESS_WRITE -
Constructor Summary
ConstructorsModifierConstructorDescriptionprivateLineLocation(int targetLine) construct a location identifying a method line trigger point -
Method Summary
Modifier and TypeMethodDescriptionprotected static Locationcreate a location identifying a method entry trigger pointidentify the type of this locationgetRuleAdapter(org.objectweb.asm.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 locationgetRuleCheckAdapter(org.objectweb.asm.ClassVisitor cv, TransformContext transformContext) return an adapter which can be used to check whether a method contains a trigger point whose position matches this locationtoString()
-
Field Details
-
targetLine
private int targetLinethe line at which the trigger point should be inserted
-
-
Constructor Details
-
LineLocation
private LineLocation(int targetLine) construct a location identifying a method line trigger point- Parameters:
targetLine- the line at which the trigger point should be inserted
-
-
Method Details
-
create
-
getRuleCheckAdapter
public RuleCheckAdapter getRuleCheckAdapter(org.objectweb.asm.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- Specified by:
getRuleCheckAdapterin classLocation- Parameters:
cv- the current class visitortransformContext- the current transform context- Returns:
- the required adapter
-
getRuleAdapter
public RuleTriggerAdapter getRuleAdapter(org.objectweb.asm.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- Specified by:
getRuleAdapterin classLocation- Parameters:
cv- the current class visitortransformContext- the current transform context- Returns:
- the required adapter
-
getLocationType
Description copied from class:Locationidentify the type of this location- Specified by:
getLocationTypein classLocation- Returns:
- the type of this location
-
toString
-