C# Класс System.Xml.Xsl.IlGen.OptimizerPatterns

As the Qil graph is traversed, patterns are identified. Subtrees that match these patterns are annotated with this class, which identifies the matching patterns and their arguments.
Наследование: IQilAnnotation
Показать файл Открыть проект Примеры использования класса

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

Метод Описание
AddArgument ( OptimizerPatternArgument argId, object arg ) : void

Add an argument to one of the matching patterns.

AddPattern ( OptimizerPatternName pattern ) : void

Add a pattern to the list of patterns that the annotated node matches.

GetArgument ( OptimizerPatternArgument argNum ) : object

Get an argument of one of the matching patterns.

Inherit ( QilNode ndSrc, QilNode ndDst, OptimizerPatternName pattern ) : void

Create and initialize OptimizerPatterns annotation for the specified node.

MatchesPattern ( OptimizerPatternName pattern ) : bool

Return true if the annotated node matches the specified pattern.

Read ( QilNode nd ) : OptimizerPatterns

Get OptimizerPatterns annotation for the specified node. Lazily create if necessary.

ToString ( ) : string

Return string representation of this annotation.

Write ( QilNode nd ) : OptimizerPatterns

Create and initialize OptimizerPatterns annotation for the specified node.

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

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

Add an argument to one of the matching patterns.
public AddArgument ( OptimizerPatternArgument argId, object arg ) : void
argId OptimizerPatternArgument
arg object
Результат void

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

Add a pattern to the list of patterns that the annotated node matches.
public AddPattern ( OptimizerPatternName pattern ) : void
pattern OptimizerPatternName
Результат void

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

Get an argument of one of the matching patterns.
public GetArgument ( OptimizerPatternArgument argNum ) : object
argNum OptimizerPatternArgument
Результат object

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

Create and initialize OptimizerPatterns annotation for the specified node.
public static Inherit ( QilNode ndSrc, QilNode ndDst, OptimizerPatternName pattern ) : void
ndSrc QilNode
ndDst QilNode
pattern OptimizerPatternName
Результат void

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

Return true if the annotated node matches the specified pattern.
public MatchesPattern ( OptimizerPatternName pattern ) : bool
pattern OptimizerPatternName
Результат bool

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

Get OptimizerPatterns annotation for the specified node. Lazily create if necessary.
public static Read ( QilNode nd ) : OptimizerPatterns
nd QilNode
Результат OptimizerPatterns

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

Return string representation of this annotation.
public ToString ( ) : string
Результат string

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

Create and initialize OptimizerPatterns annotation for the specified node.
public static Write ( QilNode nd ) : OptimizerPatterns
nd QilNode
Результат OptimizerPatterns