Factory methods for constructing QilExpression nodes.
See the QIL functional specification for documentation.
コード例 #1
0
        /// <summary>
        /// Create a shallow copy of this node, copying all the fields.
        /// </summary>
        public virtual QilNode ShallowClone(QilFactory f)
        {
            QilNode n = (QilNode)MemberwiseClone();

            f.TraceNode(n);
            return(n);
        }
コード例 #2
0
ファイル: QilList.cs プロジェクト: geoffkizer/corefx
 /// <summary>
 /// Override in order to clone the "members" array.
 /// </summary>
 public override QilNode ShallowClone(QilFactory f)
 {
     QilList n = (QilList)MemberwiseClone();
     n._members = (QilNode[])_members.Clone();
     f.TraceNode(n);
     return n;
 }
コード例 #3
0
ファイル: QilFactory.cs プロジェクト: geoffkizer/corefx
        //-----------------------------------------------
        // Convenience methods
        //-----------------------------------------------

        public QilExpression QilExpression(QilNode root, QilFactory factory)
        {
            QilExpression n = new QilExpression(QilNodeType.QilExpression, root, factory);
            n.XmlType = _typeCheck.CheckQilExpression(n);
            TraceNode(n);
            return n;
        }
コード例 #4
0
        public override QilNode ShallowClone(QilFactory f)
        {
            QilList n = (QilList)MemberwiseClone();

            n._members = (QilNode[])_members.Clone();
            f.TraceNode(n);
            return(n);
        }
コード例 #5
0
        //-----------------------------------------------
        // Convenience methods
        //-----------------------------------------------

        public QilExpression QilExpression(QilNode root, QilFactory factory)
        {
            QilExpression n = new QilExpression(QilNodeType.QilExpression, root, factory);

            n.XmlType = this.typeCheck.CheckQilExpression(n);
            TraceNode(n);
            return(n);
        }
コード例 #6
0
        /// <summary>
        /// Construct QIL from a rooted graph of QilNodes with a specific factory.
        /// </summary>
        public QilExpression(QilNodeType nodeType, QilNode root, QilFactory factory) : base(nodeType) {
            this.factory = factory;
            this.isDebug = factory.False();

            XmlWriterSettings settings = new XmlWriterSettings();
            settings.ConformanceLevel = ConformanceLevel.Auto;
            this.defWSet = factory.LiteralObject(settings);

            this.wsRules = factory.LiteralObject(new List<WhitespaceRule>());
            this.funList = factory.FunctionList();
            this.gloVars = factory.GlobalVariableList();
            this.gloParams = factory.GlobalParameterList();
            this.rootNod = root;
        }
コード例 #7
0
ファイル: QilExpression.cs プロジェクト: Corillian/corefx
        /// <summary>
        /// Construct QIL from a rooted graph of QilNodes with a specific factory.
        /// </summary>
        public QilExpression(QilNodeType nodeType, QilNode root, QilFactory factory) : base(nodeType)
        {
            _factory = factory;
            _isDebug = factory.False();

            XmlWriterSettings settings = new XmlWriterSettings();
            settings.ConformanceLevel = ConformanceLevel.Auto;
            _defWSet = factory.LiteralObject(settings);

            _wsRules = factory.LiteralObject(new List<WhitespaceRule>());
            _gloVars = factory.GlobalVariableList();
            _gloParams = factory.GlobalParameterList();
            _earlBnd = factory.LiteralObject(new List<EarlyBoundInfo>());
            _funList = factory.FunctionList();
            _rootNod = root;
        }
コード例 #8
0
        /// <summary>
        /// Construct QIL from a rooted graph of QilNodes with a specific factory.
        /// </summary>
        public QilExpression(QilNodeType nodeType, QilNode root, QilFactory factory) : base(nodeType)
        {
            this.factory = factory;
            this.isDebug = factory.False();

            XmlWriterSettings settings = new XmlWriterSettings();

            settings.ConformanceLevel = ConformanceLevel.Auto;
            this.defWSet = factory.LiteralObject(settings);

            this.wsRules   = factory.LiteralObject(new List <WhitespaceRule>());
            this.funList   = factory.FunctionList();
            this.gloVars   = factory.GlobalVariableList();
            this.gloParams = factory.GlobalParameterList();
            this.rootNod   = root;
        }
