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

eu.xenit.apix.search.nodes.InvertSearchNode Maven / Gradle / Ivy

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

import com.fasterxml.jackson.databind.annotation.JsonDeserialize;
import eu.xenit.apix.search.json.InvertSearchNodeDeserializer;
import eu.xenit.apix.search.visitors.ISearchSyntaxVisitor;

/**
 * Search node that represents an invert (logical not) operation to its children.
 */
@JsonDeserialize(using = InvertSearchNodeDeserializer.class)
public class InvertSearchNode implements SearchSyntaxNode {


    private SearchSyntaxNode target;

    public InvertSearchNode() {
    }

    public InvertSearchNode(SearchSyntaxNode target) {
        this.target = target;
    }

    //@Override
    public  T accept(ISearchSyntaxVisitor visitor) {
        return visitor.visit(this);
    }

    public SearchSyntaxNode getTarget() {
        return target;
    }


    public void setTarget(SearchSyntaxNode target) {
        this.target = target;
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy