org.jruby.ast
Class Colon2MethodNode

java.lang.Object
  extended by org.jruby.ast.Node
      extended by org.jruby.ast.Colon3Node
          extended by org.jruby.ast.Colon2Node
              extended by org.jruby.ast.Colon2MethodNode
All Implemented Interfaces:
INameNode, ISourcePositionHolder

public class Colon2MethodNode
extends Colon2Node

Represents a constant path which ends in a method (e.g. Foo::bar). Note: methods with explicit parameters (e.g. Foo::bar()) will be a CallNode.


Field Summary
 
Fields inherited from class org.jruby.ast.Colon2Node
leftNode
 
Fields inherited from class org.jruby.ast.Colon3Node
name
 
Fields inherited from class org.jruby.ast.Node
EMPTY_COMMENT_LIST, INVALID_POSITION, nodeId
 
Constructor Summary
Colon2MethodNode(ISourcePosition position, Node leftNode, java.lang.String name)
           
 
Method Summary
 java.lang.String definition(Ruby runtime, ThreadContext context, IRubyObject self, Block aBlock)
           
 IRubyObject interpret(Ruby runtime, ThreadContext context, IRubyObject self, Block aBlock)
           
 
Methods inherited from class org.jruby.ast.Colon2Node
accept, childNodes, getEnclosingModule, getLeftNode, toString
 
Methods inherited from class org.jruby.ast.Colon3Node
getName, setName
 
Methods inherited from class org.jruby.ast.Node
addComment, addComments, assign, createList, getComments, getNodeName, getPosition, getPositionIncludingComments, hasComments, isInvisible, setPosition, when
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface org.jruby.ast.types.INameNode
getName
 

Constructor Detail

Colon2MethodNode

public Colon2MethodNode(ISourcePosition position,
                        Node leftNode,
                        java.lang.String name)
Method Detail

interpret

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

definition

public java.lang.String definition(Ruby runtime,
                                   ThreadContext context,
                                   IRubyObject self,
                                   Block aBlock)
Overrides:
definition in class Colon3Node


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