All Downloads are FREE. Search and download functionalities are using the official Maven repository.

eu.xenit.apix.search.visitors.BaseSearchSyntaxNodeVisitor Maven / Gradle / Ivy

There is a newer version: 4.1.2
Show newest version
package eu.xenit.apix.search.visitors;

import eu.xenit.apix.search.nodes.InvertSearchNode;
import eu.xenit.apix.search.nodes.OperatorSearchNode;
import eu.xenit.apix.search.nodes.PropertySearchNode;
import eu.xenit.apix.search.nodes.SearchSyntaxNode;
import eu.xenit.apix.search.nodes.TermSearchNode;

/**
 * Abstract class that is a default "return null" implementation for ISearchSyntaxVisitor.
 */
public abstract class BaseSearchSyntaxNodeVisitor implements ISearchSyntaxVisitor {

    public T visit(SearchSyntaxNode node) {
        return node.accept(this);
    }

    @Override
    public T visit(OperatorSearchNode n) {
        return null;
    }

    @Override
    public T visit(PropertySearchNode n) {
        return null;
    }

    @Override
    public T visit(TermSearchNode n) {
        return null;
    }

    //@Override
    //public T visit(RangeValue n) {
    //    return null;
    //}

    @Override
    public T visit(InvertSearchNode invertSearchNode) {
        return null;
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy