Class OatOperation
A Class Representing a complete implemented operation including its Operation and Validation delegates
Inheritance
System.Object
OatOperation
Inherited Members
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.ToString()
Namespace: Microsoft.CST.OAT.Operations
Assembly: OAT.dll
Syntax
public class OatOperation
Constructors
| Improve this Doc View SourceOatOperation(Operation)
Simplest constructor without analyzer context
Declaration
public OatOperation(Operation operation)
Parameters
Type | Name | Description |
---|---|---|
Operation | operation | The Operation this implements |
OatOperation(Operation, Analyzer)
Simple constructor
Declaration
public OatOperation(Operation operation, Analyzer analyzer)
Parameters
Type | Name | Description |
---|---|---|
Operation | operation | The operation this implements |
Analyzer | analyzer | The analyzer context |
OatOperation(Operation, OperationDelegate, ValidationDelegate, Analyzer, String)
The fully specified constructor
Declaration
public OatOperation(Operation operation, OperationDelegate operationDelegate, ValidationDelegate validationDelegate, Analyzer analyzer, string customOperation = null)
Parameters
Type | Name | Description |
---|---|---|
Operation | operation | The Operation this implements |
OperationDelegate | operationDelegate | The Operation Delegate |
ValidationDelegate | validationDelegate | The Validation Delegate |
Analyzer | analyzer | The Analyzer Context |
System.String | customOperation | The CustomOperation to use if operation is Custom |
Properties
| Improve this Doc View SourceAnalyzer
The analyzer context
Declaration
public Analyzer Analyzer { get; set; }
Property Value
Type | Description |
---|---|
Analyzer |
CustomOperation
The CustomOperation name if Operation is Custom
Declaration
public string CustomOperation { get; set; }
Property Value
Type | Description |
---|---|
System.String |
Operation
The Operation implemented
Declaration
public Operation Operation { get; set; }
Property Value
Type | Description |
---|---|
Operation |
OperationDelegate
The operation delegate
Declaration
public OperationDelegate OperationDelegate { get; set; }
Property Value
Type | Description |
---|---|
OperationDelegate |
ValidationDelegate
The validation delegate
Declaration
public ValidationDelegate ValidationDelegate { get; set; }
Property Value
Type | Description |
---|---|
ValidationDelegate |
Methods
| Improve this Doc View SourceNopOperation(Clause, Object, Object, IEnumerable<ClauseCapture>)
Returns false.
Declaration
public static OperationResult NopOperation(Clause clause, object state1, object state2, IEnumerable<ClauseCapture> captures)
Parameters
Type | Name | Description |
---|---|---|
Clause | clause | |
System.Object | state1 | |
System.Object | state2 | |
System.Collections.Generic.IEnumerable<ClauseCapture> | captures |
Returns
Type | Description |
---|---|
OperationResult |
UndefinedValidation(Rule, Clause)
Yields one violation.
Declaration
public static IEnumerable<Violation> UndefinedValidation(Rule rule, Clause clause)
Parameters
Type | Name | Description |
---|---|---|
Rule | rule | |
Clause | clause |
Returns
Type | Description |
---|---|
System.Collections.Generic.IEnumerable<Violation> |