Package org.ruby_lang.prism
Class Nodes.IndexOperatorWriteNode
java.lang.Object
org.ruby_lang.prism.Nodes.Node
org.ruby_lang.prism.Nodes.IndexOperatorWriteNode
- Enclosing class:
- Nodes
Represents the use of an assignment operator on a call to `[]`.
foo.bar[baz] += value
^^^^^^^^^^^^^^^^^^^^^
-
Field Summary
FieldsModifier and TypeFieldDescriptionfinal Nodes.ArgumentsNodefinal byte[]final Nodes.BlockArgumentNodefinal shortfinal Nodes.Nodefinal Nodes.NodeFields inherited from class org.ruby_lang.prism.Nodes.Node
EMPTY_ARRAY, length, nodeId, startOffset -
Constructor Summary
ConstructorsConstructorDescriptionIndexOperatorWriteNode(int nodeId, int startOffset, int length, short flags, Nodes.Node receiver, Nodes.ArgumentsNode arguments, Nodes.BlockArgumentNode block, byte[] binary_operator, Nodes.Node value) -
Method Summary
Modifier and TypeMethodDescription<T> Taccept(AbstractNodeVisitor<T> visitor) booleanbooleanbooleanbooleanprotected String<T> voidvisitChildNodes(AbstractNodeVisitor<T> visitor) Methods inherited from class org.ruby_lang.prism.Nodes.Node
endOffset, hasNewLineFlag, setNewLineFlag, setNewLineFlag, toString
-
Field Details
-
flags
public final short flags -
receiver
-
arguments
-
block
-
binary_operator
public final byte[] binary_operator -
value
-
-
Constructor Details
-
IndexOperatorWriteNode
public IndexOperatorWriteNode(int nodeId, int startOffset, int length, short flags, Nodes.Node receiver, Nodes.ArgumentsNode arguments, Nodes.BlockArgumentNode block, byte[] binary_operator, Nodes.Node value)
-
-
Method Details
-
isVariableCall
public boolean isVariableCall() -
isAttributeWrite
public boolean isAttributeWrite() -
isIgnoreVisibility
public boolean isIgnoreVisibility() -
visitChildNodes
- Specified by:
visitChildNodesin classNodes.Node
-
childNodes
- Specified by:
childNodesin classNodes.Node
-
accept
- Specified by:
acceptin classNodes.Node
-
toString
- Specified by:
toStringin classNodes.Node