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

AdviceAnalyzer Class

Default implementation of IAdviceAnalyzer.
Inheritance Hierarchy
System.Object
  PostSharp.Sdk.AspectWeaver.AdviceAnalyzer

Namespace:  PostSharp.Sdk.AspectWeaver
Assembly:  PostSharp.Compiler.Engine (in PostSharp.Compiler.Engine.dll) Version: 6.7.10.0 (6.7.10.0)
Syntax
C#
public abstract class AdviceAnalyzer : IAdviceAnalyzer

The AdviceAnalyzer type exposes the following members.

Constructors
  NameDescription
Protected methodAdviceAnalyzer
Initializes a new AdviceAnalyzer.
Properties
  NameDescription
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).
Methods
  NameDescription
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