Package com.cloudbees.groovy.cps

Examples of com.cloudbees.groovy.cps.Env


    public CpsFunction(List<String> parameters, Block body) {
        super(parameters, body);
    }

    public Next invoke(Env caller, SourceLocation loc, Object receiver, List<?> args, Continuation k) {
        Env e = new FunctionCallEnv(caller, k, loc, receiver);
        assignArguments(args,e);
        return new Next(body, e, k);
    }
View Full Code Here


    public BlockScopedBlock(Block exp) {
        this.exp = exp;
    }

    public Next eval(Env _e, final Continuation k) {
        final Env e = new BlockScopeEnv(_e); // block statement creates a new scope

        return new Next(exp,e,k);
    }
View Full Code Here

        this.self = self;
    }

    @Override
    Next invoke(Env caller, SourceLocation loc, Object receiver, List<?> args, Continuation k) {
        Env e = new ClosureCallEnv(caller, k, loc, capture, self);

        assignArguments(args, e);

        // TODO: who handles 'it' ?
View Full Code Here

TOP

Related Classes of com.cloudbees.groovy.cps.Env

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.