org.jruby.ast
Class StarNode
java.lang.Object
org.jruby.ast.Node
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)
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
StarNode
public StarNode(ISourcePosition position)
- Constructor for StarNode.
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
assign
public IRubyObject assign(Ruby runtime,
ThreadContext context,
IRubyObject self,
IRubyObject value,
Block block,
boolean checkArity)
- Overrides:
assign
in class Node
Copyright © 2002-2009 JRuby Team. All Rights Reserved.