private void setNestedState(NestedState nestedState) { if (this.nestedState != null) { // Should never happen throw new IllegalStateException("nestedState may only be set once"); } this.nestedState = nestedState; // Increment the nesting count for the current expression nestedState.incrementNestingCount(); if (jjtGetNumChildren() > 1) { Node firstChild = jjtGetChild(0); if (firstChild instanceof AstLambdaParameters) { if (firstChild.jjtGetNumChildren() > 0) { nestedState.setHasFormalParameters(); } } else { // Can't be a lambda expression return; } Node secondChild = jjtGetChild(1); if (secondChild instanceof AstLambdaExpression) { ((AstLambdaExpression) secondChild).setNestedState(nestedState); } } }
private void setNestedState(NestedState nestedState) { if (this.nestedState != null) { // Should never happen throw new IllegalStateException("nestedState may only be set once"); } this.nestedState = nestedState; // Increment the nesting count for the current expression nestedState.incrementNestingCount(); if (jjtGetNumChildren() > 1) { Node firstChild = jjtGetChild(0); if (firstChild instanceof AstLambdaParameters) { if (firstChild.jjtGetNumChildren() > 0) { nestedState.setHasFormalParameters(); } } else { // Can't be a lambda expression return; } Node secondChild = jjtGetChild(1); if (secondChild instanceof AstLambdaExpression) { ((AstLambdaExpression) secondChild).setNestedState(nestedState); } } }
int methodParameterSetCount = jjtGetNumChildren() - 2; if (methodParameterSetCount > state.getNestingCount()) { throw new ELException(MessageFactory.get( le.setELContext(ctx); if (jjtGetNumChildren() == 2) { methodParameterIndex < jjtGetNumChildren()) { result = ((LambdaExpression) result).invoke(((AstMethodParameters) children[methodParameterIndex]).getParameters(ctx));
int methodParameterSetCount = jjtGetNumChildren() - 2; if (methodParameterSetCount > state.getNestingCount()) { throw new ELException(MessageFactory.get( le.setELContext(ctx); if (jjtGetNumChildren() == 2) { methodParameterIndex < jjtGetNumChildren()) { result = ((LambdaExpression) result).invoke(((AstMethodParameters) children[methodParameterIndex]).getParameters(ctx));