Package org.jruby.ast
Class OrNode
java.lang.Object
org.jruby.ast.Node
org.jruby.ast.OrNode
- All Implemented Interfaces:
BinaryOperatorNode
represents '||' (or) statements
-
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> iVisitor) Accept for the visitor pattern.Gets the firstNode.Gets the secondNode.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
-
OrNode
-
-
Method Details
-
getNodeType
- Specified by:
getNodeType
in classNode
- Returns:
- the nodeId
-
accept
Accept for the visitor pattern. -
getFirstNode
Gets the firstNode.- Specified by:
getFirstNode
in interfaceBinaryOperatorNode
- Returns:
- Returns a Node
-
getSecondNode
Gets the secondNode.- Specified by:
getSecondNode
in interfaceBinaryOperatorNode
- Returns:
- Returns a Node
-
childNodes
- Specified by:
childNodes
in classNode
-