Class Nodes.ClassVariableAndWriteNode

java.lang.Object
org.prism.Nodes.Node
org.prism.Nodes.ClassVariableAndWriteNode
Enclosing class:
Nodes

public static final class Nodes.ClassVariableAndWriteNode extends Nodes.Node
 Represents the use of the `&&=` operator for assignment to a class variable.

     @@target &&= value
     ^^^^^^^^^^^^^^^^^^
 
  • Field Details

    • name

      public final org.jruby.RubySymbol name
       The name of the class variable, which is a `@@` followed by an [identifier](https://github.com/ruby/prism/blob/main/docs/parsing_rules.md#identifiers).
      
           @@target &&= value # name `:@@target`
           ^^^^^^^^
       
    • value

      public final Nodes.Node value
       Represents the value being assigned. This can be any [non-void expression](https://github.com/ruby/prism/blob/main/docs/parsing_rules.md#non-void-expression).
      
           @@target &&= value
                        ^^^^^
       
  • Constructor Details

    • ClassVariableAndWriteNode

      public ClassVariableAndWriteNode(int startOffset, int length, org.jruby.RubySymbol name, Nodes.Node value)
  • Method Details