Interface CodeContribution
- All Known Implementing Classes:
DefaultCodeContribution
public interface CodeContribution
A code contribution that gathers the code, the runtime hints, and the protected elements
that are necessary to execute it.
- Since:
- 6.0
- Author:
- Stephane Nicoll
-
Method Summary
Modifier and TypeMethodDescriptionReturn the protected access to use to analyze any privileged access, if necessary.Return the hints to use to register potential optimizations for contributed code.Return the statements that can be used to append code.
-
Method Details
-
statements
MultiStatement statements()Return the statements that can be used to append code.- Returns:
- the statements instance to use to contribute code
-
runtimeHints
RuntimeHints runtimeHints()Return the hints to use to register potential optimizations for contributed code.- Returns:
- the runtime hints
-
protectedAccess
ProtectedAccess protectedAccess()Return the protected access to use to analyze any privileged access, if necessary.- Returns:
- the protected access
-