Examples of fastSetClassVar()


Examples of org.jruby.RubyModule.fastSetClassVar()

        // FIXME: This isn't quite right; it shouldn't evaluate the value if it's going to throw the error
        RubyModule rubyClass = ASTInterpreter.getClassVariableBase(context, runtime);
  
        if (rubyClass == null) throw runtime.newTypeError("no class/module to define class variable");
       
        rubyClass.fastSetClassVar(internedName, value);
  
        return value;
    }
   
    public static void handleArgumentSizes(ThreadContext context, Ruby runtime, int given, int required, int opt, int rest) {
View Full Code Here

Examples of org.jruby.RubyModule.fastSetClassVar()

       
        if (rubyClass == null) {
            throw runtime.newTypeError("no class/module to define class variable");
        }
       
        return rubyClass.fastSetClassVar(name, getValueNode().interpret(runtime, context, self, aBlock));
    }
   
    @Override
    public IRubyObject assign(Ruby runtime, ThreadContext context, IRubyObject self, IRubyObject value, Block block, boolean checkArity) {       
        if (runtime.getVerbose().isTrue() && context.getRubyClass().isSingleton()) {
View Full Code Here

Examples of org.jruby.RubyModule.fastSetClassVar()

            IRubyObject self, String internedName, IRubyObject value) {
        RubyModule rubyClass = ASTInterpreter.getClassVariableBase(context, runtime);
  
        if (rubyClass == null) rubyClass = self.getMetaClass();

        rubyClass.fastSetClassVar(internedName, value);
  
        return value;
    }
   
    public static IRubyObject declareClassVariable(ThreadContext context, Ruby runtime, IRubyObject self, String name, IRubyObject value) {
View Full Code Here

Examples of org.jruby.RubyModule.fastSetClassVar()

    public IRubyObject interpret(Ruby runtime, ThreadContext context, IRubyObject self, Block aBlock) {
        RubyModule rubyClass = ASTInterpreter.getClassVariableBase(context, runtime);
  
        if (rubyClass == null) rubyClass = self.getMetaClass();

        return rubyClass.fastSetClassVar(name, getValueNode().interpret(runtime, context, self, aBlock));
    }
   
    @Override
    public IRubyObject assign(Ruby runtime, ThreadContext context, IRubyObject self, IRubyObject value, Block block, boolean checkArity) {
        ASTInterpreter.getClassVariableBase(context, runtime).fastSetClassVar(name, value);
View Full Code Here

Examples of org.jruby.RubyModule.fastSetClassVar()

                    rubyClass = self.getMetaClass();
                } else if (rubyClass.isSingleton()) {
                    rubyClass = (RubyModule)(((MetaClass)rubyClass).getAttached());
                }
   
                rubyClass.fastSetClassVar(bytecodes[ip].s_op0, pop());
                break;
            }
            case YARVInstructions.GETCONSTANT:
                push(context.getConstant(bytecodes[ip].s_op0));
                break;
View Full Code Here

Examples of org.jruby.RubyModule.fastSetClassVar()

       
        if (rubyClass == null) {
            throw runtime.newTypeError("no class/module to define class variable");
        }
       
        return rubyClass.fastSetClassVar(name, getValueNode().interpret(runtime, context, self, aBlock));
    }
   
    @Override
    public IRubyObject assign(Ruby runtime, ThreadContext context, IRubyObject self, IRubyObject value, Block block, boolean checkArity) {       
        if (runtime.isVerbose() && context.getRubyClass().isSingleton()) {
View Full Code Here

Examples of org.jruby.RubyModule.fastSetClassVar()

    public IRubyObject interpret(Ruby runtime, ThreadContext context, IRubyObject self, Block aBlock) {
        RubyModule rubyClass = ASTInterpreter.getClassVariableBase(context, runtime);
  
        if (rubyClass == null) rubyClass = self.getMetaClass();

        return rubyClass.fastSetClassVar(name, getValueNode().interpret(runtime, context, self, aBlock));
    }
   
    @Override
    public IRubyObject assign(Ruby runtime, ThreadContext context, IRubyObject self, IRubyObject value, Block block, boolean checkArity) {
        ASTInterpreter.getClassVariableBase(context, runtime).fastSetClassVar(name, value);
View Full Code Here

Examples of org.jruby.RubyModule.fastSetClassVar()

            IRubyObject self, String internedName, IRubyObject value) {
        RubyModule rubyClass = ASTInterpreter.getClassVariableBase(context, runtime);
  
        if (rubyClass == null) rubyClass = self.getMetaClass();

        rubyClass.fastSetClassVar(internedName, value);
  
        return value;
    }
   
    public static IRubyObject declareClassVariable(ThreadContext context, Ruby runtime, IRubyObject self, String name, IRubyObject value) {
View Full Code Here

Examples of org.jruby.RubyModule.fastSetClassVar()

        // FIXME: This isn't quite right; it shouldn't evaluate the value if it's going to throw the error
        RubyModule rubyClass = ASTInterpreter.getClassVariableBase(context, runtime);
  
        if (rubyClass == null) throw runtime.newTypeError("no class/module to define class variable");
       
        rubyClass.fastSetClassVar(internedName, value);
  
        return value;
    }
   
    public static void handleArgumentSizes(ThreadContext context, Ruby runtime, int given, int required, int opt, int rest) {
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.