public class BlacklistedClassFieldProfilingFilter extends AbstractFilter
classes, LOGGER, objects, packages
Constructor and Description |
---|
BlacklistedClassFieldProfilingFilter()
Builds an empty filter
|
BlacklistedClassFieldProfilingFilter(BlacklistedClassFieldProfilingFilter filter)
Builds a filter by using the same values as another filter
|
BlacklistedClassFieldProfilingFilter(java.io.File configFile)
Build a filter from a file.
|
BlacklistedClassFieldProfilingFilter(java.lang.String configFile)
Build a filter from a file.
|
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 BlacklistedClassFieldProfilingFilter()
public BlacklistedClassFieldProfilingFilter(@NotNull BlacklistedClassFieldProfilingFilter filter)
filter
- A filter to duplicatepublic BlacklistedClassFieldProfilingFilter(@NotNull java.lang.String configFile) throws java.io.IOException
configFile
- The file containing the filter informationjava.io.IOException
- On error reading from the filepublic BlacklistedClassFieldProfilingFilter(@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