my @names = sax_event_names @query_terms;
Takes a list of query terms and returns all matching events.
Query terms may be:
In addition to normal SAX events, there are also parse events:
Unrecognized query terms cause exceptions.
If no query terms are provided, then all event names from all versions are returned except for parse methods (parse, parse_uri, ...).
If any version numbers are supplied, then only events from those version numbers are returned. No support for noninteger version numbers is provided, nor for ranges. So far, only two SAX versions exist in Perl, 1 and 2.
If any handler types are provided, then only events of those types are returned. Handler types are case insensitive.
In other words, all returned events must match both a version number and a handler type.
No support for boolean logic is provided.
my @missing = missing_methods __PACKAGE__, @event_names; my @missing = missing_methods $object, @event_names;
This subroutine looks to see if the object or class has declared event handler methods for the named events. Any events that havent been declared are returned.
It is sufficient to use subroutine prototypes to prevent shimming AUTOLOADed (or otherwise lazily compiled) methods:
compile_methods __PACKAGE__, $template, @method_names; compile_methods $object, $template, @method_names;
Compiles the given template for each given event name, substituting the event name for the string <EVENT> or <METHOD> in the template. There is no difference between these two tags, they are provided to only to let you make your templates more readable to you.
compile_missing_methods __PACKAGE__, $template, @method_names; compile_missing_methods $objects, $template, @method_names;
Shorthand for calls like
The database of handlers by type was developed by Kip Hampton, modified by Robin Berjon, and pilfered and corrupted by me.
Database Copyright 2002, Barrie Slaymaker, Kip Hampton, Robin Berjon Code Copyright 2002, Barrie Slaymaker <firstname.lastname@example.org>
You may use this under the terms of the Artistic, GNU Public, or BSD licences, as you see fit.
o Barry Slaymaker o Chris Prather <email@example.com>
This software is copyright (c) 2013 by Barry Slaymaker.
This is free software; you can redistribute it and/or modify it under the same terms as the Perl 5 programming language system itself.
|perl v5.20.3||XML::SAX::EVENTMETHODMAKER (3)||2013-08-19|