1 16 package org.apache.commons.betwixt.expression; 17 18 25 public class EmptyExpression implements Expression { 26 27 28 private static final EmptyExpression singleton = new EmptyExpression(); 29 30 34 public static EmptyExpression getInstance() { 35 return singleton; 36 } 37 38 40 public EmptyExpression() { 41 } 42 43 46 public Object evaluate(Context context) { 47 return context.getBean(); 48 } 49 50 53 public void update(Context context, String newValue) { 54 } 56 57 61 public String toString() { 62 return "EmptyExpression"; 63 } 64 65 } 66 | Popular Tags |