コード例 #1
0
        public void walkDomFragment(Node node, AbstractBehavior parentBehavior = null)
        {
            investigateNode(node, parentBehavior);

            //free this for GC when we are done, it has references to a lot of DOM elements
            this.extensionsToBeApplied = null;
        }
コード例 #2
0
        public void walkDomChildren(Node parentNode, AbstractBehavior parentBehavior = null)
        {
            //The fact that we have two entry point into here walkChildren and walkDomFragment continues to screw us
            walkChildren(parentNode, parentBehavior);

            //free this for GC when we are done, it has references to a lot of DOM elements
            this.extensionsToBeApplied = null;
        }
コード例 #3
0
ファイル: DomWalker.cs プロジェクト: labriola/Randori
        public void walkChildren(Node parentNode, InjectionClassBuilder classBuilder, AbstractBehavior parentBehavior = null)
        {
            var node = parentNode.firstChild;

            while (node != null) {
                investigateNode(node, classBuilder, parentBehavior);
                node = node.nextSibling;
            }
        }
コード例 #4
0
        public void investigateTextNode(Node textNode)
        {
            //We have a list of matches within the text node which tell us what we need to get
            //further we have the original node, which we need to preserve as there may be only parts getting translated
            //even though this is bad form <div>[labels.monkey] is a type of [labels.animal]</div> we still need to support it
            var result = getElementLocalizationComponents(textNode);

            if (result != null) {
                for ( int i=0; i<result.length;i++) {
                    requestTranslation( result[ i ], textNode );
                }

                scheduleTranslation();
            }
        }
コード例 #5
0
ファイル: Node.cs プロジェクト: hultqvist/SharpKit-SDK
	public  int compareDocumentPosition(Node other) { return default(int); }
コード例 #6
0
 public RandoriApplication(Node rootNode)
 {
     this.rootNode = rootNode;
 }
コード例 #7
0
ファイル: Node.cs プロジェクト: hultqvist/SharpKit-SDK
	public  bool isEqualNode(Node other) { return default(bool); }
コード例 #8
0
ファイル: XPathEvaluator.cs プロジェクト: fjgandrade/sharpkit
	public  XPathResult evaluate(string expression, Node contextNode, XPathNSResolver resolver, int type, XPathResult inResult) { return default(XPathResult); }
コード例 #9
0
ファイル: LSParserFilter.cs プロジェクト: fjgandrade/sharpkit
	public short acceptNode(Node nodeArg) { return default(short); }
コード例 #10
0
ファイル: Node.cs プロジェクト: hultqvist/SharpKit-SDK
	public  Node replaceChild(Node newChild, Node oldChild) { return default(Node); }
コード例 #11
0
ファイル: Node.cs プロジェクト: hultqvist/SharpKit-SDK
	public  Node appendChild(Node newChild) { return default(Node); }
コード例 #12
0
	public  void importStylesheet(Node stylesheet) {}
コード例 #13
0
	public  DocumentFragment transformToFragment(Node source, Document docVal) { return default(DocumentFragment); }
コード例 #14
0
ファイル: LSSerializer.cs プロジェクト: fjgandrade/sharpkit
	public bool writeToURI(Node nodeArg, string uri) { return default(bool); }
コード例 #15
0
ファイル: LSSerializer.cs プロジェクト: fjgandrade/sharpkit
	public JsString writeToString(Node nodeArg) { return default(JsString); }
コード例 #16
0
ファイル: LSSerializer.cs プロジェクト: fjgandrade/sharpkit
	public bool write(Node nodeArg, LSOutput destination) { return default(bool); }
コード例 #17
0
	public  void observe(Node target, object options) {}
コード例 #18
0
ファイル: LSParser.cs プロジェクト: fjgandrade/sharpkit
	public Node parseWithContext(LSInput input, Node contextArg, short action) { return default(Node); }
コード例 #19
0
ファイル: Node.cs プロジェクト: hultqvist/SharpKit-SDK
	public  bool contains(Node other) { return default(bool); }
コード例 #20
0
	public  Document transformToDocument(Node source) { return default(Document); }
コード例 #21
0
ファイル: Node.cs プロジェクト: hultqvist/SharpKit-SDK
	public  Node insertBefore(Node newChild, Node refChild) { return default(Node); }
コード例 #22
0
ファイル: DomWalker.cs プロジェクト: labriola/Randori
        private void investigateNode(Node node, InjectionClassBuilder classBuilder, AbstractBehavior parentBehavior)
        {
            if (node.nodeType == Node.ELEMENT_NODE) {

                //Just an optimization, need to create constants for all of these things
                if (node.nodeName == "SCRIPT" || node.nodeName == "META") {
                    return;
                }

                if ( node.nodeName == "LINK" ) {
                    investigateLinkElement(node.As<HtmlLinkElement>());
                } else {
                    investigateDomElement(node.As<HtmlElement>(), classBuilder, parentBehavior);
                }

            } else if (node.nodeType == Node.TEXT_NODE) {
                //This is a text node, check to see if it needs internationalization
                localizationProvider.investigateTextNode(node);
            } else {
                walkChildren(node, classBuilder, parentBehavior);
            }
        }
コード例 #23
0
ファイル: Node.cs プロジェクト: hultqvist/SharpKit-SDK
	public  Node removeChild(Node oldChild) { return default(Node); }
コード例 #24
0
ファイル: XPathEvaluator.cs プロジェクト: fjgandrade/sharpkit
	public object evaluate(string expression, Node contextNode, XPathNSResolver resolver, short type, object result) { return default(object); }
コード例 #25
0
ファイル: XPathEvaluator.cs プロジェクト: fjgandrade/sharpkit
	public  XPathNSResolver createNSResolver(Node nodeResolver) { return default(XPathNSResolver); }
コード例 #26
0
ファイル: DomWalker.cs プロジェクト: labriola/Randori
 public void walkDomFragment(Node node, InjectionClassBuilder classBuilder, AbstractBehavior parentBehavior = null)
 {
     investigateNode(node, classBuilder, parentBehavior);
 }
コード例 #27
0
ファイル: Range.cs プロジェクト: hultqvist/SharpKit-SDK
		public static Range Get(Node node) { throw new NotImplementedException(); }
コード例 #28
0
ファイル: Node.cs プロジェクト: hultqvist/SharpKit-SDK
	public  bool isSameNode(Node other) { return default(bool); }
コード例 #29
0
	public  XPathResult evaluate(Node contextNode, int type, XPathResult inResult) { return default(XPathResult); }
コード例 #30
0
ファイル: Console.cs プロジェクト: fjgandrade/sharpkit
 public void dirxml(Node node) { }