C# Класс Microsoft.Cci.MutableCodeModel.Contracts.CodeAndContractCopier

Наследование: CodeCopier
Показать файл Открыть проект

Открытые методы

Метод Описание
CodeAndContractCopier ( IMetadataHost host, ISourceLocationProvider sourceLocationProvider ) : System

Provides copy of a method contract, method body, a statement, or an expression, in which the references to the nodes inside a cone is replaced. The cone is defined using the parent class.

CodeAndContractCopier ( IMetadataHost host, ISourceLocationProvider sourceLocationProvider, IDefinition rootOfCone, List &newTypes ) : System

Provides copy of a method contract, method body, a statement, or an expression, in which the references to the nodes inside a cone is replaced. The cone is defined using the parent class.

DeepCopy ( IMetadataHost host, IMethodContract methodContract ) : MethodContract

Returns a deep mutable copy of the given method contract.

DeepCopy ( IMetadataHost host, ITypeContract typeContract ) : TypeContract

Returns a deep mutable copy of the given type contract.

GetMutableCopy ( ILoopInvariant loopInvariant ) : LoopInvariant

Get the mutable copy of a loop invariant.

GetMutableCopy ( IPostcondition postcondition ) : Postcondition

Get the mutable copy of a postcondition.

GetMutableCopy ( IPrecondition precondition ) : Precondition

Get the mutable copy of a precondition.

GetMutableCopy ( IThrownException thrownException ) : ThrownException

Get the mutable copy of a thrown exception.

GetMutableCopy ( ITypeInvariant typeInvariant ) : TypeInvariant

Get the mutable copy of a type invariant.

Substitute ( IMethodContract methodContract ) : IMethodContract

Returns a deep copy of the .

Substitute ( IPostcondition postcondition ) : IPostcondition

Returns a deep copy of the .

Substitute ( IPrecondition precondition ) : IPrecondition

Returns a deep copy of the .

Substitute ( IThrownException thrownException ) : IThrownException

Returns a deep copy of the .

Substitute ( ITypeContract typeContract ) : ITypeContract

Returns a deep copy of the .

Substitute ( ITypeInvariant typeInvariant ) : ITypeInvariant

Returns a deep copy of the .

Защищенные методы

Метод Описание
DeepCopy ( LoopContract loopContract ) : ILoopContract

Visits the specified loop contract.

DeepCopy ( LoopInvariant loopInvariant ) : ILoopInvariant

Visits the specified loop invariant.

DeepCopy ( MethodContract methodContract ) : IMethodContract

Visits the specified method contract.

DeepCopy ( Postcondition postCondition ) : IPostcondition

Visits the specified post condition.

DeepCopy ( Precondition precondition ) : IPrecondition

Visits the specified precondition.

DeepCopy ( ThrownException thrownException ) : IThrownException

Visits the specified thrown exception.

DeepCopy ( TypeContract typeContract ) : ITypeContract

Visits the specified type contract.

DeepCopy ( TypeInvariant typeInvariant ) : ITypeInvariant

Visits the specified type invariant.

DeepCopy ( List addressableExpressions ) : List

Visits the specified addressable expressions.

DeepCopy ( List loopInvariants ) : List

Visits the specified loop invariants.

DeepCopy ( List postConditions ) : List

Visits the specified post conditions.

DeepCopy ( List preconditions ) : List

Visits the specified preconditions.

DeepCopy ( List thrownExceptions ) : List

Visits the specified thrown exceptions.

DeepCopy ( List typeInvariants ) : List

Visits the specified type invariants.

Описание методов

CodeAndContractCopier() публичный Метод

Provides copy of a method contract, method body, a statement, or an expression, in which the references to the nodes inside a cone is replaced. The cone is defined using the parent class.
public CodeAndContractCopier ( IMetadataHost host, ISourceLocationProvider sourceLocationProvider ) : System
host IMetadataHost
sourceLocationProvider ISourceLocationProvider
Результат System

CodeAndContractCopier() публичный Метод

Provides copy of a method contract, method body, a statement, or an expression, in which the references to the nodes inside a cone is replaced. The cone is defined using the parent class.
public CodeAndContractCopier ( IMetadataHost host, ISourceLocationProvider sourceLocationProvider, IDefinition rootOfCone, List &newTypes ) : System
host IMetadataHost
sourceLocationProvider ISourceLocationProvider
rootOfCone IDefinition
newTypes List
Результат System

DeepCopy() защищенный Метод

Visits the specified loop contract.
protected DeepCopy ( LoopContract loopContract ) : ILoopContract
loopContract Microsoft.Cci.MutableContracts.LoopContract The loop contract.
Результат ILoopContract

DeepCopy() защищенный Метод

Visits the specified loop invariant.
protected DeepCopy ( LoopInvariant loopInvariant ) : ILoopInvariant
loopInvariant Microsoft.Cci.MutableContracts.LoopInvariant The loop invariant.
Результат ILoopInvariant

DeepCopy() защищенный Метод

Visits the specified method contract.
protected DeepCopy ( MethodContract methodContract ) : IMethodContract
methodContract Microsoft.Cci.MutableContracts.MethodContract The method contract.
Результат IMethodContract

DeepCopy() защищенный Метод

Visits the specified post condition.
protected DeepCopy ( Postcondition postCondition ) : IPostcondition
postCondition Microsoft.Cci.MutableContracts.Postcondition The post condition.
Результат IPostcondition

