Class SLLongLiteralNode

All Implemented Interfaces:
com.oracle.truffle.api.instrumentation.InstrumentableNode, com.oracle.truffle.api.nodes.NodeInterface, Cloneable

public final class SLLongLiteralNode extends SLExpressionNode
Constant literal for a primitive long value. The unboxed value can be returned when the parent expects a long value and calls executeLong(com.oracle.truffle.api.frame.VirtualFrame). In the generic case, the primitive value is automatically boxed by Java.
  • Constructor Details

    • SLLongLiteralNode

      public SLLongLiteralNode(long value)
  • Method Details

    • executeLong

      public long executeLong(com.oracle.truffle.api.frame.VirtualFrame frame) throws com.oracle.truffle.api.nodes.UnexpectedResultException
      Overrides:
      executeLong in class SLExpressionNode
      Throws:
      com.oracle.truffle.api.nodes.UnexpectedResultException
    • executeGeneric

      public Object executeGeneric(com.oracle.truffle.api.frame.VirtualFrame frame)
      Description copied from class: SLExpressionNode
      The execute method when no specialization is possible. This is the most general case, therefore it must be provided by all subclasses.
      Specified by:
      executeGeneric in class SLExpressionNode