public class WhitelistedClassFieldProfilingFilter extends AbstractFilter
classes, LOGGER, objects, packages
Constructor and Description |
---|
WhitelistedClassFieldProfilingFilter()
Builds an empty white list filter
|
WhitelistedClassFieldProfilingFilter(java.io.File configFile)
Build a filter from a file.
|
WhitelistedClassFieldProfilingFilter(java.lang.String configFile)
Build a filter from a file.
|
WhitelistedClassFieldProfilingFilter(WhitelistedClassFieldProfilingFilter filter)
Builds a white list filter by duplicating another white list filter
|
Modifier and Type | Method and Description |
---|---|
ProfilingFilter |
duplicateFilter()
Returns a duplicate copy of this filter (deep enough that it is immutable)
|
boolean |
shouldVisitChild(java.lang.Object parent,
java.lang.Object child,
java.lang.String fieldName)
Determines whether or not to visit the child given it's parent and the name
of the field in the parent that the child came from
|
addClass, addField, addObject, addPackage, getClassesCopy, getMainClass, getObjectsCopy, getPackagesCopy, toString
public WhitelistedClassFieldProfilingFilter()
public WhitelistedClassFieldProfilingFilter(@NotNull WhitelistedClassFieldProfilingFilter filter)
filter
- The filter to duplicatepublic WhitelistedClassFieldProfilingFilter(@NotNull java.lang.String configFile) throws java.io.IOException
configFile
- The file containing the filter informationjava.io.IOException
- On error reading from the filepublic WhitelistedClassFieldProfilingFilter(@NotNull java.io.File configFile) throws java.io.IOException
configFile
- The file containing the filter informationjava.io.IOException
- On error reading from the file@NotNull public ProfilingFilter duplicateFilter()
ProfilingFilter
public boolean shouldVisitChild(@Nullable java.lang.Object parent, @Nullable java.lang.Object child, java.lang.String fieldName)
ProfilingFilter
parent
- The parent objectchild
- The child object that we are thinking of visitingfieldName
- The name of the field in the parent that the child came from