org.jruby.ast
Class FixnumNode
java.lang.Object
org.jruby.ast.Node
org.jruby.ast.FixnumNode
- All Implemented Interfaces:
- IEqlNode, ILiteralNode, ISourcePositionHolder
public class FixnumNode
- extends Node
- implements ILiteralNode, IEqlNode
Represents an integer literal.
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
FixnumNode
public FixnumNode(ISourcePosition position,
long value)
accept
public java.lang.Object accept(NodeVisitor iVisitor)
- Specified by:
accept
in class Node
getNodeType
public NodeType getNodeType()
- Specified by:
getNodeType
in class Node
- Returns:
- the nodeId
getValue
public long getValue()
- Gets the value.
- Returns:
- Returns a long
setValue
public void setValue(long value)
getFixnum
public RubyFixnum getFixnum(Ruby runtime)
childNodes
public java.util.List<Node> childNodes()
- Specified by:
childNodes
in class Node
interpret
public IRubyObject interpret(Ruby runtime,
ThreadContext context,
IRubyObject self,
Block aBlock)
- Overrides:
interpret
in class Node
eql
public boolean eql(IRubyObject otherValue,
ThreadContext context,
Ruby runtime,
IRubyObject self,
Block aBlock)
- Specified by:
eql
in interface IEqlNode
Copyright © 2002-2009 JRuby Team. All Rights Reserved.