Top Description Fields Constructors Methods
org.jruby.ast

public Class DotNode

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

Represents a range literal.

Field Summary

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

Constructor Summary

AccessConstructor and Description
public
DotNode(int line, Node beginNode, Node endNode, boolean exclusive, boolean isLiteral)

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 Node

Returns:

Returns a Node
getEndNode
()

Gets the endNode.

public NodeType
public boolean

Returns:

Returns a boolean
isExclusive
()

Gets the exclusive.

public boolean

Returns:

true is literal
isLiteral
()

Is this a literal node.

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
isLiteralback to summary
private final boolean isLiteral

Constructor Detail

DotNodeback to summary
public DotNode(int line, Node beginNode, Node endNode, boolean exclusive, boolean isLiteral)

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.

Returns:Node

Returns a Node

getEndNodeback to summary
public Node getEndNode()

Gets the endNode.

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

isExclusiveback to summary
public boolean isExclusive()

Gets the exclusive.

Returns:boolean

Returns a boolean

isLiteralback to summary
public boolean isLiteral()

Is this a literal node. MRI has a literal node type and we currently don't. We provide this attribute so we can detect that this should be a literal to match MRI semantics of literal DOT nodes.

Returns:boolean

true is literal