Top Fields Constructors Methods
org.jruby.ast

public Class RationalNode

extends NumericNode
implements LiteralValue, SideEffectFree
Class Inheritance
All Implemented Interfaces
org.jruby.ast.SideEffectFree, org.jruby.ast.LiteralValue
Imports
java.util.List, org.jruby.Ruby, .RubyRational, org.jruby.ast.visitor.NodeVisitor, org.jruby.runtime.builtin.IRubyObject

Field Summary

Modifier and TypeField and Description
private final NumericNode
private final NumericNode

Constructor Summary

AccessConstructor and Description
public
RationalNode(int line, NumericNode numerator, NumericNode denominator)

Method Summary

Modifier and TypeMethod and Description
public <T> T
accept(NodeVisitor<T> visitor)

Implements abstract org.jruby.ast.Node.accept.

public List<Node>
public NumericNode
public NodeType
public NumericNode
public IRubyObject
public NumericNode

Field Detail

denominatorback to summary
private final NumericNode denominator
numeratorback to summary
private final NumericNode numerator

Constructor Detail

RationalNodeback to summary
public RationalNode(int line, NumericNode numerator, NumericNode denominator)

Method Detail

acceptback to summary
public <T> T accept(NodeVisitor<T> visitor)

Implements abstract org.jruby.ast.Node.accept.

Annotations
@Override
childNodesback to summary
public List<Node> childNodes()

Implements abstract org.jruby.ast.Node.childNodes.

Annotations
@Override
getDenominatorback to summary
public NumericNode getDenominator()
getNodeTypeback to summary
public NodeType getNodeType()

Implements abstract org.jruby.ast.Node.getNodeType.

Returns:NodeType

Doc from org.jruby.ast.Node.getNodeType.

the nodeId

Annotations
@Override
getNumeratorback to summary
public NumericNode getNumerator()
literalValueback to summary
public IRubyObject literalValue(Ruby runtime)

Implements org.jruby.ast.LiteralValue.literalValue.

Annotations
@Override
negateback to summary
public NumericNode negate()

Overrides org.jruby.ast.NumericNode.negate.

Annotations
@Override