Package org.prism
Class Nodes.DefNode
java.lang.Object
org.prism.Nodes.Node
org.prism.Nodes.DefNode
- Enclosing class:
- Nodes
Represents a method definition. def method end ^^^^^^^^^^
-
Field Summary
FieldsModifier and TypeFieldDescriptionfinal Nodes.Node
final String[]
final String
final Nodes.ParametersNode
final Nodes.Node
final int
Fields inherited from class org.prism.Nodes.Node
EMPTY_ARRAY, length, nodeId, startOffset
-
Constructor Summary
ConstructorsConstructorDescriptionDefNode
(int nodeId, int startOffset, int length, int serializedLength, String name, Nodes.Node receiver, Nodes.ParametersNode parameters, Nodes.Node body, String[] locals) -
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
-
serializedLength
public final int serializedLength -
name
-
receiver
-
parameters
-
body
-
locals
-
-
Constructor Details
-
DefNode
public DefNode(int nodeId, int startOffset, int length, int serializedLength, String name, Nodes.Node receiver, Nodes.ParametersNode parameters, Nodes.Node body, String[] locals)
-
-
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
-