Class 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 Detail

      • ActorFilter

        public ActorFilter()
    • Method Detail

      • skipSuperClass

        public boolean skipSuperClass​(Class superclass)
        Checks whether to skip this superclass (and everything upwards).
        Specified by:
        skipSuperClass in interface sizeof.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 interface sizeof.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 interface sizeof.agent.Filter
        Parameters:
        field - the field to check
        Returns:
        true if to skip the field, otherwise it will get inspected