public abstract class Location extends Object
Modifier and Type | Field | Description |
---|---|---|
static int |
ACCESS_READ |
flag indicating that a field access location refers to field READ operations
|
static int |
ACCESS_WRITE |
flag indicating that a field access location refers to field WRITE operations
|
Constructor | Description |
---|---|
Location() |
Modifier and Type | Method | Description |
---|---|---|
static Location |
create(LocationType type,
String parameters) |
create a location object of a given type
|
abstract LocationType |
getLocationType() |
identify the type of this location
|
abstract 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
|
abstract 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
|
public static final int ACCESS_READ
public static final int ACCESS_WRITE
public static Location create(LocationType type, String parameters)
type
- the type of location being specifiedparameters
- the text of the parameters appended to the location specifierpublic abstract RuleCheckAdapter getRuleCheckAdapter(org.objectweb.asm.ClassVisitor cv, TransformContext transformContext)
cv
- the current class visitortransformContext
- the current transform contextpublic abstract RuleTriggerAdapter getRuleAdapter(org.objectweb.asm.ClassVisitor cv, TransformContext transformContext)
cv
- the current class visitortransformContext
- the current transform contextpublic abstract LocationType getLocationType()
Copyright © 2018. All rights reserved.