Stimulus
The Stimulus filter makes it easier to build Stimulus controllers.
When a class definition is encountered that derives from
Stimulus::Controller, the following transformations are applied:
-
an
importstatement for Stimulus will be generated if the esm filter is also applied. -
initializemethods are not mapped to constructors. -
Unqualified references to
applicationandelementare prefixed withthis.. As will each of the identifiers mentioned in the next three bullets. -
If any of the following are found, “x” will be addded to the list of static targets if not already present:
xTarget,xTargets,hasXTarget. -
If any of the following are found, “x” will be addded to the list of static values with a type of
Stringif not already present:xValue,xValue=,hasXValue. -
If any of the following are found, “x” will be addded to the list of static classes if not already present:
xClass,hasXClass.
For more information, see the examples provided.