org.jruby.ast
Class FixnumNode

java.lang.Object
  extended by org.jruby.ast.Node
      extended by org.jruby.ast.FixnumNode
All Implemented Interfaces:
IEqlNode, ILiteralNode, ISourcePositionHolder

public class FixnumNode
extends Node
implements ILiteralNode, IEqlNode

Represents an integer literal.


Constructor Summary
FixnumNode(ISourcePosition position, long value)
           
 
Method Summary
 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)
           
 
Methods inherited from class org.jruby.ast.Node
assign, createList, definition, getNodeName, getPosition, isInvisible, setPosition, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

FixnumNode

public FixnumNode(ISourcePosition position,
                  long value)
Method Detail

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-2007 JRuby Team. All Rights Reserved.