IMethodCallDecorator Interface

From The Oxygene Language Wiki

Jump to:navigation, search

This is a Language topic
Feel free to add your notes to this topic below.


This interface has to be implemented for method call aspects. The ProcessMethodCall method gets called for each method this aspect was applied to. Method Aspect classes have to have the MethodAspectAttribute applied to them on the class and need a public constructor with no parameters for the compiler to be able to instantiate them.

IMethodCallDecorator = public interface(IBaseAspect)


Namespace: Cirrus Namespace


Members

Method
Description
ProcessMethodCall(aContext: IContext; aMethod IMethod; aValueParameterizedValue): Value;

Called for each call to the method this aspect applies to. The aContext parameter contains the current method and type the method was called from, as well as access to the services instance. The aMethod parameter is the method that was actually called, useful when an aspect applies to multiple methods. The aValue parameter contains the actual call. This could be a ProcValue instance for regular calls or a NewValue for constructor calls.


See Also

Oxygene-48.png

Area: Oxygene Language
Compiler version: Oxygene 5

Language GlossaryKeywordsTypesFAQHow To

Navigation
Areas
More
Toolbox