protected class AbstractInstrumenter.CustomFieldFilter extends Object implements FieldFilter
Constructor and Description |
---|
CustomFieldFilter(ClassDescriptor descriptor,
Set classNames) |
Modifier and Type | Method and Description |
---|---|
boolean |
shouldInstrumentField(String className,
String fieldName)
Should this field definition be instrumented?
|
boolean |
shouldTransformFieldAccess(String transformingClassName,
String fieldOwnerClassName,
String fieldName)
Should we instrument *access to* the given field.
|
public CustomFieldFilter(ClassDescriptor descriptor, Set classNames)
public boolean shouldInstrumentField(String className, String fieldName)
FieldFilter
shouldInstrumentField
in interface FieldFilter
className
- The name of the class currently being processedfieldName
- The name of the field being checked.public boolean shouldTransformFieldAccess(String transformingClassName, String fieldOwnerClassName, String fieldName)
FieldFilter
FieldFilter.shouldInstrumentField(java.lang.String, java.lang.String)
in that here we are talking about a particular usage of
a field.shouldTransformFieldAccess
in interface FieldFilter
transformingClassName
- The class currently being transformed.fieldOwnerClassName
- The name of the class owning this field being checked.fieldName
- The name of the field being checked.Copyright © 2016 JBoss by Red Hat. All rights reserved.