C# Class 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.
Inheritance: IQilAnnotation
Afficher le fichier Open project: gbarnett/shared-source-cli-2.0 Class Usage Examples

Méthodes publiques

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

Method Details

AddArgument() public méthode

Add an argument to one of the matching patterns.
public AddArgument ( OptimizerPatternArgument argId, object arg ) : void
argId OptimizerPatternArgument
arg object
Résultat void

AddPattern() public méthode

Add a pattern to the list of patterns that the annotated node matches.
public AddPattern ( OptimizerPatternName pattern ) : void
pattern OptimizerPatternName
Résultat void

GetArgument() public méthode

Get an argument of one of the matching patterns.
public GetArgument ( OptimizerPatternArgument argNum ) : object
argNum OptimizerPatternArgument
Résultat object

Inherit() public static méthode

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

MatchesPattern() public méthode

Return true if the annotated node matches the specified pattern.
public MatchesPattern ( OptimizerPatternName pattern ) : bool
pattern OptimizerPatternName
Résultat bool

Read() public static méthode

Get OptimizerPatterns annotation for the specified node. Lazily create if necessary.
public static Read ( QilNode nd ) : OptimizerPatterns
nd QilNode
Résultat OptimizerPatterns

ToString() public méthode

Return string representation of this annotation.
public ToString ( ) : string
Résultat string

Write() public static méthode

Create and initialize OptimizerPatterns annotation for the specified node.
public static Write ( QilNode nd ) : OptimizerPatterns
nd QilNode
Résultat OptimizerPatterns