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

com.github.rutledgepaulv.qbuilders.nodes.Visitable Maven / Gradle / Ivy

/*
 *
 *  *  com.github.rutledgepaulv.qbuilders.nodes.Visitable
 *  *  *
 *  *  * Copyright (C) 2016 Paul Rutledge 
 *  *  *
 *  *  * This software may be modified and distributed under the terms
 *  *  * of the MIT license.  See the LICENSE file for details.
 *  *
 *
 */

package com.github.rutledgepaulv.qbuilders.nodes;

import com.github.rutledgepaulv.qbuilders.visitors.ContextualNodeVisitor;

public interface Visitable {

    default  T visit(ContextualNodeVisitor visitor) {
        return visit(visitor, null);
    }

      T visit(ContextualNodeVisitor visitor, S context);

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy