Interface INativeTypeRegistry

All Known Implementing Classes:
NativeTypeRegistry

public interface INativeTypeRegistry
Represents a registry holding information for native types known to the ZenCode environment.
Since:
9.1.0
  • Method Details

    • getZenNameFor

      Optional<String> getZenNameFor(Class<?> clazz)
      Tries to find the name a native class is exposed as to ZenCode.
      Parameters:
      clazz - The class whose name should be looked up.
      Returns:
      An Optional wrapping the name if the class is registered, empty otherwise.
      Since:
      9.1.0
    • getBakedTypeInfo

      Collection<IBakedTypeInfo> getBakedTypeInfo()
      Gets a Collection of all the registered IBakedTypeInfo instances.

      The returned collection may not be modified by the caller.

      Returns:
      A collection with all known type information.
      Since:
      9.1.0
    • getBakedTypeInfoFor

      Optional<IBakedTypeInfo> getBakedTypeInfoFor(Class<?> clazz)
      Obtains the type information for the specified class, if registered to ZenCode.
      Parameters:
      clazz - The class whose information should be obtained.
      Returns:
      An Optional either wrapping the information if available, or empty if the class is not known.
      Since:
      9.1.0
    • getExecutableReferenceInfoFor

      Optional<IExecutableReferenceInfo> getExecutableReferenceInfoFor(Constructor<?> constructor)
      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:
      constructor - 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
    • getExecutableReferenceInfoFor

      Optional<IExecutableReferenceInfo> getExecutableReferenceInfoFor(Method method)
      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