2 # This is a stub class for more complex JS*ArrayParser objects.
3 # It's new() method usually does _not_ return an object of
4 # type videosite::JSArrayParser, but rather a child object of itself
5 # which is able to do some actual work. The only time new() retuns
6 # an videosite::JSArrayParser onject is when no child objects are
10 package videosite::JSArrayParser;
19 if ($class ne __PACKAGE__) {
20 # We were called from a child object. Return ourselves.
21 return bless($self, $class);
24 # Try to find a child object which is available and return that.
26 require videosite::JSJSONArrayParser;
27 return videosite::JSJSONArrayParser->new(%params);
33 # No functionality here