1 33 34 package edu.rice.cs.util.sexp; 35 36 public class Empty extends SEList { 37 38 public static final Empty ONLY = new Empty(); 39 40 private Empty() { } 41 42 public <Ret> Ret accept(SExpVisitor<Ret> v) { 43 return v.forEmpty(this); 44 } 45 public <Ret> Ret accept(SEListVisitor<Ret> v) { 46 return v.forEmpty(this); 47 } 48 49 protected String toStringHelp() { 50 return ")"; 51 } 52 53 public String toString() { 54 return "()"; 55 } 56 } | Popular Tags |