Package org.prism
Class Nodes.ClassNode
java.lang.Object
org.prism.Nodes.Node
org.prism.Nodes.ClassNode
- Enclosing class:
- Nodes
Represents a class declaration involving the `class` keyword. class Foo end ^^^^^^^^^^^^^
-
Field Summary
FieldsModifier and TypeFieldDescriptionfinal Nodes.Node
Represents the body of the class.final Nodes.Node
final String[]
final String
The name of the class.final Nodes.Node
Represents the superclass of the class.Fields inherited from class org.prism.Nodes.Node
EMPTY_ARRAY, length, nodeId, startOffset
-
Constructor Summary
ConstructorsConstructorDescriptionClassNode
(int nodeId, int startOffset, int length, String[] locals, Nodes.Node constant_path, Nodes.Node superclass, Nodes.Node body, String name) -
Method Summary
Modifier and TypeMethodDescription<T> T
accept
(AbstractNodeVisitor<T> visitor) protected String
<T> void
visitChildNodes
(AbstractNodeVisitor<T> visitor) Methods inherited from class org.prism.Nodes.Node
endOffset, hasNewLineFlag, setNewLineFlag, setNewLineFlag, toString
-
Field Details
-
locals
-
constant_path
-
superclass
Represents the superclass of the class. class Foo < Bar ^^^
-
body
Represents the body of the class. class Foo foo ^^^
-
name
The name of the class. class Foo end # name `:Foo`
-
-
Constructor Details
-
ClassNode
public ClassNode(int nodeId, int startOffset, int length, String[] locals, Nodes.Node constant_path, Nodes.Node superclass, Nodes.Node body, String name)
-
-
Method Details
-
visitChildNodes
- Specified by:
visitChildNodes
in classNodes.Node
-
childNodes
- Specified by:
childNodes
in classNodes.Node
-
accept
- Specified by:
accept
in classNodes.Node
-
toString
- Specified by:
toString
in classNodes.Node
-