Top Description Fields Constructors Methods
org.jruby.ast

public Class AttrAssignNode

extends Node
implements INameNode, IArgumentNode
Class Inheritance
All Implemented Interfaces
org.jruby.ast.IArgumentNode, org.jruby.ast.types.INameNode
Imports
java.util.List, org.jruby.RubySymbol, org.jruby.ast.types.INameNode, org.jruby.ast.visitor.NodeVisitor

Node that represents an assignment of either an array element or attribute.

Field Summary

Modifier and TypeField and Description
private Node
private final Node
private final boolean
private final RubySymbol
protected final Node
Inherited from org.jruby.ast.Node:
containsVariableAssignmentEMPTY_LISTnewline

Constructor Summary

AccessConstructor and Description
public
AttrAssignNode(int line, Node receiverNode, RubySymbol name, Node argsNode, Node blockNode, boolean isLazy)

Method Summary

Modifier and TypeMethod and Description
public <T> T
accept(NodeVisitor<T>
the visitor
visitor
)

Implements abstract org.jruby.ast.Node.accept.

Accept for the visitor pattern.

public List<Node>
public Node

Returns:

argsNode
getArgsNode
()

Implements org.jruby.ast.IArgumentNode.getArgsNode.

Gets the argsNode.

public Node
public RubySymbol

Returns:

name
getName
()

Implements org.jruby.ast.types.INameNode.getName.

Gets the name.

public NodeType
public Node

Returns:

receiverNode
getReceiverNode
()

Gets the receiverNode.

public boolean
public Node
setArgsNode(Node
set the arguments for this node.
argsNode
)

Implements org.jruby.ast.IArgumentNode.setArgsNode.

Set the argsNode

Inherited from org.jruby.ast.Node:
containsVariableAssignmentcreateListcreateListcreateListcreateListexecutesOncegetFilegetLinegetNodeNameisNewlineisNilneedsDefinitionChecksetLinesetNewlinetoStringtoStringtoStringExtraInfotoStringInternalunsetNewline

Field Detail

argsNodeback to summary
private Node argsNode
blockNodeback to summary
private final Node blockNode
isLazyback to summary
private final boolean isLazy
nameback to summary
private final RubySymbol name
receiverNodeback to summary
protected final Node receiverNode

Constructor Detail

AttrAssignNodeback to summary
public AttrAssignNode(int line, Node receiverNode, RubySymbol name, Node argsNode, Node blockNode, boolean isLazy)

Method Detail

acceptback to summary
public <T> T accept(NodeVisitor<T> visitor)

Implements abstract org.jruby.ast.Node.accept.

Accept for the visitor pattern.

Parameters
visitor:NodeVisitor<T>

the visitor

childNodesback to summary
public List<Node> childNodes()

Implements abstract org.jruby.ast.Node.childNodes.

getArgsNodeback to summary
public Node getArgsNode()

Implements org.jruby.ast.IArgumentNode.getArgsNode.

Gets the argsNode. argsNode representing the method's arguments' value for this call.

Returns:Node

argsNode

getBlockNodeback to summary
public Node getBlockNode()
getNameback to summary
public RubySymbol getName()

Implements org.jruby.ast.types.INameNode.getName.

Gets the name. name is the name of the method called

Returns:RubySymbol

name

getNodeTypeback to summary
public NodeType getNodeType()

Implements abstract org.jruby.ast.Node.getNodeType.

Returns:NodeType

Doc from org.jruby.ast.Node.getNodeType.

the nodeId

getReceiverNodeback to summary
public Node getReceiverNode()

Gets the receiverNode. receiverNode is the object on which the method is being called

Returns:Node

receiverNode

isLazyback to summary
public boolean isLazy()
setArgsNodeback to summary
public Node setArgsNode(Node argsNode)

Implements org.jruby.ast.IArgumentNode.setArgsNode.

Set the argsNode

Parameters
argsNode:Node

set the arguments for this node.