Interface ObjectLoader


@Deprecated(forRemoval=true) public interface ObjectLoader
Deprecated, for removal: This API element is subject to removal in a future version.
This interface is for internal use only, and is tightly coupled to Gizmo 1 which is being replaced by Gizmo 2.
A segment of code generation which produces the necessary instructions to load the given object. The result handle is cached for reuse.
  • Method Summary

    Modifier and Type
    Method
    Description
    boolean
    canHandleObject(Object obj, boolean staticInit)
    Deprecated, for removal: This API element is subject to removal in a future version.
    Returns true if this object loader can handle the given object
    io.quarkus.gizmo.ResultHandle
    load(io.quarkus.gizmo.BytecodeCreator body, Object obj, boolean staticInit)
    Deprecated, for removal: This API element is subject to removal in a future version.
    Load the given object if possible.
  • Method Details

    • load

      io.quarkus.gizmo.ResultHandle load(io.quarkus.gizmo.BytecodeCreator body, Object obj, boolean staticInit)
      Deprecated, for removal: This API element is subject to removal in a future version.
      Load the given object if possible.
      Parameters:
      body - the body to use for bytecode generation (not null)
      obj - the object to substitute (not null)
      staticInit - true if this loader is for a static init method, false otherwise
      Returns:
      the result handle of the value, or null if this loader cannot load the given object
    • canHandleObject

      boolean canHandleObject(Object obj, boolean staticInit)
      Deprecated, for removal: This API element is subject to removal in a future version.
      Returns true if this object loader can handle the given object
      Parameters:
      obj - The object
      staticInit - If this is static init phase
      Returns:
      true if this loader can handle the object