C# Class Microsoft.Cci.MutableCodeModel.Contracts.CodeAndContractCopier

Inheritance: CodeCopier
Afficher le fichier Open project: visualmutator/visualmutator

Méthodes publiques

Méthode Description
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 .

Méthodes protégées

Méthode Description
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.

Method Details

CodeAndContractCopier() public méthode

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
Résultat System

CodeAndContractCopier() public méthode

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
Résultat System

DeepCopy() protected méthode

Visits the specified loop contract.
protected DeepCopy ( LoopContract loopContract ) : ILoopContract
loopContract Microsoft.Cci.MutableContracts.LoopContract The loop contract.
Résultat ILoopContract

DeepCopy() protected méthode

Visits the specified loop invariant.
protected DeepCopy ( LoopInvariant loopInvariant ) : ILoopInvariant
loopInvariant Microsoft.Cci.MutableContracts.LoopInvariant The loop invariant.
Résultat ILoopInvariant

DeepCopy() protected méthode

Visits the specified method contract.
protected DeepCopy ( MethodContract methodContract ) : IMethodContract
methodContract Microsoft.Cci.MutableContracts.MethodContract The method contract.
Résultat IMethodContract

DeepCopy() protected méthode

Visits the specified post condition.
protected DeepCopy ( Postcondition postCondition ) : IPostcondition
postCondition Microsoft.Cci.MutableContracts.Postcondition The post condition.
Résultat IPostcondition

DeepCopy() protected méthode

Visits the specified precondition.
protected DeepCopy ( Precondition precondition ) : IPrecondition
precondition Precondition The precondition.
Résultat IPrecondition

DeepCopy() protected méthode

Visits the specified thrown exception.
protected DeepCopy ( ThrownException thrownException ) : IThrownException
thrownException Microsoft.Cci.MutableContracts.ThrownException The thrown exception.
Résultat IThrownException

DeepCopy() protected méthode

Visits the specified type contract.
protected DeepCopy ( TypeContract typeContract ) : ITypeContract
typeContract Microsoft.Cci.MutableContracts.TypeContract The type contract.
Résultat ITypeContract

DeepCopy() protected méthode

Visits the specified type invariant.
protected DeepCopy ( TypeInvariant typeInvariant ) : ITypeInvariant
typeInvariant Microsoft.Cci.MutableContracts.TypeInvariant The type invariant.
Résultat ITypeInvariant

DeepCopy() protected méthode

Visits the specified addressable expressions.
protected DeepCopy ( List addressableExpressions ) : List
addressableExpressions List The addressable expressions.
Résultat List

DeepCopy() protected méthode

Visits the specified loop invariants.
protected DeepCopy ( List loopInvariants ) : List
loopInvariants List The loop invariants.
Résultat List

DeepCopy() protected méthode

Visits the specified post conditions.
protected DeepCopy ( List postConditions ) : List
postConditions List The post conditions.
Résultat List

DeepCopy() protected méthode

Visits the specified preconditions.
protected DeepCopy ( List preconditions ) : List
preconditions List The preconditions.
Résultat List

DeepCopy() protected méthode

Visits the specified thrown exceptions.
protected DeepCopy ( List thrownExceptions ) : List
thrownExceptions List The thrown exceptions.
Résultat List

DeepCopy() protected méthode

Visits the specified type invariants.
protected DeepCopy ( List typeInvariants ) : List
typeInvariants List The type invariants.
Résultat List

DeepCopy() public static méthode

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.
Résultat Microsoft.Cci.MutableContracts.MethodContract

DeepCopy() public static méthode

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.
Résultat Microsoft.Cci.MutableContracts.TypeContract

GetMutableCopy() public méthode

Get the mutable copy of a loop invariant.
public GetMutableCopy ( ILoopInvariant loopInvariant ) : LoopInvariant
loopInvariant ILoopInvariant
Résultat Microsoft.Cci.MutableContracts.LoopInvariant

GetMutableCopy() public méthode

Get the mutable copy of a postcondition.
public GetMutableCopy ( IPostcondition postcondition ) : Postcondition
postcondition IPostcondition
Résultat Microsoft.Cci.MutableContracts.Postcondition

GetMutableCopy() public méthode

Get the mutable copy of a precondition.
public GetMutableCopy ( IPrecondition precondition ) : Precondition
precondition IPrecondition
Résultat Precondition

GetMutableCopy() public méthode

Get the mutable copy of a thrown exception.
public GetMutableCopy ( IThrownException thrownException ) : ThrownException
thrownException IThrownException
Résultat Microsoft.Cci.MutableContracts.ThrownException

GetMutableCopy() public méthode

Get the mutable copy of a type invariant.
public GetMutableCopy ( ITypeInvariant typeInvariant ) : TypeInvariant
typeInvariant ITypeInvariant
Résultat Microsoft.Cci.MutableContracts.TypeInvariant

Substitute() public méthode

Returns a deep copy of the .
public Substitute ( IMethodContract methodContract ) : IMethodContract
methodContract IMethodContract
Résultat IMethodContract

Substitute() public méthode

Returns a deep copy of the .
public Substitute ( IPostcondition postcondition ) : IPostcondition
postcondition IPostcondition
Résultat IPostcondition

Substitute() public méthode

Returns a deep copy of the .
public Substitute ( IPrecondition precondition ) : IPrecondition
precondition IPrecondition
Résultat IPrecondition

Substitute() public méthode

Returns a deep copy of the .
public Substitute ( IThrownException thrownException ) : IThrownException
thrownException IThrownException
Résultat IThrownException

Substitute() public méthode

Returns a deep copy of the .
public Substitute ( ITypeContract typeContract ) : ITypeContract
typeContract ITypeContract
Résultat ITypeContract

Substitute() public méthode

Returns a deep copy of the .
public Substitute ( ITypeInvariant typeInvariant ) : ITypeInvariant
typeInvariant ITypeInvariant
Résultat ITypeInvariant