1 6 package tests.jfun.parsec.mssql; 7 8 13 final class IsNotNull implements BoolExpression { 14 15 18 public int getPrecedence() { 19 return Precedences.isnotnull(); 20 } 21 22 25 public void accept(BoolExpressionVisitor v) { 26 v.visitIsNotNull(e); 27 } 28 private final Expression e; 29 30 33 IsNotNull(final Expression e) { 34 this.e = e; 35 } 36 public String toString(){ 37 if(e.getPrecedence() < getPrecedence()){ 38 return "("+e+") is not null"; 39 } 40 else return ""+e+" is not null"; 41 } 42 } 43 | Popular Tags |