1 package com.calipso.reportgenerator.reportcalculator.expression; 2 3 import java.io.Serializable ; 4 5 9 10 public class NotExp extends Expression implements Serializable { 11 12 16 public NotExp(Expression expression) { 17 initialize(); 18 arguments[0] = expression; 19 } 20 21 25 protected void initialize() { 26 arguments = new Expression[1]; 27 } 28 29 33 34 protected String basicAsString() { 35 return "NOT " + internalExp().asStringUnderNot(); 36 } 37 38 42 43 public Expression internalExp() { 44 return arguments[0]; 45 } 46 47 52 public Object visitedBy(ExpressionVisitor visitor) { 53 return visitor.processNot(this); 54 } 55 } 56 | Popular Tags |