Class DefaultNumberOptionNode

java.lang.Object
com.oracle.truffle.api.nodes.Node
com.oracle.truffle.js.nodes.JavaScriptBaseNode
com.oracle.truffle.js.nodes.intl.DefaultNumberOptionNode
All Implemented Interfaces:
com.oracle.truffle.api.nodes.NodeInterface, Cloneable

public abstract class DefaultNumberOptionNode extends JavaScriptBaseNode
  • Nested Class Summary

    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
    Modifier
    Constructor
    Description
    protected
     
  • Method Summary

    Modifier and Type
    Method
    Description
     
    abstract int
    executeInt(Object value, int minimum, int maximum, int fallback)
     
    int
    getOption(Object value, int minimum, int maximum, int fallback, JSToNumberNode toNumberNode, com.oracle.truffle.api.profiles.InlinedBranchProfile errorBranch)
     
    int
    getOptionFromUndefined(Object value, int minimum, int maximum, int fallback)
     

    Methods inherited from class com.oracle.truffle.js.nodes.JavaScriptBaseNode

    copy, getJSContext, getLanguage, getLanguageOptions, getRealm, hasOverloadedOperators, onReplace

    Methods 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

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
  • Constructor Details

    • DefaultNumberOptionNode

      protected DefaultNumberOptionNode()
  • Method Details

    • executeInt

      public abstract int executeInt(Object value, int minimum, int maximum, int fallback)
    • create

      public static DefaultNumberOptionNode create()
    • getOption

      public int getOption(Object value, int minimum, int maximum, int fallback, JSToNumberNode toNumberNode, com.oracle.truffle.api.profiles.InlinedBranchProfile errorBranch)
    • getOptionFromUndefined

      public int getOptionFromUndefined(Object value, int minimum, int maximum, int fallback)