PostSharp SDK 6.7 / / Class Reference / Post­Sharp.​Sdk.​Aspect­Weaver.​Aspect­Weavers Namespace / Type­Level­Aspect­Weaver Class

TypeLevelAspectWeaver Class

Base class for weavers of type-level aspects (ITypeLevelAspect).
Inheritance Hierarchy
System.Object
  PostSharp.Sdk.AspectWeaver.AspectWeaver
    PostSharp.Sdk.AspectWeaver.AspectWeavers.TypeLevelAspectWeaver

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

The TypeLevelAspectWeaver type exposes the following members.

Constructors
  NameDescription
Protected methodTypeLevelAspectWeaver
Initializes a new MethodLevelAspectWeaver.
Properties
  NameDescription
Public propertyAdviceWeavers
Gets the collection of weavers of advices included in the current aspect type.
(Inherited from AspectWeaver.)
Public propertyAspectConfigurationAttributeSystemType
Gets the Type of the aspect configuration custom attribute.
(Inherited from AspectWeaver.)
Public propertyAspectDescription (Inherited from AspectWeaver.)
Public propertyAspectInfrastructureTask
Gets the parent AspectInfrastructureTask.
(Inherited from AspectWeaver.)
Public propertyAspectRuntimeType (Inherited from AspectWeaver.)
Public propertyAspectType
Gets the aspect type processed by the current AspectWeaver.
(Inherited from AspectWeaver.)
Public propertyAspectWeaverTask
Gets the parent AspectWeaverTask.
(Inherited from AspectWeaver.)
Public propertyCanTargetAspects (Inherited from AspectWeaver.)
Public propertyDeclarativeConfiguration
Gets the aspect configuration that was provided declaratively, using a custom attribute of type AspectConfigurationAttribute.
(Inherited from AspectWeaver.)
Public propertyDependencies
Gets the collection of dependencies (AspectDependency) of the current aspect type (where dependency objects of the current aspect weaver occupy the left position of the relationship), for dependency objects that apply on the element of code to which this aspect is applied.
(Inherited from AspectWeaver.)
Public propertyIsInstanceScoped
Determines whether the current aspect type is instance-scoped.
(Inherited from AspectWeaver.)
Public propertyLinesOfCodeAvoidedExplicit
Count of lines of code avoided set explicitly using LinesOfCodeAvoidedAttribute.
(Inherited from AspectWeaver.)
Public propertyLinesOfCodeAvoidedImplicitBase
Count of lines of code avoided by each usage of the aspect.
(Inherited from AspectWeaver.)
Public propertyModule
Gets the ModuleDeclaration being processed.
(Inherited from AspectWeaver.)
Public propertyReflectionObjectBuilder
Gets the ReflectionObjectBuilder able to emit instructions that load the reflection object corresponding to the element of code to which the aspects of this AspectWeaver are applied.
(Inherited from AspectWeaver.)
Public propertyRequiresRuntimeInstance
Determines whether the current aspect requires a runtime instance.
(Inherited from AspectWeaver.)
Public propertyRequiresRuntimeInstanceInitialization
Determines whether the current aspect requires initialization of the runtime instance.
(Inherited from AspectWeaver.)
Public propertyRequiresRuntimeReflectionObject
Determines whether the current AspectWeaver shall need a reference to the reflection object representing the element of code to which aspects are applied.
(Inherited from AspectWeaver.)
Public propertyTypeLevelDependencies
Gets the collection of dependencies (AspectDependency) of the current aspect type (where dependency objects of the current aspect weaver occupy the left position of the relationship), for dependency objects that apply on type declaring the element of code to which this aspect is applied. If the aspect is not applied to a type member (or a parameter of a type member), this property is equal to Dependencies.
(Inherited from AspectWeaver.)
Public propertyValidTargets
Gets the kinds of elements of code to which aspects of the current AspectWeaver can be applied.
(Inherited from AspectWeaver.)
Public propertyWaivedEffects
Gets the set of effects that are waived (opted out) for the current AspectWeaver.
(Inherited from AspectWeaver.)
Methods
  NameDescription
Public methodAddLicenseRequirement Obsolete.
Adds a license requirement for the current AspectWeaver.
(Inherited from AspectWeaver.)
Protected methodApplyWaivedEffects
Remove the effects waived from the current aspect type (as added to the WaivedEffects collection) from transformation.
(Inherited from AspectWeaver.)
Protected methodCreateAspectWeaverInstance
Creates a new AspectWeaverInstance for a given aspect instance.
(Inherited from AspectWeaver.)
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 methodGetAspectDisplayName
Gets a human-readable name of the current aspect type.
(Inherited from AspectWeaver.)
Public methodGetHashCode
Serves as the default hash function.
(Inherited from Object.)
Public methodGetImplicitLinesOfCodeAvoidedByAdvice (Inherited from AspectWeaver.)
Public methodGetType
Gets the Type of the current instance.
(Inherited from Object.)
Protected methodHasLinesOfCodeAvoided (Inherited from AspectWeaver.)
Protected methodInitialize
Initialize the current weaver and its aspect.
(Inherited from AspectWeaver.)
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 AspectWeaver.)
Public methodValidateAspectInstance
Validates an aspect instance, i.e. a concrete usage of an aspect of the type supported by the current AspectWeaver.
(Overrides AspectWeaver.ValidateAspectInstance(AspectInstanceInfo).)
See Also