private void addStaticEventDispatcherImplementation(Context context, ClassDefinitionNode classDefinition)
{
NodeFactory nodeFactory = context.getNodeFactory();
VariableDefinitionNode variableDefinition = generateStaticBindingEventDispatcherVariable(nodeFactory);
classDefinition.statements =
nodeFactory.statementList(classDefinition.statements, variableDefinition);
FunctionDefinitionNode addEventListenerFunctionDefinition =
generateStaticEventDispatcherGetter(context);
classDefinition.statements =
nodeFactory.statementList(classDefinition.statements, addEventListenerFunctionDefinition);