Examples of preBsfApply()


Examples of org.jruby.runtime.ThreadContext.preBsfApply()

        try {
            // add a new method conext
            String[] names = new String[paramNames.size()];
            paramNames.toArray(names);

            context.preBsfApply(names);
           
            // FIXME: This is broken.  We are assigning BSF globals as local vars in the top-level
            // scope.  This may be ok, but we are overwriting $~ and $_.  Leaving for now.
            DynamicScope scope = context.getCurrentScope();
View Full Code Here

Examples of org.jruby.runtime.ThreadContext.preBsfApply()

        ThreadContext context = runtime.getCurrentContext();
        try {
            // Construct local variables based on parameter names passed in
            String[] names = new String[paramNames.size()];
            paramNames.toArray(names);
            context.preBsfApply(names);

            // Populate values for the parameter names
            DynamicScope scope = context.getCurrentScope();
            for (int i = 0, size = args.size(); i < size; i++) {
                scope.setValue(i, JavaEmbedUtils.javaToRuby(runtime, args.get(i)), 0);
View Full Code Here

Examples of org.jruby.runtime.ThreadContext.preBsfApply()

        ThreadContext context = runtime.getCurrentContext();
        try {
            // Construct local variables based on parameter names passed in
            String[] names = new String[paramNames.size()];
            paramNames.toArray(names);
            context.preBsfApply(names);

            // Populate values for the parameter names
            DynamicScope scope = context.getCurrentScope();
            for (int i = 0, size = args.size(); i < size; i++) {
                scope.setValue(i, JavaEmbedUtils.javaToRuby(runtime, args.get(i)), 0);
View Full Code Here

Examples of org.jruby.runtime.ThreadContext.preBsfApply()

        ThreadContext context = runtime.getCurrentContext();
        try {
            // Construct local variables based on parameter names passed in
            String[] names = new String[paramNames.size()];
            paramNames.toArray(names);
            context.preBsfApply(names);

            // Populate values for the parameter names
            DynamicScope scope = context.getCurrentScope();
            for (int i = 0, size = args.size(); i < size; i++) {
                scope.setValue(i, JavaEmbedUtils.javaToRuby(runtime, args.get(i)), 0);
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.