Top Description Fields Constructors Methods
org.jruby.ast

public Class WhenNode

extends Node
Class Inheritance
Known Direct Subclasses
org.jruby.ast.WhenOneArgNode
Imports
java.util.List, org.jruby.ast.visitor.NodeVisitor

Represents a when condition

Field Summary

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

Constructor Summary

AccessConstructor and Description
public
WhenNode(int line, Node expressionNodes, Node bodyNode, Node nextCase)

Method Summary

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

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

Accept for the visitor pattern.

public List<Node>
public Node

Returns:

Returns a INode
getBodyNode
()

Gets the bodyNode.

public Node
getExpressionNodes()

Get the expressionNode(s).

public Node
getNextCase()

Gets the next case node (if any).

public NodeType
Inherited from org.jruby.ast.Node:
containsVariableAssignmentcreateListcreateListcreateListcreateListexecutesOncegetFilegetLinegetNodeNameisNewlineisNilneedsDefinitionChecksetLinesetNewlinetoStringtoStringtoStringExtraInfotoStringInternalunsetNewline

Field Detail

bodyNodeback to summary
protected final Node bodyNode
expressionNodesback to summary
protected final Node expressionNodes
nextCaseback to summary
private final Node nextCase

Constructor Detail

WhenNodeback to summary
public WhenNode(int line, Node expressionNodes, Node bodyNode, Node nextCase)

Method Detail

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

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

Accept for the visitor pattern.

Parameters
iVisitor:NodeVisitor<T>

the visitor

childNodesback to summary
public List<Node> childNodes()

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

getBodyNodeback to summary
public Node getBodyNode()

Gets the bodyNode.

Returns:Node

Returns a INode

getExpressionNodesback to summary
public Node getExpressionNodes()

Get the expressionNode(s).

getNextCaseback to summary
public Node getNextCase()

Gets the next case node (if any).

getNodeTypeback to summary
public NodeType getNodeType()

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

Returns:NodeType

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

the nodeId