org.jruby.ast
Class Colon2Node
java.lang.Object
org.jruby.ast.Node
org.jruby.ast.Colon3Node
org.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
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 |
Colon2Node
public Colon2Node(ISourcePosition position,
Node leftNode,
java.lang.String name)
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.