Show TOC

Condition MethodsLocate this document in the navigation structure

Under certain conditions, condition methods enable you to trigger transformation calls. The requirements for classes and methods include:

  • Condition classes must implement the interface IF_SMT_CONDITION. Note that condition methods are not part of the interface. The purpose of the interface is to mark classes as relevant for the tool, and to provide the methods START_OF_PREFETCH and END_OF_PREFETCH. The system requires these methods for the Prefetch.

  • Condition methods must be static and public.

  • With the exception of E_OK,, condition methods contain import parameters only.

  • Condition methods must have an import parameter I_PREFETCH of type SMT_BOOLEAN. The system uses this parameter for displaying the Prefetch mode.

  • Condition methods must have an export parameter E_OK of type SMT_BOOLEAN. This parameter displays whether the condition was met. Value X indicates a positive result, an initial value indicates a negative result.

If an error occurs that requires the program to terminate, the condition methods trigger the exception CX_SMT_FATAL_METHOD_ERROR.