Package org.apache.shale.util

Examples of org.apache.shale.util.Tags.eval()


             }
         } else {
            if (value != null && value instanceof String
                && isValueReference((String) e.getValue())) {

                value = tagUtils.eval((String) e.getValue());
            }
         }

         if (value == null) {
            continue next;
View Full Code Here


          // look for a local var override
          if (localVars != null && localVars.containsKey(templateArgs[i].getKey())) {
             value = localVars.get(templateArgs[i].getKey());
          } else if (value != null && value instanceof String) {
              // if a String, check for a value binding expression
              value = tagUtils.eval((String) value);
          }
          target[i] = value;
       }

       return target;
View Full Code Here

            }
            if (obj == null) {
                obj = vars.get(paramNames[i]);
            }
            if (obj != null && obj instanceof String) {
                obj = tagUtils.eval((String) obj);
            }
            target[i] = convert(context, obj, methodParamClasses[i]);
        }

        return target;
View Full Code Here

                          Map.Entry e = (Map.Entry) vi.next();
                          // only override if the var contains a value binding expression
                          if (e.getValue() != null && e.getValue() instanceof String
                              && isValueReference((String) e.getValue())) {

                             localVars.put(e.getKey(), tagUtils.eval((String) e.getValue()));

                          }
                       }

                    }
View Full Code Here

TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.