@Override
 public <T> T accept(ParseNodeVisitor<T> visitor) throws SQLException {
   List<T> l = Collections.emptyList();
   if (visitor.visitEnter(this)) {
     l = acceptChildren(visitor);
   }
   return visitor.visitLeave(this, l);
 }
 public void accept(ParseNodeVisitor visitor) {
   visitor.visitEnter(this);
   visitChildren(visitor);
   visitor.visitLeave(this);
 }
 public boolean accept(ParseNodeVisitor visitor) {
   boolean doChildren = visitor.visitEnter(this);
   visitChildren(visitor, doChildren);
   return visitor.visitLeave(this);
 }
Example #4
0
 @Override
 public <T> T accept(ParseNodeVisitor<T> visitor) throws SQLException {
   return visitor.visit(this);
 }
 public boolean accept(ParseNodeVisitor visitor) {
   return visitor.visit(this);
 }