Class RoundRelativeDurationNode
java.lang.Object
com.oracle.truffle.api.nodes.Node
com.oracle.truffle.js.nodes.JavaScriptBaseNode
com.oracle.truffle.js.nodes.temporal.RoundRelativeDurationNode
- All Implemented Interfaces:
com.oracle.truffle.api.nodes.NodeInterface,Cloneable
Implements Temporal RoundRelativeDuration and related operations.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final recordA Duration Nudge Result Record is a value used to represent the result of rounding a duration up or down to an increment relative to a date-time.Nested classes/interfaces inherited from class com.oracle.truffle.api.nodes.Node
com.oracle.truffle.api.nodes.Node.Child, com.oracle.truffle.api.nodes.Node.Children -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionabstract TemporalDurationWithTotalRecordexecute(NormalizedDurationRecord duration, BigInt destEpochNs, ISODateTimeRecord dateTime, CalendarMethodsRecord calendarRec, TimeZoneMethodsRecord timeZoneRec, TemporalUtil.Unit largestUnit, int increment, TemporalUtil.Unit smallestUnit, TemporalUtil.RoundingMode roundingMode) protected final TemporalDurationWithTotalRecordroundRelativeDuration(NormalizedDurationRecord duration0, BigInt destEpochNs, ISODateTimeRecord dateTime, CalendarMethodsRecord calendarRec, TimeZoneMethodsRecord timeZoneRec, TemporalUtil.Unit largestUnit0, int increment, TemporalUtil.Unit smallestUnit, TemporalUtil.RoundingMode roundingMode, TemporalAddDateTimeNode addDateTimeNode, TemporalDifferenceDateNode differenceDateNode, com.oracle.truffle.api.profiles.InlinedBranchProfile errorBranch) Methods inherited from class com.oracle.truffle.js.nodes.JavaScriptBaseNode
copy, getJSContext, getLanguage, getLanguageOptions, getRealm, hasOverloadedOperators, onReplaceMethods inherited from class com.oracle.truffle.api.nodes.Node
accept, adoptChildren, atomic, atomic, deepCopy, getChildren, getCost, getDebugProperties, getDescription, getEncapsulatingSourceSection, getLock, getParent, getRootNode, getSourceSection, insert, insert, isAdoptable, isSafelyReplaceableBy, notifyInserted, replace, replace, reportPolymorphicSpecialize, toString
-
Constructor Details
-
RoundRelativeDurationNode
protected RoundRelativeDurationNode()
-
-
Method Details
-
execute
public abstract TemporalDurationWithTotalRecord execute(NormalizedDurationRecord duration, BigInt destEpochNs, ISODateTimeRecord dateTime, CalendarMethodsRecord calendarRec, TimeZoneMethodsRecord timeZoneRec, TemporalUtil.Unit largestUnit, int increment, TemporalUtil.Unit smallestUnit, TemporalUtil.RoundingMode roundingMode) -
roundRelativeDuration
protected final TemporalDurationWithTotalRecord roundRelativeDuration(NormalizedDurationRecord duration0, BigInt destEpochNs, ISODateTimeRecord dateTime, CalendarMethodsRecord calendarRec, TimeZoneMethodsRecord timeZoneRec, TemporalUtil.Unit largestUnit0, int increment, TemporalUtil.Unit smallestUnit, TemporalUtil.RoundingMode roundingMode, TemporalAddDateTimeNode addDateTimeNode, TemporalDifferenceDateNode differenceDateNode, com.oracle.truffle.api.profiles.InlinedBranchProfile errorBranch)
-