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

com.laamella.sexpression.visitor.Visitor Maven / Gradle / Ivy

There is a newer version: 0.2
Show newest version
package com.laamella.sexpression.visitor;

import com.laamella.sexpression.model.Atom;
import com.laamella.sexpression.model.AtomList;
import com.laamella.sexpression.model.Comment;

public interface Visitor {
    R accept(Atom atom, A arg) throws Exception;

    R accept(AtomList atomList, A arg) throws Exception;

    R accept(Comment comment, A arg) throws Exception;
    
    class Adapter implements Visitor {

        @Override
        public R accept(Atom atom, A arg) throws Exception {
            return null;
        }

        @Override
        public R accept(AtomList atomList, A arg) throws Exception {
            return null;
        }

        @Override
        public R accept(Comment comment, A arg) throws Exception {
            return null;
        }
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy