Package org.jruby.ast
Class RationalNode
java.lang.Object
org.jruby.ast.Node
org.jruby.ast.NumericNode
org.jruby.ast.RationalNode
- All Implemented Interfaces:
SideEffectFree,ILiteralNode
-
Field Summary
FieldsFields inherited from class org.jruby.ast.Node
containsVariableAssignment, EMPTY_LIST, newline -
Constructor Summary
Constructors -
Method Summary
Methods inherited from class org.jruby.ast.Node
containsVariableAssignment, createList, createList, createList, createList, executesOnce, findFirstChild, getFile, getLine, getNodeName, isNewline, isNil, needsDefinitionCheck, setLine, setNewline, toString, toString, toStringExtraInfo, toStringInternal, unsetNewline
-
Field Details
-
numerator
-
denominator
-
-
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
-