Package org.jruby.ast
Class DotNode
java.lang.Object
org.jruby.ast.Node
org.jruby.ast.DotNode
Represents a range literal.
-
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 beginNode.Gets the endNode.boolean
Gets the exclusive.boolean
Is this a literal node.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
-
DotNode
-
-
Method Details
-
getNodeType
- Specified by:
getNodeType
in classNode
- Returns:
- the nodeId
-
accept
Accept for the visitor pattern. -
getBeginNode
Gets the beginNode.- Returns:
- Returns a Node
-
getEndNode
Gets the endNode.- Returns:
- Returns a Node
-
isExclusive
public boolean isExclusive()Gets the exclusive.- Returns:
- Returns a boolean
-
isLiteral
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:
- true is literal
-
childNodes
- Specified by:
childNodes
in classNode
-