public class FixnumNode extends Node implements ILiteralNode, IEqlNode
Constructor and Description |
---|
FixnumNode(ISourcePosition position,
long value) |
Modifier and Type | Method and Description |
---|---|
Object |
accept(NodeVisitor iVisitor) |
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, toString
public FixnumNode(ISourcePosition position, long value)
public Object accept(NodeVisitor iVisitor)
public NodeType getNodeType()
getNodeType
in class Node
public long getValue()
public void setValue(long value)
public RubyFixnum getFixnum(Ruby runtime)
public List<Node> childNodes()
childNodes
in class Node
public IRubyObject interpret(Ruby runtime, ThreadContext context, IRubyObject self, Block aBlock)
public boolean eql(IRubyObject otherValue, ThreadContext context, Ruby runtime, IRubyObject self, Block aBlock)
Copyright © 2001-2016 JRuby. All Rights Reserved.