Aspect::JoinPoint::Sub - Superclass for subroutine-based join points
There is no synopsis, as this class is only used within Aspects; if you develop Aspect internals, you'll know how to use it. If not, you don't need to. If you're curious, read the source.
This class is a superclass for subroutine-based join points, that is, call join points and return join points.
This class inherits from Aspect::JoinPoint. In addition, it implements and/or overrides the following methods:
Aspect::JoinPoint
init([STRING])
This method initializes newly constructed objects. The optional argument is handed to sub().
sub()
sub([STRING])
Gets or sets (if called with an argument) the name of the subroutine this join points belongs to.
signature(LIST)
Returns a string describing a call to the subroutine given the argument list. This list is expected to come from a Hook::LexWrap wrapper argument list, so the last list element is discarded as it indicates the potential return value. See Hook::LexWrap for details.
Hook::LexWrap
This method is useful for tracing subroutine calls.
Example: If the join point's subroutine name is foo and the argument list is (1, 'hello') then the signature would be foo(1, hello).
foo
(1, 'hello')
foo(1, hello)
None known so far. If you find any bugs or oddities, please do inform the author.
Marcel Grunauer, <marcel@codewerk.com>
Copyright 2001 Marcel Grunauer. All rights reserved.
This library is free software; you can redistribute it and/or modify it under the same terms as Perl itself.
perl(1), Aspect::Intro(3pm), Aspect::Overview(3pm).
To install Aspect, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Aspect
CPAN shell
perl -MCPAN -e shell install Aspect
For more information on module installation, please visit the detailed CPAN module installation guide.