Top Description Fields Constructors Methods
org.jruby.ast

public Class AndNode

extends Node
implements BinaryOperatorNode
Class Inheritance
All Implemented Interfaces
org.jruby.ast.BinaryOperatorNode
Imports
java.util.List, org.jruby.ast.visitor.NodeVisitor

Represents a && (and) operator.

Field Summary

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

Constructor Summary

AccessConstructor and Description
public
AndNode(int line, Node firstNode, Node secondNode)

Method Summary

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

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

public List<Node>
public Node

Returns:

Returns a Node
getFirstNode
()

Implements org.jruby.ast.BinaryOperatorNode.getFirstNode.

Gets the firstNode.

public NodeType
public Node

Returns:

Returns a Node
getSecondNode
()

Implements org.jruby.ast.BinaryOperatorNode.getSecondNode.

Gets the secondNode.

Inherited from org.jruby.ast.Node:
containsVariableAssignmentcreateListcreateListcreateListcreateListexecutesOncegetFilegetLinegetNodeNameisNewlineisNilneedsDefinitionChecksetLinesetNewlinetoStringtoStringtoStringExtraInfotoStringInternalunsetNewline

Field Detail

firstNodeback to summary
private final Node firstNode
secondNodeback to summary
private final Node secondNode

Constructor Detail

AndNodeback to summary
public AndNode(int line, Node firstNode, Node secondNode)

Method Detail

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

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

childNodesback to summary
public List<Node> childNodes()

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

getFirstNodeback to summary
public Node getFirstNode()

Implements org.jruby.ast.BinaryOperatorNode.getFirstNode.

Gets the firstNode.

Returns:Node

Returns a Node

getNodeTypeback to summary
public NodeType getNodeType()

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

Returns:NodeType

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

the nodeId

getSecondNodeback to summary
public Node getSecondNode()

Implements org.jruby.ast.BinaryOperatorNode.getSecondNode.

Gets the secondNode.

Returns:Node

Returns a Node