Interface IBakedTypeInfo


public interface IBakedTypeInfo
Provides information related to a native type registered to ZenCode.

Instances of this class can be obtained through a INativeTypeRegistry, allowing for introspection of which native methods of a specific native class are exposed to scripts.

Since:
9.1.0
  • Method Details

    • zenName

      String zenName()
      Gets the name of the class as it is known by the ZenCode script environment.
      Returns:
      The name of the class as it is known by the ZenCode script environment.
      Since:
      9.1.0
    • nativeClass

      Class<?> nativeClass()
      Gets a reference to the native class this type information is for.
      Returns:
      A reference to the native class this type information is for.
      Since:
      9.1.0
    • findMethod

      Gets information relative to the specified constructor as exposed to ZenCode, if possible.

      If the specified constructor is not exposed to ZenCode, then the returned Optional will be empty.

      Parameters:
      method - The constructor that should be identified.
      Returns:
      An Optional wrapping the executable information for the specified constructor, if available; empty otherwise.
      Since:
      9.1.0
    • findMethod

      Gets information relative to the specified method as exposed to ZenCode, if possible.

      If the specified method is not exposed to ZenCode, then the returned Optional will be empty.

      Parameters:
      method - The method that should be identified.
      Returns:
      An Optional wrapping the executable information for the specified method, if available; empty otherwise.
      Since:
      9.1.0