1 16 package org.apache.commons.betwixt.expression; 17 18 25 public class ConstantExpression implements Expression { 26 27 28 private Object value; 29 30 32 public ConstantExpression() { 33 } 34 35 39 public ConstantExpression(Object value) { 40 this.value = value; 41 } 42 43 49 public Object evaluate(Context context) { 50 return value; 51 } 52 53 57 public void update(Context context, String newValue) { 58 } 60 61 65 public Object getValue() { 66 return value; 67 } 68 69 73 public void setValue(Object value) { 74 this.value = value; 75 } 76 77 81 public String toString() { 82 return "ConstantExpression [value=" + value + "]"; 83 } 84 } 85 | Popular Tags |