DeepCopy() защищенный Метод

Visits the specified precondition.
protected DeepCopy ( Precondition precondition ) : IPrecondition
precondition Precondition The precondition.
Результат IPrecondition

DeepCopy() защищенный Метод

Visits the specified thrown exception.
protected DeepCopy ( ThrownException thrownException ) : IThrownException
thrownException Microsoft.Cci.MutableContracts.ThrownException The thrown exception.
Результат IThrownException

DeepCopy() защищенный Метод

Visits the specified type contract.
protected DeepCopy ( TypeContract typeContract ) : ITypeContract
typeContract Microsoft.Cci.MutableContracts.TypeContract The type contract.
Результат ITypeContract

DeepCopy() защищенный Метод

Visits the specified type invariant.
protected DeepCopy ( TypeInvariant typeInvariant ) : ITypeInvariant
typeInvariant Microsoft.Cci.MutableContracts.TypeInvariant The type invariant.
Результат ITypeInvariant

DeepCopy() защищенный Метод

Visits the specified addressable expressions.
protected DeepCopy ( List addressableExpressions ) : List
addressableExpressions List The addressable expressions.
Результат List

DeepCopy() защищенный Метод

Visits the specified loop invariants.
protected DeepCopy ( List loopInvariants ) : List
loopInvariants List The loop invariants.
Результат List

DeepCopy() защищенный Метод

Visits the specified post conditions.
protected DeepCopy ( List postConditions ) : List
postConditions List The post conditions.
Результат List

DeepCopy() защищенный Метод

Visits the specified preconditions.
protected DeepCopy ( List preconditions ) : List
preconditions List The preconditions.
Результат List

DeepCopy() защищенный Метод

Visits the specified thrown exceptions.
protected DeepCopy ( List thrownExceptions ) : List
thrownExceptions List The thrown exceptions.
Результат List

DeepCopy() защищенный Метод

Visits the specified type invariants.
protected DeepCopy ( List typeInvariants ) : List
typeInvariants List The type invariants.
Результат List

DeepCopy() публичный статический Метод

Returns a deep mutable copy of the given method contract.
public static DeepCopy ( IMetadataHost host, IMethodContract methodContract ) : MethodContract
host IMetadataHost An object representing the application that is hosting this mutator. It is used to obtain access to some global /// objects and services such as the shared name table and the table for interning references. For the purposes of this call, the /// table for interning is what is needed.
methodContract IMethodContract The method contract to copy.
Результат Microsoft.Cci.MutableContracts.MethodContract

DeepCopy() публичный статический Метод

Returns a deep mutable copy of the given type contract.
public static DeepCopy ( IMetadataHost host, ITypeContract typeContract ) : TypeContract
host IMetadataHost An object representing the application that is hosting this mutator. It is used to obtain access to some global /// objects and services such as the shared name table and the table for interning references. For the purposes of this call, the /// table for interning is what is needed.
typeContract ITypeContract The type contract to copy.
Результат Microsoft.Cci.MutableContracts.TypeContract

GetMutableCopy() публичный Метод

Get the mutable copy of a loop invariant.
public GetMutableCopy ( ILoopInvariant loopInvariant ) : LoopInvariant
loopInvariant ILoopInvariant
Результат Microsoft.Cci.MutableContracts.LoopInvariant

GetMutableCopy() публичный Метод

Get the mutable copy of a postcondition.
public GetMutableCopy ( IPostcondition postcondition ) : Postcondition
postcondition IPostcondition
Результат Microsoft.Cci.MutableContracts.Postcondition

GetMutableCopy() публичный Метод

Get the mutable copy of a precondition.
public GetMutableCopy ( IPrecondition precondition ) : Precondition
precondition IPrecondition
Результат Precondition

GetMutableCopy() публичный Метод

Get the mutable copy of a thrown exception.
public GetMutableCopy ( IThrownException thrownException ) : ThrownException
thrownException IThrownException
Результат Microsoft.Cci.MutableContracts.ThrownException

GetMutableCopy() публичный Метод

Get the mutable copy of a type invariant.
public GetMutableCopy ( ITypeInvariant typeInvariant ) : TypeInvariant
typeInvariant ITypeInvariant
Результат Microsoft.Cci.MutableContracts.TypeInvariant

Substitute() публичный Метод

Returns a deep copy of the .
public Substitute ( IMethodContract methodContract ) : IMethodContract
methodContract IMethodContract
Результат IMethodContract

Substitute() публичный Метод

Returns a deep copy of the .
public Substitute ( IPostcondition postcondition ) : IPostcondition
postcondition IPostcondition
Результат IPostcondition

Substitute() публичный Метод

Returns a deep copy of the .
public Substitute ( IPrecondition precondition ) : IPrecondition
precondition IPrecondition
Результат IPrecondition

Substitute() публичный Метод

Returns a deep copy of the .
public Substitute ( IThrownException thrownException ) : IThrownException
thrownException IThrownException
Результат IThrownException

Substitute() публичный Метод

Returns a deep copy of the .
public Substitute ( ITypeContract typeContract ) : ITypeContract
typeContract ITypeContract
Результат ITypeContract

Substitute() публичный Метод

Returns a deep copy of the .
public Substitute ( ITypeInvariant typeInvariant ) : ITypeInvariant
typeInvariant ITypeInvariant
Результат ITypeInvariant