Javadoc
If the java_visitor message option is set, then this method generates a visitor method. The option
speifiies the class name of the visitor and optionally the return value and exceptions thrown by the visitor.
Examples:
option java_visitor = "org.apache.kahadb.store.Visitor";
generates:
public void visit(org.apache.kahadb.store.Visitor visitor) {
visitor.visit(this);
}
option java_visitor = "org.apache.kahadb.store.Visitor:int:java.io.IOException";
generates:
public int visit(org.apache.kahadb.store.Visitor visitor) throws java.io.IOException {
return visitor.visit(this);
}