org.jruby.ast
Class Colon2Node

java.lang.Object
  extended byorg.jruby.ast.Node
      extended byorg.jruby.ast.Colon3Node
          extended byorg.jruby.ast.Colon2Node
All Implemented Interfaces:
INameNode, InstructionContext, ISourcePositionHolder, java.io.Serializable

public class Colon2Node
extends Colon3Node
implements INameNode

Represents a '::' constant access or method call.

Author:
jpetersen
See Also:
Serialized Form

Field Summary
 
Fields inherited from class org.jruby.ast.Node
instruction, nodeId
 
Constructor Summary
Colon2Node(ISourcePosition position, Node leftNode, java.lang.String name)
           
 
Method Summary
 Instruction accept(NodeVisitor iVisitor)
          Accept for the visitor pattern.
 java.util.List childNodes()
           
 Node getLeftNode()
          Gets the leftNode.
 java.lang.String toString()
           
 
Methods inherited from class org.jruby.ast.Colon3Node
getName, setName
 
Methods inherited from class org.jruby.ast.Node
addComment, addComments, createList, createList, createList, createList, getComments, getNodeName, getPosition, getPositionIncludingComments, hasComments, setPosition
 
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

Colon2Node

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

accept

public Instruction 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 childNodes()
Overrides:
childNodes in class Colon3Node

toString

public java.lang.String toString()
Overrides:
toString in class Node


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