All Downloads are FREE. Search and download functionalities are using the official Maven repository.

org.jruby.compiler.ir.operands.ClassMetaObject Maven / Gradle / Ivy

There is a newer version: 9.4.7.0
Show newest version
package org.jruby.compiler.ir.operands;

import org.jruby.compiler.ir.IRClass;
import org.jruby.interpreter.InterpreterContext;
import org.jruby.parser.StaticScope;

public class ClassMetaObject extends ModuleMetaObject {
    protected ClassMetaObject(IRClass scope) {
        super(scope);
    }

    @Override
    public boolean isClass() {
        return true;
    }

    @Override
    public Object retrieve(InterpreterContext interp) {
		  // SSS FIXME: why would this be null? for core classes?
        StaticScope ssc =  scope.getStaticScope();
		  return ssc == null ? null : ssc.getModule();
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy