Package org.jruby.ast
Class Colon3Node
java.lang.Object
org.jruby.ast.Node
org.jruby.ast.Colon3Node
- All Implemented Interfaces:
INameNode
- Direct Known Subclasses:
Colon2Node
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
FieldsFields inherited from class org.jruby.ast.Node
containsVariableAssignment, newline
-
Constructor Summary
ConstructorsModifierConstructorDescriptionColon3Node
(int line, RubySymbol name) protected
Colon3Node
(int line, RubySymbol name, boolean containsAssignment) -
Method Summary
Modifier and TypeMethodDescription<T> T
accept
(NodeVisitor<T> iVisitor) Accept for the visitor pattern.getName()
Gets the name.Methods inherited from class org.jruby.ast.Node
containsVariableAssignment, createList, createList, createList, createList, executesOnce, getFile, getLine, getNodeName, isNewline, isNil, needsDefinitionCheck, setLine, setNewline, toString, toString, toStringExtraInfo, toStringInternal, unsetNewline
-
Field Details
-
name
-
-
Constructor Details
-
Colon3Node
-
Colon3Node
-
-
Method Details
-
getNodeType
- Specified by:
getNodeType
in classNode
- Returns:
- the nodeId
-
accept
Accept for the visitor pattern. -
getName
Gets the name. -
childNodes
- Specified by:
childNodes
in classNode
-