org.jruby.ast
Class ZeroArgNode

java.lang.Object
  extended by org.jruby.ast.Node
      extended by org.jruby.ast.ZeroArgNode
All Implemented Interfaces:
IArityNode, ISourcePositionHolder

public class ZeroArgNode
extends Node
implements IArityNode

Represents a zero arg in a block. this is never visited and is used only in an instanceof check

 do ||
 end
 


Field Summary
 
Fields inherited from class org.jruby.ast.Node
EMPTY_COMMENT_LIST, INVALID_POSITION, nodeId
 
Constructor Summary
ZeroArgNode(ISourcePosition position)
           
 
Method Summary
 Instruction accept(NodeVisitor visitor)
           
 java.util.List<Node> childNodes()
           
 Arity getArity()
          Zero arguments...
 
Methods inherited from class org.jruby.ast.Node
addComment, addComments, assign, createList, definition, getComments, getNodeName, getPosition, getPositionIncludingComments, hasComments, interpret, isInvisible, setPosition, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

ZeroArgNode

public ZeroArgNode(ISourcePosition position)
Method Detail

accept

public Instruction accept(NodeVisitor visitor)
Specified by:
accept in class Node
See Also:
Node.accept(NodeVisitor)

getArity

public Arity getArity()
Zero arguments...

Specified by:
getArity in interface IArityNode

childNodes

public java.util.List<Node> childNodes()
Specified by:
childNodes in class Node


Copyright © 2002-2007 JRuby Team. All Rights Reserved.