Top Description Fields Constructors Methods
org.jruby.ast

public Class Colon3Node

extends Node
implements INameNode
Class Inheritance
All Implemented Interfaces
org.jruby.ast.types.INameNode
Known Direct Subclasses
org.jruby.ast.Colon2Node
Imports
java.util.List, org.jruby.RubySymbol, org.jruby.ast.types.INameNode, org.jruby.ast.visitor.NodeVisitor

Global scope node (::FooBar). This is used to gain access to the global scope (that of the Object class) when referring to a constant or method.

Field Summary

Modifier and TypeField and Description
protected final RubySymbol
Inherited from org.jruby.ast.Node:
containsVariableAssignmentEMPTY_LISTnewline

Constructor Summary

AccessConstructor and Description
public
Colon3Node(int line, RubySymbol name)

protected
Colon3Node(int line, RubySymbol name, boolean containsAssignment)

Method Summary

Modifier and TypeMethod and Description
public <T> T
accept(NodeVisitor<T>
the visitor
iVisitor
)

Implements abstract org.jruby.ast.Node.accept.

Accept for the visitor pattern.

public List<Node>
public RubySymbol

Returns:

Returns a String
getName
()

Implements org.jruby.ast.types.INameNode.getName.

Gets the name.

public NodeType
Inherited from org.jruby.ast.Node:
containsVariableAssignmentcreateListcreateListcreateListcreateListexecutesOncegetFilegetLinegetNodeNameisNewlineisNilneedsDefinitionChecksetLinesetNewlinetoStringtoStringtoStringExtraInfotoStringInternalunsetNewline

Field Detail

nameback to summary
protected final RubySymbol name

Constructor Detail

Colon3Nodeback to summary
public Colon3Node(int line, RubySymbol name)
Colon3Nodeback to summary
protected Colon3Node(int line, RubySymbol name, boolean containsAssignment)

Method Detail

acceptback to summary
public <T> T accept(NodeVisitor<T> iVisitor)

Implements abstract org.jruby.ast.Node.accept.

Accept for the visitor pattern.

Parameters
iVisitor:NodeVisitor<T>

the visitor

childNodesback to summary
public List<Node> childNodes()

Implements abstract org.jruby.ast.Node.childNodes.

getNameback to summary
public RubySymbol getName()

Implements org.jruby.ast.types.INameNode.getName.

Gets the name.

Returns:RubySymbol

Returns a String

getNodeTypeback to summary
public NodeType getNodeType()

Implements abstract org.jruby.ast.Node.getNodeType.

Returns:NodeType

Doc from org.jruby.ast.Node.getNodeType.

the nodeId