/** * Find the name of the function mapper for an EL. Reuse a * previously generated one if possible. * @param functions An ArrayList of ELNode.Function instances that * represents the functions in an EL * @return A previous generated function mapper name that can be used * by this EL; null if none found. */ private String matchMap(ArrayList<ELNode.Function> functions) { String mapName = null; for (int i = 0; i < functions.size(); i++) { ELNode.Function f = functions.get(i); String temName = gMap.get(f.getPrefix() + ':' + f.getName() + ':' + f.getUri()); if (temName == null) { return null; } if (mapName == null) { mapName = temName; } else if (!temName.equals(mapName)) { // If not all in the previous match, then no match. return null; } } return mapName; }
/** * Find the name of the function mapper for an EL. Reuse a * previously generated one if possible. * @param functions An ArrayList of ELNode.Function instances that * represents the functions in an EL * @return A previous generated function mapper name that can be used * by this EL; null if none found. */ private String matchMap(ArrayList functions) { String mapName = null; for (int i = 0; i < functions.size(); i++) { ELNode.Function f = (ELNode.Function)functions.get(i); String temName = (String) gMap.get(f.getPrefix() + ':' + f.getName() + ':' + f.getUri()); if (temName == null) { return null; } if (mapName == null) { mapName = temName; } else if (!temName.equals(mapName)) { // If not all in the previous match, then no match. return null; } } return mapName; }
/** * Find the name of the function mapper for an EL. Reuse a * previously generated one if possible. * @param functions An ArrayList of ELNode.Function instances that * represents the functions in an EL * @return A previous generated function mapper name that can be used * by this EL; null if none found. */ private String matchMap(ArrayList<ELNode.Function> functions) { String mapName = null; for (int i = 0; i < functions.size(); i++) { ELNode.Function f = functions.get(i); String temName = gMap.get(f.getPrefix() + ':' + f.getName() + ':' + f.getUri()); if (temName == null) { return null; } if (mapName == null) { mapName = temName; } else if (!temName.equals(mapName)) { // If not all in the previous match, then no match. return null; } } return mapName; }
/** * Find the name of the function mapper for an EL. Reuse a * previously generated one if possible. * @param functions An ArrayList of ELNode.Function instances that * represents the functions in an EL * @return A previous generated function mapper name that can be used * by this EL; null if none found. */ private String matchMap(ArrayList functions) { String mapName = null; for (int i = 0; i < functions.size(); i++) { ELNode.Function f = (ELNode.Function)functions.get(i); String temName = (String) gMap.get(f.getPrefix() + ':' + f.getName() + ':' + f.getUri()); if (temName == null) { return null; } if (mapName == null) { mapName = temName; } else if (!temName.equals(mapName)) { // If not all in the previous match, then no match. return null; } } return mapName; }
/** * Find the name of the function mapper for an EL. Reuse a * previously generated one if possible. * @param functions An ArrayList of ELNode.Function instances that * represents the functions in an EL * @return A previous generated function mapper name that can be used * by this EL; null if none found. */ private String matchMap(ArrayList<ELNode.Function> functions) { String mapName = null; for (int i = 0; i < functions.size(); i++) { ELNode.Function f = functions.get(i); String temName = gMap.get(f.getPrefix() + ':' + f.getName() + ':' + f.getUri()); if (temName == null) { return null; } if (mapName == null) { mapName = temName; } else if (!temName.equals(mapName)) { // If not all in the previous match, then no match. return null; } } return mapName; }
/** * Find the name of the function mapper for an EL. Reuse a * previously generated one if possible. * @param functions An ArrayList of ELNode.Function instances that * represents the functions in an EL * @return A previous generated function mapper name that can be used * by this EL; null if none found. */ private String matchMap(ArrayList<ELNode.Function> functions) { String mapName = null; for (int i = 0; i < functions.size(); i++) { ELNode.Function f = functions.get(i); String temName = gMap.get(f.getPrefix() + ':' + f.getName() + ':' + f.getUri()); if (temName == null) { return null; } if (mapName == null) { mapName = temName; } else if (!temName.equals(mapName)) { // If not all in the previous match, then no match. return null; } } return mapName; }
/** * Find the name of the function mapper for an EL. Reuse a * previously generated one if possible. * @param functions An ArrayList of ELNode.Function instances that * represents the functions in an EL * @return A previous generated function mapper name that can be used * by this EL; null if none found. */ private String matchMap(ArrayList<ELNode.Function> functions) { String mapName = null; for (int i = 0; i < functions.size(); i++) { ELNode.Function f = functions.get(i); String temName = gMap.get(f.getPrefix() + ':' + f.getName() + ':' + f.getUri()); if (temName == null) { return null; } if (mapName == null) { mapName = temName; } else if (!temName.equals(mapName)) { // If not all in the previous match, then no match. return null; } } return mapName; }
/** * Find the name of the function mapper for an EL. Reuse a * previously generated one if possible. * @param functions An ArrayList of ELNode.Function instances that * represents the functions in an EL * @return A previous generated function mapper name that can be used * by this EL; null if none found. */ private String matchMap(ArrayList<ELNode.Function> functions) { String mapName = null; for (int i = 0; i < functions.size(); i++) { ELNode.Function f = functions.get(i); String temName = gMap.get(f.getPrefix() + ':' + f.getName() + ':' + f.getUri()); if (temName == null) { return null; } if (mapName == null) { mapName = temName; } else if (!temName.equals(mapName)) { // If not all in the previous match, then no match. return null; } } return mapName; }
/** * Find the name of the function mapper for an EL. Reuse a * previously generated one if possible. * @param functions An ArrayList of ELNode.Function instances that * represents the functions in an EL * @return A previous generated function mapper name that can be used * by this EL; null if none found. */ private String matchMap(ArrayList<ELNode.Function> functions) { String mapName = null; for (int i = 0; i < functions.size(); i++) { ELNode.Function f = functions.get(i); String temName = gMap.get(f.getPrefix() + ':' + f.getName() + ':' + f.getUri()); if (temName == null) { return null; } if (mapName == null) { mapName = temName; } else if (!temName.equals(mapName)) { // If not all in the previous match, then no match. return null; } } return mapName; }
/** * Find the name of the function mapper for an EL. Reuse a * previously generated one if possible. * @param functions A List of ELNode.Function instances that * represents the functions in an EL * @return A previous generated function mapper name that can be used * by this EL; null if none found. */ private String matchMap(List<ELNode.Function> functions) { String mapName = null; for (ELNode.Function f : functions) { String temName = gMap.get(f.getPrefix() + ':' + f.getName() + ':' + f.getUri()); if (temName == null) { return null; } if (mapName == null) { mapName = temName; } else if (!temName.equals(mapName)) { // If not all in the previous match, then no match. return null; } } return mapName; }
/** * Find the name of the function mapper for an EL. Reuse a * previously generated one if possible. * @param functions An ArrayList of ELNode.Function instances that * represents the functions in an EL * @return A previous generated function mapper name that can be used * by this EL; null if none found. */ private String matchMap(ArrayList functions) { String mapName = null; for (int i = 0; i < functions.size(); i++) { ELNode.Function f = (ELNode.Function)functions.get(i); String temName = (String) gMap.get(f.getPrefix() + ':' + f.getName() + ':' + f.getUri()); if (temName == null) { return null; } if (mapName == null) { mapName = temName; } else if (!temName.equals(mapName)) { // If not all in the previous match, then no match. return null; } } return mapName; }
/** * Find the name of the function mapper for an EL. Reuse a * previously generated one if possible. * @param functions A List of ELNode.Function instances that * represents the functions in an EL * @return A previous generated function mapper name that can be used * by this EL; null if none found. */ private String matchMap(List<ELNode.Function> functions) { String mapName = null; for (ELNode.Function f : functions) { String temName = gMap.get(f.getPrefix() + ':' + f.getName() + ':' + f.getUri()); if (temName == null) { return null; } if (mapName == null) { mapName = temName; } else if (!temName.equals(mapName)) { // If not all in the previous match, then no match. return null; } } return mapName; }
/** * Get the method name from the signature. */ private String getMethod(ELNode.Function func) throws JasperException { FunctionInfo funcInfo = func.getFunctionInfo(); String signature = funcInfo.getFunctionSignature(); int start = signature.indexOf(' '); if (start < 0) { err.jspError("jsp.error.tld.fn.invalid.signature", func .getPrefix(), func.getName()); } int end = signature.indexOf('('); if (end < 0) { err.jspError( "jsp.error.tld.fn.invalid.signature.parenexpected", func.getPrefix(), func.getName()); } return signature.substring(start + 1, end).trim(); }
/** * Get the method name from the signature. */ private String getMethod(ELNode.Function func) throws JasperException { FunctionInfo funcInfo = func.getFunctionInfo(); String signature = funcInfo.getFunctionSignature(); int start = signature.indexOf(' '); if (start < 0) { err.jspError("jsp.error.tld.fn.invalid.signature", func .getPrefix(), func.getName()); } int end = signature.indexOf('('); if (end < 0) { err.jspError( "jsp.error.tld.fn.invalid.signature.parenexpected", func.getPrefix(), func.getName()); } return signature.substring(start + 1, end).trim(); }
/** * Get the method name from the signature. */ private String getMethod(ELNode.Function func) throws JasperException { FunctionInfo funcInfo = func.getFunctionInfo(); String signature = funcInfo.getFunctionSignature(); int start = signature.indexOf(' '); if (start < 0) { err.jspError("jsp.error.tld.fn.invalid.signature", func .getPrefix(), func.getName()); } int end = signature.indexOf('('); if (end < 0) { err.jspError( "jsp.error.tld.fn.invalid.signature.parenexpected", func.getPrefix(), func.getName()); } return signature.substring(start + 1, end).trim(); }
/** * Get the method name from the signature. */ private String getMethod(ELNode.Function func) throws JasperException { FunctionInfo funcInfo = func.getFunctionInfo(); String signature = funcInfo.getFunctionSignature(); int start = signature.indexOf(' '); if (start < 0) { err.jspError("jsp.error.tld.fn.invalid.signature", func .getPrefix(), func.getName()); } int end = signature.indexOf('('); if (end < 0) { err.jspError( "jsp.error.tld.fn.invalid.signature.parenexpected", func.getPrefix(), func.getName()); } return signature.substring(start + 1, end).trim(); }
/** * Get the method name from the signature. */ private String getMethod(ELNode.Function func) throws JasperException { FunctionInfo funcInfo = func.getFunctionInfo(); String signature = funcInfo.getFunctionSignature(); int start = signature.indexOf(' '); if (start < 0) { err.jspError(MESSAGES.invalidFunctionSignature(func.getPrefix(), func.getName())); } int end = signature.indexOf('('); if (end < 0) { err.jspError(MESSAGES.invalidFunctionSignatureMissingParent(func.getPrefix(), func.getName())); } return signature.substring(start + 1, end).trim(); }
/** * Get the method name from the signature. */ private String getMethod(ELNode.Function func) throws JasperException { FunctionInfo funcInfo = func.getFunctionInfo(); String signature = funcInfo.getFunctionSignature(); int start = signature.indexOf(' '); if (start < 0) { err.jspError(MESSAGES.invalidFunctionSignature(func.getPrefix(), func.getName())); } int end = signature.indexOf('('); if (end < 0) { err.jspError(MESSAGES.invalidFunctionSignatureMissingParent(func.getPrefix(), func.getName())); } return signature.substring(start + 1, end).trim(); }
/** * Get the method name from the signature. */ private String getMethod(ELNode.Function func) throws JasperException { FunctionInfo funcInfo = func.getFunctionInfo(); String signature = funcInfo.getFunctionSignature(); Matcher m = METHOD_NAME_PATTERN.matcher(signature); if (!m.matches()) { err.jspError("jsp.error.tld.fn.invalid.signature", func .getPrefix(), func.getName()); } return m.group(1); }