org.jruby.ast
Class ZeroArgNode

java.lang.Object
  extended by org.jruby.ast.Node
      extended by org.jruby.ast.ZeroArgNode
All Implemented Interfaces:
java.io.Serializable, IArityNode, InstructionContext, 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
 

Author:
jpetersen
See Also:
Serialized Form

Field Summary
 
Fields inherited from class org.jruby.ast.Node
instruction, nodeId
 
Constructor Summary
ZeroArgNode(ISourcePosition position)
           
 
Method Summary
 Instruction accept(NodeVisitor visitor)
           
 java.util.List childNodes()
           
 Arity getArity()
          Zero arguments...
 
Methods inherited from class org.jruby.ast.Node
addComment, addComments, createList, createList, createList, createList, getComments, getNodeName, getPosition, getPositionIncludingComments, hasComments, 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 childNodes()
Specified by:
childNodes in class Node


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