Examples of fastGetClassVar()


Examples of org.jruby.RubyClass.fastGetClassVar()

                && receiver.getMetaClass().getClassVariableNameList().contains(key)) {
            value = receiver.getMetaClass().getClassVar(key);
        } else {
            RubyClass klazz = receiver.getMetaClass();
            if (klazz.fastHasClassVariable(key.intern())) {
                value = klazz.fastGetClassVar(key.intern());
            }
        }
        if (value == null) return;
       
        BiVariable var = vars.getVariable(receiver, key);
View Full Code Here

Examples of org.jruby.RubyModule.fastGetClassVar()

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

        return rubyClass.fastGetClassVar(internedName);
    }
   
    public static IRubyObject getConstant(ThreadContext context, String internedName) {
        Ruby runtime = context.getRuntime();
View Full Code Here

Examples of org.jruby.RubyModule.fastGetClassVar()

                String name = bytecodes[ip].s_op0;
   
                if (rubyClass == null) {
                    push(self.getMetaClass().fastGetClassVar(name));
                } else if (!rubyClass.isSingleton()) {
                    push(rubyClass.fastGetClassVar(name));
                } else {
                    RubyModule module = (RubyModule)(((MetaClass)rubyClass).getAttached());

                    if (module != null) {
                        push(module.fastGetClassVar(name));
View Full Code Here

Examples of org.jruby.RubyModule.fastGetClassVar()

                    push(rubyClass.fastGetClassVar(name));
                } else {
                    RubyModule module = (RubyModule)(((MetaClass)rubyClass).getAttached());

                    if (module != null) {
                        push(module.fastGetClassVar(name));
                    } else {
                        push(runtime.getNil());
                    }
                }
                break;
View Full Code Here

Examples of org.jruby.RubyModule.fastGetClassVar()

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

        return rubyClass.fastGetClassVar(internedName);
    }
   
    public static IRubyObject getConstant(ThreadContext context, String internedName) {
        Ruby runtime = context.getRuntime();
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.