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 Summary
Modifier and TypeMethodDescriptionfindMethod(Constructor<?> method) Gets information relative to the specified constructor as exposed to ZenCode, if possible.findMethod(Method method) Gets information relative to the specified method as exposed to ZenCode, if possible.Class<?>Gets a reference to the native class this type information is for.zenName()Gets the name of the class as it is known by the ZenCode script environment.
-
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
Optionalwill be empty.- Parameters:
method- The constructor that should be identified.- Returns:
- An
Optionalwrapping 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
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
-