org.jruby.ast
Class Colon3Node

java.lang.Object
  extended byorg.jruby.ast.AbstractNode
      extended byorg.jruby.ast.Colon3Node
All Implemented Interfaces:
INode, java.io.Serializable

public class Colon3Node
extends AbstractNode

Global scope node. Node produced when using :: without a scope in front. This is used to gain access to the global scope (that of the Object class) when refering to a constant or method. This is the same as a Colon2Node but with no leftNode which implicitly uses the Object class as a left node.

Version:
$Revision: 1.3 $
Author:
jpetersen
See Also:
Serialized Form

Constructor Summary
Colon3Node(ISourcePosition position, java.lang.String name)
           
 
Method Summary
 void accept(INodeVisitor iVisitor)
          Accept for the visitor pattern.
 java.lang.String getName()
          Gets the name.
 
Methods inherited from class org.jruby.ast.AbstractNode
getPosition
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Colon3Node

public Colon3Node(ISourcePosition position,
                  java.lang.String name)
Method Detail

accept

public void accept(INodeVisitor iVisitor)
Accept for the visitor pattern.

Parameters:
iVisitor - the visitor

getName

public java.lang.String getName()
Gets the name.

Returns:
Returns a String


Copyright © 2002 Jan Arne Petersen. All Rights Reserved.