cayenne/src/main/java/org/apache/cayenne/exp/parser/ASTCustomFunction.java [65:75]:
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
    public void jjtAddChild(Node n, int i) {
        // First argument should be used as a function name when created by parser
        if(!isNameSet && i == 0) {
            if(!(n instanceof ASTScalar)) {
                throw new IllegalArgumentException("ASTScalar expected, got " + n);
            }
            setFunctionName(((ASTScalar) n).getValue().toString());
            return;
        }
        super.jjtAddChild(n, isNameSet ? i : --i);
    }
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -



cayenne/src/main/java/org/apache/cayenne/exp/parser/ASTCustomAggregate.java [71:81]:
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
    public void jjtAddChild(Node n, int i) {
        // First argument should be used as a function name when created by parser
        if(!isNameSet && i == 0) {
            if(!(n instanceof ASTScalar)) {
                throw new IllegalArgumentException("ASTScalar expected, got " + n);
            }
            setFunctionName(((ASTScalar) n).getValue().toString());
            return;
        }
        super.jjtAddChild(n, isNameSet ? i : --i);
    }
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -



