DefaultWalkFilter.java

package zserio.runtime.walker;

import zserio.runtime.typeinfo.FieldInfo;

/**
 * Default walk filter which filters nothing.
 */
public final class DefaultWalkFilter implements WalkFilter
{
    @Override
    public boolean beforeArray(Object array, FieldInfo fieldInfo)
    {
        return true;
    }

    @Override
    public boolean afterArray(Object array, FieldInfo fieldInfo)
    {
        return true;
    }

    @Override
    public boolean beforeCompound(Object compound, FieldInfo fieldInfo, int elementIndex)
    {
        return true;
    }

    @Override
    public boolean afterCompound(Object compound, FieldInfo fieldInfo, int elementIndex)
    {
        return true;
    }

    @Override
    public boolean beforeValue(Object value, FieldInfo fieldInfo, int elementIndex)
    {
        return true;
    }

    @Override
    public boolean afterValue(Object value, FieldInfo fieldInfo, int elementIndex)
    {
        return true;
    }
};