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

org.jruby.ir.operands.Nil Maven / Gradle / Ivy

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

// Records the nil object

import org.jruby.ir.IRVisitor;
import org.jruby.runtime.ThreadContext;

/**
 * Represents nil.
 * 
 * Note: We used to protect the constructor, but since manager is the new
 * way I got lazy and removed protected.
 */
public class Nil extends ImmutableLiteral {
    @Override
    public Object createCacheObject(ThreadContext context) {
        return context.nil;
    }
    
    @Override
    public String toString() { 
        return "nil";
    }

    @Override
    public void visit(IRVisitor visitor) {
        visitor.Nil(this);
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy