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 Summary
Modifier and TypeMethodDescriptionGets aCollectionof all the registeredIBakedTypeInfoinstances.getBakedTypeInfoFor(Class<?> clazz) Obtains the type information for the specified class, if registered to ZenCode.getExecutableReferenceInfoFor(Constructor<?> constructor) Gets information relative to the specified constructor as exposed to ZenCode, if possible.getExecutableReferenceInfoFor(Method method) Gets information relative to the specified method as exposed to ZenCode, if possible.getZenNameFor(Class<?> clazz) Tries to find the name a native class is exposed as to ZenCode.
-
Method Details
-
getZenNameFor
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
Optionalwrapping the name if the class is registered, empty otherwise. - Since:
- 9.1.0
-
getBakedTypeInfo
Collection<IBakedTypeInfo> getBakedTypeInfo()Gets aCollectionof all the registeredIBakedTypeInfoinstances.The returned collection may not be modified by the caller.
- Returns:
- A collection with all known type information.
- Since:
- 9.1.0
-
getBakedTypeInfoFor
Obtains the type information for the specified class, if registered to ZenCode.- Parameters:
clazz- The class whose information should be obtained.- Returns:
- An
Optionaleither wrapping the information if available, or empty if the class is not known. - Since:
- 9.1.0
-
getExecutableReferenceInfoFor
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
Optionalwill be empty.- Parameters:
constructor- The constructor that should be identified.- Returns:
- An
Optionalwrapping the executable information for the specified constructor, if available; empty otherwise. - Since:
- 9.1.0
-
getExecutableReferenceInfoFor
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
Optionalwill be empty.- Parameters:
method- The method that should be identified.- Returns:
- An
Optionalwrapping the executable information for the specified method, if available; empty otherwise. - Since:
- 9.1.0
-