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.NodeRepresents the body of the class.final Nodes.Nodefinal String[]final StringThe name of the class.final Nodes.NodeRepresents 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> 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
-
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:
visitChildNodesin classNodes.Node
-
childNodes
- Specified by:
childNodesin classNodes.Node
-
accept
- Specified by:
acceptin classNodes.Node
-
toString
- Specified by:
toStringin classNodes.Node
-