Class TypeNode.NumberTypeNode

java.lang.Object
com.oracle.truffle.api.nodes.Node
All Implemented Interfaces:
com.oracle.truffle.api.nodes.NodeInterface, Cloneable
Enclosing class:
TypeNode

public static final class TypeNode.NumberTypeNode extends TypeNode.FrameSlotTypeNode
  • Constructor Details

    • NumberTypeNode

      public NumberTypeNode(com.oracle.truffle.api.source.SourceSection sourceSection)
  • Method Details

    • getFrameSlotKind

      public com.oracle.truffle.api.frame.FrameSlotKind getFrameSlotKind()
      Specified by:
      getFrameSlotKind in class TypeNode
    • execute

      public void execute(com.oracle.truffle.api.frame.VirtualFrame frame, Object value)
      Description copied from class: TypeNode
      Checks if `value` conforms to this type. If so, returns normally. Otherwise, throws a `VmTypeMismatchException`.
      Specified by:
      execute in class TypeNode
    • executeAndSet

      public void executeAndSet(com.oracle.truffle.api.frame.VirtualFrame frame, Object value)
      Description copied from class: TypeNode
      Checks if `value` conforms to this type. If so, sets `slot` to `value`. Otherwise, throws a `VmTypeMismatchException`.
      Specified by:
      executeAndSet in class TypeNode
    • getVmClass

      public VmClass getVmClass()
      Overrides:
      getVmClass in class TypeNode