PostSharp SDK 2023.0 / / Class Reference / Post­Sharp.​Sdk.​Aspect­Weaver Namespace / Advice­Analyzer Class

AdviceAnalyzer Class

Default implementation of IAdviceAnalyzer.
Inheritance Hierarchy

Namespace:  PostSharp.Sdk.AspectWeaver
Assembly:  PostSharp.Compiler.Engine (in PostSharp.Compiler.Engine.dll) Version: 2023.0.3.0 (2023.0.3.0)
public abstract class AdviceAnalyzer : IAdviceAnalyzer

The AdviceAnalyzer type exposes the following members.

Protected methodAdviceAnalyzer
Initializes a new AdviceAnalyzer.
Protected propertyMethodExecutionLookups
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).
Public methodAnalyze
Analyzes an advice method and store the result in a custom attribute if the member is public.
Public methodEquals
Determines whether the specified object is equal to the current object.
(Inherited from Object.)
Protected methodFinalize
Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection.
(Inherited from Object.)
Public methodStatic memberGetCachedOptimizations
Public methodGetHashCode
Serves as the default hash function.
(Inherited from Object.)
Public methodGetType
Gets the Type of the current instance.
(Inherited from Object.)
Public methodInitialize(ModuleDeclaration)
Initializes the current AdviceAnalyzer. Implementations of this method must call Initialize(ModuleDeclaration, IMethod, SerializationType). They typically populate the dictionary MethodExecutionLookups.
Protected methodInitialize(ModuleDeclaration, IMethod, SerializationType)
Initializes the current AdviceAnalyzer. This method must be invoked by implementations of Initialize(ModuleDeclaration).
Protected methodMemberwiseClone
Creates a shallow copy of the current Object.
(Inherited from Object.)
Public methodToString
Returns a string that represents the current object.
(Inherited from Object.)
See Also