Class Nodes.ModuleNode
java.lang.Object
org.prism.Nodes.Node
org.prism.Nodes.ModuleNode
- Enclosing class:
Nodes
Represents a module declaration involving the `module` keyword.
module Foo end
^^^^^^^^^^^^^^
-
Field Summary
FieldsModifier and TypeFieldDescriptionfinal Nodes.Nodefinal Nodes.Nodefinal org.jruby.RubySymbol[]final org.jruby.RubySymbolFields inherited from class org.prism.Nodes.Node
EMPTY_ARRAY, length, startOffset -
Constructor Summary
ConstructorsConstructorDescriptionModuleNode(int startOffset, int length, org.jruby.RubySymbol[] locals, Nodes.Node constant_path, Nodes.Node body, org.jruby.RubySymbol name) -
Method Summary
Modifier and TypeMethodDescription<T> Taccept(AbstractNodeVisitor<T> visitor) protected String<T> voidvisitChildNodes(AbstractNodeVisitor<T> visitor) Methods inherited from class org.prism.Nodes.Node
endOffset, hasNewLineFlag, setNewLineFlag, setNewLineFlag, toString
-
Field Details
-
locals
public final org.jruby.RubySymbol[] locals -
constant_path
-
body
-
name
public final org.jruby.RubySymbol name
-
-
Constructor Details
-
ModuleNode
public ModuleNode(int startOffset, int length, org.jruby.RubySymbol[] locals, Nodes.Node constant_path, Nodes.Node body, org.jruby.RubySymbol name)
-
-
Method Details
-
visitChildNodes
- Specified by:
visitChildNodesin classNodes.Node
-
childNodes
- Specified by:
childNodesin classNodes.Node
-
accept
- Specified by:
acceptin classNodes.Node
-
toString
- Specified by:
toStringin classNodes.Node
-