Package org.jruby.ast
Class OpAsgnConstDeclNode
java.lang.Object
org.jruby.ast.Node
org.jruby.ast.OpAsgnConstDeclNode
- All Implemented Interfaces:
BinaryOperatorNode
A::B ||= 1
-
Field Summary
Fields inherited from class org.jruby.ast.Node
containsVariableAssignment, newline
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescription<T> T
accept
(NodeVisitor<T> visitor) Gets the firstNode.Gets the secondNode.boolean
isAnd()
boolean
isOr()
Methods inherited from class org.jruby.ast.Node
containsVariableAssignment, createList, createList, createList, createList, executesOnce, getFile, getLine, getNodeName, isNewline, isNil, needsDefinitionCheck, setLine, setNewline, toString, toString, toStringExtraInfo, toStringInternal, unsetNewline
-
Constructor Details
-
OpAsgnConstDeclNode
-
-
Method Details
-
isOr
public boolean isOr() -
isAnd
public boolean isAnd() -
getFirstNode
Description copied from interface:BinaryOperatorNode
Gets the firstNode.- Specified by:
getFirstNode
in interfaceBinaryOperatorNode
- Returns:
- Returns a Node
-
getSecondNode
Description copied from interface:BinaryOperatorNode
Gets the secondNode.- Specified by:
getSecondNode
in interfaceBinaryOperatorNode
- Returns:
- Returns a Node
-
getOperator
-
getByteOperator
-
getSymbolOperator
-
accept
-
childNodes
- Specified by:
childNodes
in classNode
-
getNodeType
- Specified by:
getNodeType
in classNode
- Returns:
- the nodeId
-