コード例 #9
0
        /// <summary>
        /// Construct QIL from a rooted graph of QilNodes with a specific factory.
        /// </summary>
        public QilExpression(QilNodeType nodeType, QilNode root, QilFactory factory) : base(nodeType)
        {
            _factory = factory;
            _isDebug = factory.False();

            XmlWriterSettings settings = new XmlWriterSettings();

            settings.ConformanceLevel = ConformanceLevel.Auto;
            _defWSet = factory.LiteralObject(settings);

            _wsRules   = factory.LiteralObject(new List <WhitespaceRule>());
            _gloVars   = factory.GlobalVariableList();
            _gloParams = factory.GlobalParameterList();
            _earlBnd   = factory.LiteralObject(new List <EarlyBoundInfo>());
            _funList   = factory.FunctionList();
            _rootNod   = root;
        }
コード例 #10
0
 public QilXmlReader(XmlReader r)
 {
     _r = r;
     _f = new QilFactory();
 }
コード例 #11
0
 public QilPatternFactory(QilFactory f, bool debug)
 {
     Debug.Assert(f != null);
     _f     = f;
     _debug = debug;
 }
コード例 #12
0
ファイル: QilCloneVisitor.cs プロジェクト: Corillian/corefx
 public QilCloneVisitor(QilFactory fac, SubstitutionList subs)
 {
     _fac = fac;
     _subs = subs;
 }
コード例 #13
0
 public QilReplaceVisitor(QilFactory f) {
     this.f = f;
 }
コード例 #14
0
 public QilXmlReader(XmlReader r) {
     this.r = r;
     this.f = new QilFactory();
 }
コード例 #15
0
 public QilPatternVisitor(QilPatterns patterns, QilFactory f) : base(f)
 {
     Patterns = patterns;
 }
コード例 #16
0
 public QilCloneVisitor(QilFactory fac, SubstitutionList subs)
 {
     _fac  = fac;
     _subs = subs;
 }
コード例 #17
0
 //-----------------------------------------------
 // meta
 //-----------------------------------------------
 public QilExpression QilExpression(QilNode root, QilFactory factory) {
     return f.QilExpression(root, factory);
 }
コード例 #18
0
 /// <summary>
 /// Constructor.
 /// </summary>
 public QilPatternVisitor(QilPatterns patterns, QilFactory f) : base(f) {
     Patterns = patterns;
 }
コード例 #19
0
 public QilCloneVisitor(QilFactory fac, SubstitutionList subs)
 {
     this.fac  = fac;
     this.subs = subs;
 }
コード例 #20
0
 /// <summary>
 /// Constructor.
 /// </summary>
 public XmlILElementAnalyzer(QilFactory fac) : base(fac) {
 }
コード例 #21
0
ファイル: QilXmlReader.cs プロジェクト: dotnet/corefx
 public QilXmlReader(XmlReader r)
 {
     _r = r;
     _f = new QilFactory();
 }
コード例 #22
0
ファイル: QilGenerator.cs プロジェクト: Corillian/corefx
 public ReferenceReplacer(QilFactory f) : base(f)
 {
 }
コード例 #23
0
 //-----------------------------------------------
 // meta
 //-----------------------------------------------
 public QilExpression QilExpression(QilNode root, QilFactory factory)
 {
     return(_f.QilExpression(root, factory));
 }
コード例 #24
0
 /// <summary>
 /// Create a new deep copy of this node.
 /// </summary>
 public virtual QilNode DeepClone(QilFactory f)
 {
     return(new QilCloneVisitor(f).Clone(this));
 }
コード例 #25
0
 public QilPatternFactory(QilFactory f, bool debug) {
     Debug.Assert(f != null);
     this.f = f;
     this.debug = debug;
 }
コード例 #26
0
 /// <summary>
 /// Constructor.
 /// </summary>
 public XmlILStateAnalyzer(QilFactory fac) {
     this.fac = fac;
 }
コード例 #27
0
 public XPathQilFactory(QilFactory f, bool debug) : base(f, debug) {
 }
コード例 #28
0
ファイル: QilCloneVisitor.cs プロジェクト: Corillian/corefx
        //-----------------------------------------------
        // Constructors
        //-----------------------------------------------

        public QilCloneVisitor(QilFactory fac) : this(fac, new SubstitutionList())
        {
        }
コード例 #29
0
        //-----------------------------------------------
        // Constructors
        //-----------------------------------------------

        public QilCloneVisitor(QilFactory fac) : this(fac, new SubstitutionList())
        {
        }
コード例 #30
0
 public QilXmlReader(XmlReader r)
 {
     this.r = r;
     this.f = new QilFactory();
 }
コード例 #31
0
 public QilReplaceVisitor(QilFactory f)
 {
     this.f = f;
 }
コード例 #32
0
 public QilCloneVisitor(QilFactory fac, SubstitutionList subs) {
     this.fac = fac;
     this.subs = subs;
 }
コード例 #33
0
 public XsltQilFactory(QilFactory f, bool debug) : base(f, debug) {}
コード例 #34
0
 public Cloner(QilFactory f) : base(f) {}