org.jruby.ast
Class LambdaNode

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

public class LambdaNode
extends IterNode

Stubby lambda node (1.9 only)


Constructor Summary
LambdaNode(ISourcePosition position, ArgsNode args, Node body, StaticScope scope)
           
 
Method Summary
 java.lang.Object accept(NodeVisitor visitor)
          Accept for the visitor pattern.
 java.util.List<Node> childNodes()
           
 ArgsNode getArgs()
           
 Node getBody()
           
 NodeType getNodeType()
           
 IRubyObject interpret(Ruby runtime, ThreadContext context, IRubyObject self, Block aBlock)
           
 
Methods inherited from class org.jruby.ast.IterNode
getBlockBody, getBodyNode, getScope, getVarNode
 
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

LambdaNode

public LambdaNode(ISourcePosition position,
                  ArgsNode args,
                  Node body,
                  StaticScope scope)
Method Detail

getNodeType

public NodeType getNodeType()
Overrides:
getNodeType in class IterNode
Returns:
the nodeId

getArgs

public ArgsNode getArgs()

getBody

public Node getBody()

accept

public java.lang.Object accept(NodeVisitor visitor)
Description copied from class: IterNode
Accept for the visitor pattern.

Overrides:
accept in class IterNode
Parameters:
visitor - the visitor

childNodes

public java.util.List<Node> childNodes()
Overrides:
childNodes in class IterNode

interpret

public IRubyObject interpret(Ruby runtime,
                             ThreadContext context,
                             IRubyObject self,
                             Block aBlock)
Overrides:
interpret in class IterNode


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