1 18 package org.apache.beehive.netui.script.el; 19 20 import org.apache.beehive.netui.util.logging.Logger; 21 22 25 public class LiteralTerm 26 implements Term { 27 28 private static final Logger LOGGER = Logger.getInstance(LiteralTerm.class); 29 30 private String text = null; 31 32 public LiteralTerm(String text) { 33 super(); 34 35 36 if(text.equals("\\{")) 37 this.text = "{"; 38 else 39 this.text = text; 40 41 if(LOGGER.isDebugEnabled()) 42 LOGGER.debug("LiteralTerm text: " + text + " this.text: " + this.text); 43 } 44 45 public void seal() { 46 } 47 48 public String getExpressionString() { 49 return text; 50 } 51 52 public Object evaluate(NetUIVariableResolver vr) { 53 return text; 54 } 55 56 public String toString() { 57 return "LiteralTerm:\n " + text + "\n"; 58 } 59 } 60 61 | Popular Tags |