org.jruby.ast
Class StarNode

java.lang.Object
  extended by org.jruby.ast.Node
      extended by org.jruby.ast.StarNode
All Implemented Interfaces:
ISourcePositionHolder

public class StarNode
extends Node

Represents the unassignable star in a multiple assignent (e.g. a,b,* = arr). AssignmentVisitor.multiAssign checks for this (this is never visited directly)


Constructor Summary
StarNode(ISourcePosition position)
          Constructor for StarNode.
 
Method Summary
 java.lang.Object accept(NodeVisitor visitor)
           
 java.util.List<Node> childNodes()
           
 NodeType getNodeType()
           
 
Methods inherited from class org.jruby.ast.Node
assign, createList, definition, getNodeName, getPosition, interpret, isInvisible, setPosition, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

StarNode

public StarNode(ISourcePosition position)
Constructor for StarNode.

Method Detail

getNodeType

public NodeType getNodeType()
Specified by:
getNodeType in class Node
Returns:
the nodeId

accept

public java.lang.Object accept(NodeVisitor visitor)
Specified by:
accept in class Node
See Also:
Node.accept(NodeVisitor)

childNodes

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


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