org.jruby.ast
Class Colon2Node

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

public abstract class Colon2Node
extends Colon3Node
implements INameNode

Represents a '::' constant access or method call (Java::JavaClass).


Field Summary
protected  Node leftNode
           
 
Fields inherited from class org.jruby.ast.Colon3Node
name
 
Constructor Summary
Colon2Node(ISourcePosition position, Node leftNode, java.lang.String name)
           
 
Method Summary
 java.lang.Object accept(NodeVisitor iVisitor)
          Accept for the visitor pattern.
 java.util.List<Node> childNodes()
           
 RubyModule getEnclosingModule(Ruby runtime, ThreadContext context, IRubyObject self, Block aBlock)
          Get parent module/class that this module represents
 Node getLeftNode()
          Gets the leftNode.
 NodeType getNodeType()
           
 
Methods inherited from class org.jruby.ast.Colon3Node
definition, getName, getValue, interpret, reCache, setName
 
Methods inherited from class org.jruby.ast.Node
assign, createList, getNodeName, getPosition, isInvisible, setPosition, toString
 
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
 

Field Detail

leftNode

protected final Node leftNode
Constructor Detail

Colon2Node

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

getNodeType

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

accept

public java.lang.Object accept(NodeVisitor iVisitor)
Accept for the visitor pattern.

Overrides:
accept in class Colon3Node
Parameters:
iVisitor - the visitor

getLeftNode

public Node getLeftNode()
Gets the leftNode.

Returns:
Returns a Node

childNodes

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

getEnclosingModule

public RubyModule getEnclosingModule(Ruby runtime,
                                     ThreadContext context,
                                     IRubyObject self,
                                     Block aBlock)
Get parent module/class that this module represents

Overrides:
getEnclosingModule in class Colon3Node


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