Top Description Fields Constructors Methods
org.jruby.ast

public Class FlipNode

extends Node
Class Inheritance
Imports
java.util.List, org.jruby.ast.visitor.NodeVisitor

A Range in a boolean expression (named after a FlipFlop component in electronic?).

Field Summary

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

Constructor Summary

AccessConstructor and Description
public
FlipNode(int line, Node beginNode, Node endNode, boolean exclusive, int location)

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 Node
getBeginNode
()

Gets the beginNode.

public int

Returns:

0 for current scope, 1 for one down, ...
getDepth
()

How many scopes should we burrow down to until we need to set the block variable value.

public Node

Returns:

Returns a Node
getEndNode
()

Gets the endNode.

public int

Returns:

Returns an int offset into storage structure
getIndex
()

Gets the index within the scope construct that actually holds the eval'd value of this local variable

public NodeType
public boolean

Returns:

Returns a boolean
isExclusive
()

Gets the exclusive.

Inherited from org.jruby.ast.Node:
containsVariableAssignmentcreateListcreateListcreateListcreateListexecutesOncegetFilegetLinegetNodeNameisNewlineisNilneedsDefinitionChecksetLinesetNewlinetoStringtoStringtoStringExtraInfotoStringInternalunsetNewline

Field Detail

beginNodeback to summary
private final Node beginNode
endNodeback to summary
private final Node endNode
exclusiveback to summary
private final boolean exclusive
locationback to summary
private final int location

Constructor Detail

FlipNodeback to summary
public FlipNode(int line, Node beginNode, Node endNode, boolean exclusive, int location)

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.

getBeginNodeback to summary
public Node getBeginNode()

Gets the beginNode. beginNode will set the FlipFlop the first time it is true

Returns:Node

Returns a Node

getDepthback to summary
public int getDepth()

How many scopes should we burrow down to until we need to set the block variable value.

Returns:int

0 for current scope, 1 for one down, ...

getEndNodeback to summary
public Node getEndNode()

Gets the endNode. endNode will reset the FlipFlop when it is true while the FlipFlop is set.

Returns:Node

Returns a Node

getIndexback to summary
public int getIndex()

Gets the index within the scope construct that actually holds the eval'd value of this local variable

Returns:int

Returns an int offset into storage structure

getNodeTypeback to summary
public NodeType getNodeType()

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

Returns:NodeType

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

the nodeId

isExclusiveback to summary
public boolean isExclusive()

Gets the exclusive. if the range is a 2 dot range it is false if it is a three dot it is true

Returns:boolean

Returns a boolean