Class Nodes.IndexTargetNode
java.lang.Object
org.prism.Nodes.Node
org.prism.Nodes.IndexTargetNode
- Enclosing class:
Nodes
Represents assigning to an index.
foo[bar], = 1
^^^^^^^^
begin
rescue => foo[bar]
^^^^^^^^
end
for foo[bar] in baz do end
^^^^^^^^
-
Field Summary
FieldsModifier and TypeFieldDescriptionfinal Nodes.ArgumentsNodefinal Nodes.BlockArgumentNodefinal shortfinal Nodes.NodeFields inherited from class org.prism.Nodes.Node
EMPTY_ARRAY, length, startOffset -
Constructor Summary
ConstructorsConstructorDescriptionIndexTargetNode(int startOffset, int length, short flags, Nodes.Node receiver, Nodes.ArgumentsNode arguments, Nodes.BlockArgumentNode block) -
Method Summary
Modifier and TypeMethodDescription<T> Taccept(AbstractNodeVisitor<T> visitor) booleanbooleanbooleanbooleanprotected String<T> voidvisitChildNodes(AbstractNodeVisitor<T> visitor) Methods inherited from class org.prism.Nodes.Node
endOffset, hasNewLineFlag, setNewLineFlag, setNewLineFlag, toString
-
Field Details
-
flags
public final short flags -
receiver
-
arguments
-
block
-
-
Constructor Details
-
IndexTargetNode
public IndexTargetNode(int startOffset, int length, short flags, Nodes.Node receiver, Nodes.ArgumentsNode arguments, Nodes.BlockArgumentNode block)
-
-
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