public class ResourceSizeOfFilter extends java.lang.Object implements SizeOfFilter
Modifier and Type | Field and Description |
---|---|
private java.util.Set<java.lang.String> |
filteredTerms |
Constructor and Description |
---|
ResourceSizeOfFilter(java.net.URL filterData)
Builds a filter based on the provided configuration URL
|
Modifier and Type | Method and Description |
---|---|
boolean |
filterClass(java.lang.Class<?> klazz)
Checks whether the type needs to be filtered
|
java.util.Collection<java.lang.reflect.Field> |
filterFields(java.lang.Class<?> klazz,
java.util.Collection<java.lang.reflect.Field> fields)
Returns the fields to walk and measure for a type
|
public ResourceSizeOfFilter(java.net.URL filterData) throws java.io.IOException
filterData
- the URL of the configurationjava.io.IOException
- if it couldn't read the configuration from the URLpublic java.util.Collection<java.lang.reflect.Field> filterFields(java.lang.Class<?> klazz, java.util.Collection<java.lang.reflect.Field> fields)
filterFields
in interface SizeOfFilter
klazz
- the typefields
- the fields already "qualified"public boolean filterClass(java.lang.Class<?> klazz)
filterClass
in interface SizeOfFilter
klazz
- the typefalse
, if to be filtered out