Top Fields Constructors Methods
org.jruby.ast

public Class OpAsgnNode

extends Node
Class Inheritance
Imports
java.util.List, org.jruby.RubySymbol, org.jruby.ast.visitor.NodeVisitor, org.jruby.util.ByteList, .CommonByteLists

Field Summary

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

Constructor Summary

AccessConstructor and Description
public
OpAsgnNode(int line, Node receiverNode, Node valueNode, RubySymbol variableName, RubySymbol operatorName, boolean isLazy)

Method Summary

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

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

Accept for the visitor pattern.

public List<Node>
public NodeType
public ByteList
public String

Returns:

Returns a String
getOperatorName
()

Gets the methodName.

public RubySymbol
public Node

Returns:

Returns a Node
getReceiverNode
()

Gets the receiverNode.

public Node

Returns:

Returns a Node
getValueNode
()

Gets the valueNode.

public ByteList
public ByteList
public String

Returns:

Returns a String
getVariableName
()

Gets the varibaleName.

public String
public RubySymbol
public RubySymbol
public boolean
public boolean
public boolean
isOr()

public boolean
needsDefinitionCheck()

Overrides org.jruby.ast.Node.needsDefinitionCheck.

Check whether the given node is considered always "defined" or whether it has some form of definition check.

Inherited from org.jruby.ast.Node:
containsVariableAssignmentcreateListcreateListcreateListcreateListexecutesOncegetFilegetLinegetNodeNameisNewlineisNilsetLinesetNewlinetoStringtoStringtoStringExtraInfotoStringInternalunsetNewline

Field Detail

isLazyback to summary
private final boolean isLazy
operatorNameback to summary
private final RubySymbol operatorName
receiverNodeback to summary
private final Node receiverNode
valueNodeback to summary
private final Node valueNode
variableNameback to summary
private final RubySymbol variableName
variableNameAsgnback to summary
private final RubySymbol variableNameAsgn

Constructor Detail

OpAsgnNodeback to summary
public OpAsgnNode(int line, Node receiverNode, Node valueNode, RubySymbol variableName, RubySymbol operatorName, boolean isLazy)

Method Detail

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

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

Accept for the visitor pattern.

Parameters
iVisitor:NodeVisitor<T>

the visitor

childNodesback to summary
public List<Node> childNodes()

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

getNodeTypeback to summary
public NodeType getNodeType()

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

Returns:NodeType

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

the nodeId

getOperatorByteNameback to summary
public ByteList getOperatorByteName()
getOperatorNameback to summary
public String getOperatorName()

Gets the methodName.

Returns:String

Returns a String

getOperatorSymbolNameback to summary
public RubySymbol getOperatorSymbolName()
getReceiverNodeback to summary
public Node getReceiverNode()

Gets the receiverNode.

Returns:Node

Returns a Node

getValueNodeback to summary
public Node getValueNode()

Gets the valueNode.

Returns:Node

Returns a Node

getVariableByteNameback to summary
public ByteList getVariableByteName()
getVariableByteNameAsgnback to summary
public ByteList getVariableByteNameAsgn()
getVariableNameback to summary
public String getVariableName()

Gets the varibaleName.

Returns:String

Returns a String

getVariableNameAsgnback to summary
public String getVariableNameAsgn()
getVariableSymbolNameback to summary
public RubySymbol getVariableSymbolName()
getVariableSymbolNameAsgnback to summary
public RubySymbol getVariableSymbolNameAsgn()
isAndback to summary
public boolean isAnd()
isLazyback to summary
public boolean isLazy()
isOrback to summary
public boolean isOr()
needsDefinitionCheckback to summary
public boolean needsDefinitionCheck()

Overrides org.jruby.ast.Node.needsDefinitionCheck.

Doc from org.jruby.ast.Node.needsDefinitionCheck.

Check whether the given node is considered always "defined" or whether it has some form of definition check.

Returns:boolean

Whether the type of node represents a possibly undefined construct

Annotations
@Override