com.laamella.sexpression.visitor.Visitor Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of s-expressions Show documentation
Show all versions of s-expressions Show documentation
S-Expression support for Java
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