1 55 56 package org.apache.commons.el; 57 58 import java.lang.reflect.InvocationTargetException ; 59 import java.lang.reflect.Method ; 60 import java.util.Map ; 61 import javax.servlet.jsp.el.ELException ; 62 import javax.servlet.jsp.el.VariableResolver ; 63 import javax.servlet.jsp.el.FunctionMapper ; 64 65 75 76 public class PropertySuffix 77 extends ArraySuffix 78 { 79 84 String mName; 85 public String getName () 86 { return mName; } 87 public void setName (String pName) 88 { mName = pName; } 89 90 95 public PropertySuffix (String pName) 96 { 97 super (null); 98 mName = pName; 99 } 100 101 106 Object evaluateIndex (VariableResolver pResolver, 107 FunctionMapper functions, 108 Logger pLogger) 109 throws ELException 110 { 111 return mName; 112 } 113 114 119 String getOperatorSymbol () 120 { 121 return "."; 122 } 123 124 131 public String getExpressionString () 132 { 133 return "." + StringLiteral.toIdentifierToken (mName); 134 } 135 136 } 138 | Popular Tags |