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
final Nodes.Node
final String[]
final String
final Nodes.Node
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
-
body
-
name
-
-
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
-