C# Class System.Xml.Xsl.IlGen.XmlILStateAnalyzer

Scans the content of an constructor and tries to minimize the number of well-formed checks that will have to be made at runtime when constructing content.
Afficher le fichier Open project: gbarnett/shared-source-cli-2.0 Class Usage Examples

Protected Properties

Свойство Type Description
fac System.Xml.Xsl.Qil.QilFactory
parentInfo XmlILConstructInfo
withinElem bool
xstates PossibleXmlStates

Méthodes publiques

Méthode Description
Analyze ( QilNode ndConstr, QilNode ndContent ) : QilNode

Perform analysis on the specified constructor and its content. Return the ndContent that was passed in, or a replacement.

XmlILStateAnalyzer ( QilFactory fac ) : System

Constructor.

Méthodes protégées

Méthode Description
AnalyzeChoice ( QilChoice ndChoice, XmlILConstructInfo info ) : void

Analyze choice.

AnalyzeConditional ( QilTernary ndCond, XmlILConstructInfo info ) : void

Analyze conditional.

AnalyzeContent ( QilNode nd ) : QilNode

Recursively analyze content. Return "nd" or a replacement for it.

AnalyzeCopy ( QilNode ndCopy, XmlILConstructInfo info ) : void

Analyze copying items.

AnalyzeLoop ( QilLoop ndLoop, XmlILConstructInfo info ) : void

Analyze loop.

AnalyzeSequence ( QilList ndSeq, XmlILConstructInfo info ) : void

Analyze list.

Private Methods

Méthode Description
EndLoop ( XmlQueryType typ, XmlILConstructInfo info ) : void

Calculate ending xml states that will result when iterating over and constructing an expression of the specified type.

MaybeAttrNmsp ( XmlQueryType typ ) : bool

Return true if an instance of the specified type might be an attribute or a namespace node.

MaybeContent ( XmlQueryType typ ) : bool

Return true if an instance of the specified type might be a non-empty content type (attr/nsmp don't count).

StartLoop ( XmlQueryType typ, XmlILConstructInfo info ) : void

Calculate starting xml states that will result when iterating over and constructing an expression of the specified type.

Method Details

Analyze() public méthode

Perform analysis on the specified constructor and its content. Return the ndContent that was passed in, or a replacement.
public Analyze ( QilNode ndConstr, QilNode ndContent ) : QilNode
ndConstr QilNode
ndContent QilNode
Résultat QilNode

AnalyzeChoice() protected méthode

Analyze choice.
protected AnalyzeChoice ( QilChoice ndChoice, XmlILConstructInfo info ) : void
ndChoice System.Xml.Xsl.Qil.QilChoice
info XmlILConstructInfo
Résultat void

AnalyzeConditional() protected méthode

Analyze conditional.
protected AnalyzeConditional ( QilTernary ndCond, XmlILConstructInfo info ) : void
ndCond System.Xml.Xsl.Qil.QilTernary
info XmlILConstructInfo
Résultat void

AnalyzeContent() protected méthode

Recursively analyze content. Return "nd" or a replacement for it.
protected AnalyzeContent ( QilNode nd ) : QilNode
nd QilNode
Résultat QilNode

AnalyzeCopy() protected méthode

Analyze copying items.
protected AnalyzeCopy ( QilNode ndCopy, XmlILConstructInfo info ) : void
ndCopy QilNode
info XmlILConstructInfo
Résultat void

AnalyzeLoop() protected méthode

Analyze loop.
protected AnalyzeLoop ( QilLoop ndLoop, XmlILConstructInfo info ) : void
ndLoop System.Xml.Xsl.Qil.QilLoop
info XmlILConstructInfo
Résultat void

AnalyzeSequence() protected méthode

Analyze list.
protected AnalyzeSequence ( QilList ndSeq, XmlILConstructInfo info ) : void
ndSeq System.Xml.Xsl.Qil.QilList
info XmlILConstructInfo
Résultat void

XmlILStateAnalyzer() public méthode

Constructor.
public XmlILStateAnalyzer ( QilFactory fac ) : System
fac System.Xml.Xsl.Qil.QilFactory
Résultat System

Property Details

fac protected_oe property

protected QilFactory,System.Xml.Xsl.Qil fac
Résultat System.Xml.Xsl.Qil.QilFactory

parentInfo protected_oe property

protected XmlILConstructInfo,System.Xml.Xsl.IlGen parentInfo
Résultat XmlILConstructInfo

withinElem protected_oe property

protected bool withinElem
Résultat bool

xstates protected_oe property

protected PossibleXmlStates xstates
Résultat PossibleXmlStates