Package org.jruby.ast

Class OpAsgnNode

java.lang.Object
org.jruby.ast.Node
org.jruby.ast.OpAsgnNode

public class OpAsgnNode extends Node
  • Constructor Details

    • OpAsgnNode

      public OpAsgnNode(int line, Node receiverNode, Node valueNode, RubySymbol variableName, RubySymbol operatorName, boolean isLazy)
  • Method Details

    • getNodeType

      public NodeType getNodeType()
      Specified by:
      getNodeType in class Node
      Returns:
      the nodeId
    • accept

      public <T> T accept(NodeVisitor<T> iVisitor)
      Accept for the visitor pattern.
      Specified by:
      accept in class Node
      Parameters:
      iVisitor - the visitor
    • getOperatorName

      public String getOperatorName()
      Gets the methodName.
      Returns:
      Returns a String
    • getOperatorByteName

      public ByteList getOperatorByteName()
    • getOperatorSymbolName

      public RubySymbol getOperatorSymbolName()
    • isOr

      public boolean isOr()
    • isAnd

      public boolean isAnd()
    • getReceiverNode

      public Node getReceiverNode()
      Gets the receiverNode.
      Returns:
      Returns a Node
    • getValueNode

      public Node getValueNode()
      Gets the valueNode.
      Returns:
      Returns a Node
    • getVariableName

      public String getVariableName()
      Gets the varibaleName.
      Returns:
      Returns a String
    • getVariableByteName

      public ByteList getVariableByteName()
    • getVariableSymbolName

      public RubySymbol getVariableSymbolName()
    • getVariableNameAsgn

      public String getVariableNameAsgn()
    • getVariableByteNameAsgn

      public ByteList getVariableByteNameAsgn()
    • getVariableSymbolNameAsgn

      public RubySymbol getVariableSymbolNameAsgn()
    • childNodes

      public List<Node> childNodes()
      Specified by:
      childNodes in class Node
    • isLazy

      public boolean isLazy()
    • needsDefinitionCheck

      public boolean needsDefinitionCheck()
      Description copied from class: Node
      Check whether the given node is considered always "defined" or whether it has some form of definition check.
      Overrides:
      needsDefinitionCheck in class Node
      Returns:
      Whether the type of node represents a possibly undefined construct