public String toString() { return "function_prototype:" + function.getName(); }
public Object call(Object ctx, Object thisValue, VariableResolverFactory factory, Object[] parms) { return function.call(ctx, thisValue, factory, parms); } }
resolvedExternally = false; Function f = pCtx.getFunction(name); f.checkArgumentCount(parseParameterList((((cursor = balancedCapture(expr, cursor, '(')) - st) > 1 ? new String(expr, st + 1, cursor - st - 1) : "").toCharArray(), 0, -1).length); return f.getEgressType();
((Function) ptr).checkArgumentCount(args.length); return ((Function) ptr).call(null, thisReference, variableFactory, args);
return new Function(name, expr, startCond, endCond - startCond, blockStart, blockEnd - blockStart, fields, pCtx);
((FunctionInstance) ptr).getFunction().checkArgumentCount(args.length); return ((FunctionInstance) ptr).call(null, thisReference, variableFactory, args);
@Override public Object getReducedValue(Object ctx, Object thisValue, VariableResolverFactory factory) { final MapVariableResolverFactory resolverFactory = new MapVariableResolverFactory(new HashMap<String, Object>(), factory); function.getCompiledBlock().getValue(ctx, thisValue, resolverFactory); return new PrototypalFunctionInstance(function, resolverFactory); }
private Object createPrototypalObject(Object ctx, Object thisRef, VariableResolverFactory factory) { final Function function = pCtx.getFunction(typeDescr.getClassName()); return function.getReducedValueAccelerated(ctx, thisRef, factory); }
if (f != null && f.getEgressType() != null) { resolvedExternally = false; f.checkArgumentCount( parseParameterList( (((cursor = balancedCapture(expr, cursor, end, '(')) - st) > 1 ? ParseTools.subset(expr, st + 1, cursor - st - 1) : new char[0]), 0, -1).size()); return f.getEgressType();
return new Function(name, expr, startCond, endCond - startCond, blockStart, blockEnd - blockStart, fields, pCtx);
((FunctionInstance) ptr).getFunction().checkArgumentCount(args.length); return ((FunctionInstance) ptr).call(null, thisReference, variableFactory, args);
@Override public Object getReducedValue(Object ctx, Object thisValue, VariableResolverFactory factory) { final MapVariableResolverFactory resolverFactory = new MapVariableResolverFactory(new HashMap<String, Object>(), factory); function.getCompiledBlock().getValue(ctx, thisValue, resolverFactory); return new PrototypalFunctionInstance(function, resolverFactory); }
private Object createPrototypalObject(Object ctx, Object thisRef, VariableResolverFactory factory) { final Function function = pCtx.getFunction(typeDescr.getClassName()); return function.getReducedValueAccelerated(ctx, thisRef, factory); }
public String toString() { return "function_prototype:" + function.getName(); }
public Object call(Object ctx, Object thisValue, VariableResolverFactory factory, Object[] parms) { return function.call(ctx, thisValue, factory, parms); } }
if (f != null && f.getEgressType() != null) { resolvedExternally = false; f.checkArgumentCount( parseParameterList( (((cursor = balancedCapture(expr, cursor, end, '(')) - st) > 1 ? ParseTools.subset(expr, st + 1, cursor - st - 1) : new char[0]), 0, -1).size()); return f.getEgressType();
return new Function(name, ParseTools.subArray(expr, startCond, endCond), ParseTools.subArray(expr, blockStart, blockEnd), pCtx == null ? pCtx = AbstractParser.getCurrentThreadParserContext() : pCtx);
public void addFunction(org.mvel2.ast.Function function) { this.variables.put( function.getName(), function ); }
@Override public Object call(Object ctx, Object thisValue, VariableResolverFactory factory, Object[] parms) { return function.call(ctx, thisValue, new InvokationContextFactory(factory, resolverFactory), parms); }