public class FixnumNode extends Node implements ILiteralNode, IEqlNode
| Modifier and Type | Field and Description |
|---|---|
private RubyFixnum |
fixnum |
private long |
value |
EMPTY_LIST| Constructor and Description |
|---|
FixnumNode(ISourcePosition position,
long value) |
| Modifier and Type | Method and Description |
|---|---|
java.lang.Object |
accept(NodeVisitor iVisitor) |
java.util.List<Node> |
childNodes() |
boolean |
eql(IRubyObject otherValue,
ThreadContext context,
Ruby runtime,
IRubyObject self,
Block aBlock) |
RubyFixnum |
getFixnum(Ruby runtime) |
NodeType |
getNodeType() |
long |
getValue()
Gets the value.
|
IRubyObject |
interpret(Ruby runtime,
ThreadContext context,
IRubyObject self,
Block aBlock) |
void |
setValue(long value) |
assign, createList, createList, createList, createList, definition, getNodeName, getPosition, isNil, setPosition, toStringprivate long value
private RubyFixnum fixnum
public FixnumNode(ISourcePosition position, long value)
public java.lang.Object accept(NodeVisitor iVisitor)
public NodeType getNodeType()
getNodeType in class Nodepublic long getValue()
public void setValue(long value)
public RubyFixnum getFixnum(Ruby runtime)
public java.util.List<Node> childNodes()
childNodes in class Nodepublic IRubyObject interpret(Ruby runtime, ThreadContext context, IRubyObject self, Block aBlock)
public boolean eql(IRubyObject otherValue, ThreadContext context, Ruby runtime, IRubyObject self, Block aBlock)