AdviceAnalyzer Class |
Default implementation of IAdviceAnalyzer.
Namespace: PostSharp.Sdk.AspectWeaver
Assembly: PostSharp.Compiler.Engine (in PostSharp.Compiler.Engine.dll) Version: 2023.0.3.0 (2023.0.3.0)
C#
public abstract class AdviceAnalyzer : IAdviceAnalyzer
The AdviceAnalyzer type exposes the following members.
Name | Description | |
---|---|---|
AdviceAnalyzer |
Initializes a new AdviceAnalyzer.
|
Name | Description | |
---|---|---|
MethodExecutionLookups |
A dictionary mapping a method to an optimization flag. When a call to this method is detected in the advice, the corresponding
optimization flag is set (i.e. the optimization is disabled).
|
Name | Description | |
---|---|---|
Analyze |
Analyzes an advice method and store the result in a custom attribute if the member is public.
| |
Equals | Determines whether the specified object is equal to the current object. (Inherited from Object.) | |
Finalize | Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection. (Inherited from Object.) | |
GetCachedOptimizations | ||
GetHashCode | Serves as the default hash function. (Inherited from Object.) | |
GetType | Gets the Type of the current instance. (Inherited from Object.) | |
Initialize(ModuleDeclaration) |
Initializes the current AdviceAnalyzer. Implementations of this method must call
Initialize(ModuleDeclaration, IMethod, SerializationType).
They typically populate the dictionary MethodExecutionLookups.
| |
Initialize(ModuleDeclaration, IMethod, SerializationType) |
Initializes the current AdviceAnalyzer. This method must be invoked by implementations of Initialize(ModuleDeclaration).
| |
MemberwiseClone | Creates a shallow copy of the current Object. (Inherited from Object.) | |
ToString | Returns a string that represents the current object. (Inherited from Object.) |