Package org.jruby.ast
Class RationalNode
java.lang.Object
org.jruby.ast.Node
org.jruby.ast.NumericNode
org.jruby.ast.RationalNode
- All Implemented Interfaces:
LiteralValue
,SideEffectFree
,ILiteralNode
-
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> visitor) literalValue
(Ruby runtime) negate()
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
-
RationalNode
-
-
Method Details
-
accept
-
negate
- Overrides:
negate
in classNumericNode
-
childNodes
- Specified by:
childNodes
in classNode
-
getNodeType
- Specified by:
getNodeType
in classNode
- Returns:
- the nodeId
-
getNumerator
-
getDenominator
-
literalValue
- Specified by:
literalValue
in interfaceLiteralValue
-