public String toString() { return getKey() + " -> " + getValue(); } }
public String toString() { return getKey() + " -> " + getValue(); } }
public String toString() { return getKey() + " -> " + getValue(); } }
public String toString() { String result = "#"; if (className != null) { result = result + "@" + className + "@"; } result = result + "{ "; for(int i = 0; i < jjtGetNumChildren(); ++i) { ASTKeyValue kv = (ASTKeyValue) _children[i]; if (i > 0) { result = result + ", "; } result = result + kv.getKey() + " : " + kv.getValue(); } return result + " }"; }
public String toString() { String result = "#"; if (className != null) { result = result + "@" + className + "@"; } result = result + "{ "; for ( int i = 0; i < jjtGetNumChildren(); ++i ) { ASTKeyValue kv = (ASTKeyValue)children[i]; if (i > 0) { result = result + ", "; } result = result + kv.getKey() + " : " + kv.getValue(); } return result + " }"; } }
public String toString() { String result = "#"; if (className != null) { result = result + "@" + className + "@"; } result = result + "{ "; for(int i = 0; i < jjtGetNumChildren(); ++i) { ASTKeyValue kv = (ASTKeyValue) _children[i]; if (i > 0) { result = result + ", "; } result = result + kv.getKey() + " : " + kv.getValue(); } return result + " }"; }
protected Object getValueBody( OgnlContext context, Object source ) throws OgnlException { Map answer; if (className == null) { try { answer = (Map)DEFAULT_MAP_CLASS.newInstance(); } catch (Exception ex) { /* This should never happen */ throw new OgnlException("Default Map class '" + DEFAULT_MAP_CLASS.getName() + "' instantiation error", ex); } } else { try { answer = (Map)OgnlRuntime.classForName(context, className).newInstance(); } catch (Exception ex) { throw new OgnlException("Map implementor '" + className + "' not found", ex); } } for ( int i=0; i < jjtGetNumChildren(); ++i ) { ASTKeyValue kv = (ASTKeyValue)children[i]; Node k = kv.getKey(), v = kv.getValue(); answer.put( k.getValue(context, source), (v == null) ? null : v.getValue(context, source) ); } return answer; }
protected Object getValueBody(OgnlContext context, Object source) throws OgnlException { Map answer; if (className == null) { try { answer = (Map) DEFAULT_MAP_CLASS.newInstance(); } catch (Exception ex) { /* This should never happen */ throw new OgnlException("Default Map class '" + DEFAULT_MAP_CLASS.getName() + "' instantiation error", ex); } } else { try { answer = (Map) OgnlRuntime.classForName(context, className).newInstance(); } catch (Exception ex) { throw new OgnlException("Map implementor '" + className + "' not found", ex); } } for(int i = 0; i < jjtGetNumChildren(); ++i) { ASTKeyValue kv = (ASTKeyValue) _children[i]; Node k = kv.getKey(), v = kv.getValue(); answer.put(k.getValue(context, source), (v == null) ? null : v.getValue(context, source)); } return answer; }
protected Object getValueBody(OgnlContext context, Object source) throws OgnlException { Map answer; if (className == null) { try { answer = (Map) DEFAULT_MAP_CLASS.newInstance(); } catch (Exception ex) { /* This should never happen */ throw new OgnlException("Default Map class '" + DEFAULT_MAP_CLASS.getName() + "' instantiation error", ex); } } else { try { answer = (Map) OgnlRuntime.classForName(context, className).newInstance(); } catch (Exception ex) { throw new OgnlException("Map implementor '" + className + "' not found", ex); } } for(int i = 0; i < jjtGetNumChildren(); ++i) { ASTKeyValue kv = (ASTKeyValue) _children[i]; Node k = kv.getKey(), v = kv.getValue(); answer.put(k.getValue(context, source), (v == null) ? null : v.getValue(context, source)); } return answer; }