@Override public String toString() { return ELParserTreeConstants.jjtNodeName[id] + "[" + this.getOutputName() + "]"; } }
m = fnMapper.resolveFunction(funcNode.getPrefix(), funcNode .getLocalName()); funcNode.getPrefix().length() == 0) { this.varMapper.resolveVariable(funcNode.getLocalName()); return; "error.fnMapper.method", funcNode.getOutputName())); "error.fnMapper.paramcount", funcNode.getOutputName(), "" + pcnt, "" + node.jjtGetNumChildren()));
final public void Function() throws ParseException { AstFunction jjtn000 = new AstFunction(JJTFUNCTION); boolean jjtc000 = true; jjtree.openNodeScope(jjtn000);Token t0 = null; jjtn000.setPrefix(t0.image); jjtn000.setLocalName(t1.image); } else { jjtn000.setLocalName(t0.image);
if (m == null) { throw new ELException(MessageFactory.get("error.fnMapper.method", this.getOutputName())); Object[] params = null; Object result = null; int numParams = this.jjtGetNumChildren(); if (numParams > 0) { params = new Object[numParams]; for (int i = 0; i < numParams; i++) { params[i] = this.children[i].getValue(ctx); params[i] = coerceToType(params[i], paramTypes[i]); .getOutputName()), ele); } catch (IllegalAccessException iae) { throw new ELException(MessageFactory.get("error.function", this .getOutputName()), iae); } catch (InvocationTargetException ite) { throw new ELException(MessageFactory.get("error.function", this .getOutputName()), ite.getCause());
if (node instanceof AstFunction) { AstFunction fun = (AstFunction) node; String prefix = fun.getPrefix(); String uri = extractor.getNamespaceURI(prefix); String name = fun.getLocalName(); int count = fun.jjtGetNumChildren(); String plural = null; if (messageIdx >= 0 && messageIdx < count) { Node messageNode = fun.jjtGetChild(messageIdx); if (messageNode instanceof AstString) { message = ((AstString)messageNode).getString(); Node contextNode = fun.jjtGetChild(contextIdx); if (contextNode instanceof AstString) { context = ((AstString)contextNode).getString(); Node pluralNode = fun.jjtGetChild(pluralIdx); if (pluralNode instanceof AstString) { plural = ((AstString)pluralNode).getString();
i < jjtGetNumChildren()) { Node args = jjtGetChild(i); obj = ((LambdaExpression) obj).invoke( ((AstMethodParameters) args).getParameters(ctx)); i++; if (i < jjtGetNumChildren()) { this.getOutputName())); if (this.jjtGetNumChildren() != 1) { throw new ELException(MessageFactory.get( "error.funciton.tooManyMethodParameterSets", getOutputName())); Node parameters = jjtGetChild(0); Class<?>[] paramTypes = m.getParameterTypes(); Object[] params = null; for (int i = 0; i < numParams; i++) { params[i] = parameters.jjtGetChild(i).getValue(ctx); params[i] = coerceToType(params[i], paramTypes[i]); .getOutputName()), ele); } catch (IllegalAccessException iae) { throw new ELException(MessageFactory.get("error.function", this .getOutputName()), iae); } catch (InvocationTargetException ite) {
m = fnMapper.resolveFunction(funcNode.getPrefix(), funcNode .getLocalName()); funcNode.getPrefix().length() == 0) { this.varMapper.resolveVariable(funcNode.getLocalName()); return; "error.fnMapper.method", funcNode.getOutputName())); !m.isVarArgs() && inputParameterCount != methodParameterCount) { throw new ELException(MessageFactory.get( "error.fnMapper.paramcount", funcNode.getOutputName(), "" + methodParameterCount, "" + node.jjtGetChild(0).jjtGetNumChildren()));
final public void Function() throws ParseException { AstFunction jjtn000 = new AstFunction(JJTFUNCTION); boolean jjtc000 = true; jjtree.openNodeScope(jjtn000);Token t0 = null; jjtn000.setPrefix(t0.image); jjtn000.setLocalName(t1.image); } else { jjtn000.setLocalName(t0.image);
throw new ELException(MESSAGES.functionNotFound(this.getOutputName())); Object[] params = null; Object result = null; int numParams = this.jjtGetNumChildren(); if (numParams > 0) { params = new Object[numParams]; for (int i = 0; i < numParams; i++) { params[i] = this.children[i].getValue(ctx); params[i] = coerceToType(params[i], paramTypes[i]); throw new ELException(MESSAGES.errorCallingFunction(this.getOutputName()), ele); } catch (IllegalAccessException iae) { throw new ELException(MESSAGES.errorCallingFunction(this .getOutputName()), iae); } catch (InvocationTargetException ite) { Throwable cause = ite.getCause(); .getOutputName()), cause);
if (node instanceof AstFunction) { AstFunction fun = (AstFunction) node; String prefix = fun.getPrefix(); String uri = extractor.getNamespaceURI(prefix); String name = fun.getLocalName(); int count = fun.jjtGetNumChildren(); String plural = null; if (messageIdx >= 0 && messageIdx < count) { Node messageNode = fun.jjtGetChild(messageIdx); if (messageNode instanceof AstString) { message = ((AstString)messageNode).getString(); Node contextNode = fun.jjtGetChild(contextIdx); if (contextNode instanceof AstString) { context = ((AstString)contextNode).getString(); Node pluralNode = fun.jjtGetChild(pluralIdx); if (pluralNode instanceof AstString) { plural = ((AstString)pluralNode).getString();
i < jjtGetNumChildren()) { Node args = jjtGetChild(i); obj = ((LambdaExpression) obj).invoke( ((AstMethodParameters) args).getParameters(ctx)); i++; if (i < jjtGetNumChildren()) { this.getOutputName())); if (this.jjtGetNumChildren() != 1) { throw new ELException(MessageFactory.get( "error.funciton.tooManyMethodParameterSets", getOutputName())); Node parameters = jjtGetChild(0); Class<?>[] paramTypes = m.getParameterTypes(); Object[] params = null; for (int j = i; j < inputParameterCount; j++) { varargs[j-i] = parameters.jjtGetChild(j).getValue(ctx); varargs[j-i] = coerceToType(ctx, varargs[j-i], target); params[i] = coerceToType(ctx, params[i], paramTypes[i]); .getOutputName()), ele); } catch (IllegalAccessException iae) { throw new ELException(MessageFactory.get("error.function", this
@Override public void visit(Node node) throws ELException { if (node instanceof AstFunction) { AstFunction funcNode = (AstFunction) node; if (this.fnMapper == null) { throw new ELException(MessageFactory.get("error.fnMapper.null")); } Method m = fnMapper.resolveFunction(funcNode.getPrefix(), funcNode .getLocalName()); if (m == null) { throw new ELException(MessageFactory.get( "error.fnMapper.method", funcNode.getOutputName())); } int pcnt = m.getParameterTypes().length; if (node.jjtGetNumChildren() != pcnt) { throw new ELException(MessageFactory.get( "error.fnMapper.paramcount", funcNode.getOutputName(), "" + pcnt, "" + node.jjtGetNumChildren())); } } else if (node instanceof AstIdentifier && this.varMapper != null) { String variable = ((AstIdentifier) node).getImage(); // simply capture it this.varMapper.resolveVariable(variable); } }
final public void Function() throws ParseException { AstFunction jjtn000 = new AstFunction(JJTFUNCTION); boolean jjtc000 = true; jjtree.openNodeScope(jjtn000);Token t0 = null; jjtn000.setPrefix(t0.image); jjtn000.setLocalName(t1.image); } else { jjtn000.setLocalName(t1.image);
if (m == null) { throw new ELException(MessageFactory.get("error.fnMapper.method", this.getOutputName())); Object[] params = null; Object result = null; int numParams = this.jjtGetNumChildren(); if (numParams > 0) { params = new Object[numParams]; for (int i = 0; i < numParams; i++) { params[i] = this.children[i].getValue(ctx); params[i] = coerceToType(params[i], paramTypes[i]); .getOutputName()), ele); } catch (IllegalAccessException iae) { throw new ELException(MessageFactory.get("error.function", this .getOutputName()), iae); } catch (InvocationTargetException ite) { throw new ELException(MessageFactory.get("error.function", this .getOutputName()), ite.getCause());
public String toString() { return ELParserTreeConstants.jjtNodeName[id] + "[" + this.getOutputName() + "]"; } }
@Override public void visit(Node node) throws ELException { if (node instanceof AstFunction) { AstFunction funcNode = (AstFunction) node; if (this.fnMapper == null) { throw new ELException(MESSAGES.missingFunctionMapper()); } Method m = fnMapper.resolveFunction(funcNode.getPrefix(), funcNode .getLocalName()); if (m == null) { throw new ELException(MESSAGES.functionNotFound(funcNode.getOutputName())); } int pcnt = m.getParameterTypes().length; if (node.jjtGetNumChildren() != pcnt) { throw new ELException(MESSAGES.functionWrongParameterCount(funcNode.getOutputName(), pcnt, node.jjtGetNumChildren())); } } else if (node instanceof AstIdentifier && this.varMapper != null) { String variable = ((AstIdentifier) node).getImage(); // simply capture it this.varMapper.resolveVariable(variable); } }
final public void Function() throws ParseException { AstFunction jjtn000 = new AstFunction(JJTFUNCTION); boolean jjtc000 = true; jjtree.openNodeScope(jjtn000);Token t0 = null; jjtn000.setPrefix(t0.image); jjtn000.setLocalName(t1.image); } else { jjtn000.setLocalName(t1.image);
if (m == null) { throw new ELException(MessageFactory.get("error.fnMapper.method", this.getOutputName())); Object[] params = null; Object result = null; int numParams = this.jjtGetNumChildren(); if (numParams > 0) { params = new Object[numParams]; for (int i = 0; i < numParams; i++) { params[i] = this.children[i].getValue(ctx); params[i] = coerceToType(params[i], paramTypes[i]); .getOutputName()), ele); } catch (IllegalAccessException iae) { throw new ELException(MessageFactory.get("error.function", this .getOutputName()), iae); } catch (InvocationTargetException ite) { Throwable cause = ite.getCause(); .getOutputName()), cause);
@Override public String toString() { return ELParserTreeConstants.jjtNodeName[id] + "[" + this.getOutputName() + "]"; } }
public void visit(Node node) throws ELException { if (node instanceof AstFunction) { AstFunction funcNode = (AstFunction) node; if (this.fnMapper == null) { throw new ELException(MessageFactory.get("error.fnMapper.null")); } Method m = fnMapper.resolveFunction(funcNode.getPrefix(), funcNode .getLocalName()); if (m == null) { throw new ELException(MessageFactory.get( "error.fnMapper.method", funcNode.getOutputName())); } int pcnt = m.getParameterTypes().length; if (node.jjtGetNumChildren() != pcnt) { throw new ELException(MessageFactory.get( "error.fnMapper.paramcount", funcNode.getOutputName(), "" + pcnt, "" + node.jjtGetNumChildren())); } } else if (node instanceof AstIdentifier && this.varMapper != null) { String variable = ((AstIdentifier) node).getImage(); // simply capture it this.varMapper.resolveVariable(variable); } }