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

org.jruby.ir.IRMetaClassBody Maven / Gradle / Ivy

There is a newer version: 9.4.9.0
Show newest version
package org.jruby.ir;

import org.jruby.parser.StaticScope;
import org.jruby.ir.operands.LocalVariable;
import org.jruby.ir.operands.Variable;

public class IRMetaClassBody extends IRClassBody {
    public IRMetaClassBody(IRManager manager, IRScope lexicalParent, String name,
            int lineNumber, StaticScope scope) {
        super(manager, lexicalParent, name, lineNumber, scope);
    }

    public IRMetaClassBody(IRManager manager, IRScope lexicalParent, String name,
            String fileName, int lineNumber, StaticScope scope) {
        super(manager, lexicalParent, name, fileName, lineNumber, scope);
    }

    @Override
    public String getScopeName() {
        return "MetaClassBody";
    }

    @Override
    public LocalVariable getImplicitBlockArg() {
        return getLocalVariable(Variable.BLOCK, 0);
    }

    @Override
    public boolean isNonSingletonClassBody() {
        return false;
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy