package org.jruby.ir.operands;
import org.jruby.ir.IRVisitor;
import org.jruby.runtime.ThreadContext;
public class Nil extends ImmutableLiteral {
public Nil() {
super();
}
@Override
public OperandType getOperandType() {
return OperandType.NIL;
}
@Override
public String toString() {
return "nil";
}
@Override
public Object createCacheObject(ThreadContext context) {
return context.nil;
}
@Override
public void visit(IRVisitor visitor) {
visitor.Nil(this);
}
@Override
public boolean isFalseyImmediate() {
return true;
}
}