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> Taccept(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:
negatein classNumericNode
-
childNodes
- Specified by:
childNodesin classNode
-
getNodeType
- Specified by:
getNodeTypein classNode- Returns:
- the nodeId
-
getNumerator
-
getDenominator
-
literalValue
- Specified by:
literalValuein interfaceLiteralValue
-