org.jruby.ast
Class Colon2Node
java.lang.Object
org.jruby.ast.Node
org.jruby.ast.Colon3Node
org.jruby.ast.Colon2Node
- All Implemented Interfaces:
- INameNode, ISourcePositionHolder
public final class Colon2Node
- extends Colon3Node
- implements INameNode
Represents a '::' constant access or method call (Java::JavaClass).
Methods inherited from class org.jruby.ast.Node |
addComment, addComments, assign, createList, getComments, getNodeName, getPosition, getPositionIncludingComments, hasComments, isInvisible, 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<Node> childNodes()
- Overrides:
childNodes
in class Colon3Node
toString
public java.lang.String toString()
- Overrides:
toString
in class Node
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
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.