Package adams.core.sizeof
Class ActorFilter
- java.lang.Object
-
- adams.core.sizeof.ActorFilter
-
- All Implemented Interfaces:
Serializable
,sizeof.agent.Filter
public class ActorFilter extends Object implements Serializable, sizeof.agent.Filter
For filtering actors.- Author:
- FracPete (fracpete at waikato dot ac dot nz)
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description ActorFilter()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
skipField(Field field)
Returns whether to skip the field.boolean
skipObject(Object obj)
Returns whether to skip the object.boolean
skipSuperClass(Class superclass)
Checks whether to skip this superclass (and everything upwards).
-
-
-
Method Detail
-
skipSuperClass
public boolean skipSuperClass(Class superclass)
Checks whether to skip this superclass (and everything upwards).- Specified by:
skipSuperClass
in interfacesizeof.agent.Filter
- Parameters:
superclass
- the class to check- Returns:
- true if to skip, otherwise we will contained traversing the hierarchy
-
skipObject
public boolean skipObject(Object obj)
Returns whether to skip the object.- Specified by:
skipObject
in interfacesizeof.agent.Filter
- Parameters:
obj
- the object to check- Returns:
- true if to skip the object, otherwise it will get inspected
-
skipField
public boolean skipField(Field field)
Returns whether to skip the field.- Specified by:
skipField
in interfacesizeof.agent.Filter
- Parameters:
field
- the field to check- Returns:
- true if to skip the field, otherwise it will get inspected
-
-