Start line:  
End line:  

Snippet Preview

Snippet HTML Code

Stack Overflow Questions
 package org.jruby.ir.instructions;
 
public class GetClassVariableInstr extends GetInstr {
    public GetClassVariableInstr(Variable destOperand scopeString varName) {
        super(.destscopevarName);
    }
    @Override
    public Instr cloneForInlining(InlinerInfo ii) {
        return new GetClassVariableInstr(ii.getRenamedVariable(getResult()),
                getSource().cloneForInlining(ii), getRef());
    }
    @Override
    public Object interpret(ThreadContext contextDynamicScope currDynScopeIRubyObject selfObject[] tempBlock block) {
        return ((RubyModulegetSource().retrieve(contextselfcurrDynScopetemp)).getClassVar(getRef());
    }
    @Override
    public void visit(IRVisitor visitor) {
        visitor.GetClassVariableInstr(this);
    }
New to GrepCode? Check out our FAQ X