C# Класс Rhino.Ast.XmlLiteral

AST node for an E4X (Ecma-357) embedded XML literal.
AST node for an E4X (Ecma-357) embedded XML literal. Node type is Rhino.Token.XML . The parser generates a simple list of strings and expressions. In the future we may parse the XML and produce a richer set of nodes, but for now it's just a set of expressions evaluated to produce a string to pass to the XML constructor function.

Наследование: AstNode
Показать файл Открыть проект Примеры использования класса

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

Метод Описание
AddFragment ( XmlFragment fragment ) : void

Adds a fragment to the fragment list.

Adds a fragment to the fragment list. Sets its parent to this node.

GetFragments ( ) : IList

Returns fragment list - a list of expression nodes.

Returns fragment list - a list of expression nodes.

SetFragments ( IList fragments ) : void

Sets fragment list, removing any existing fragments first.

Sets fragment list, removing any existing fragments first. Sets the parent pointer for each fragment in the list to this node.

ToSource ( int depth ) : string
Visit ( NodeVisitor v ) : void

Visits this node, then visits each child fragment in lexical order.

Visits this node, then visits each child fragment in lexical order.

XmlLiteral ( ) : System.Collections.Generic
XmlLiteral ( int pos ) : System.Collections.Generic
XmlLiteral ( int pos, int len ) : System.Collections.Generic

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

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

Adds a fragment to the fragment list.
Adds a fragment to the fragment list. Sets its parent to this node.
/// } if /// fragment /// is /// null ///
public AddFragment ( XmlFragment fragment ) : void
fragment XmlFragment
Результат void

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

Returns fragment list - a list of expression nodes.
Returns fragment list - a list of expression nodes.
public GetFragments ( ) : IList
Результат IList

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

Sets fragment list, removing any existing fragments first.
Sets fragment list, removing any existing fragments first. Sets the parent pointer for each fragment in the list to this node.
/// } if /// fragments /// is /// null ///
public SetFragments ( IList fragments ) : void
fragments IList fragment list. Replaces any existing fragments.
Результат void

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

public ToSource ( int depth ) : string
depth int
Результат string

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

Visits this node, then visits each child fragment in lexical order.
Visits this node, then visits each child fragment in lexical order.
public Visit ( NodeVisitor v ) : void
v NodeVisitor
Результат void

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

public XmlLiteral ( ) : System.Collections.Generic
Результат System.Collections.Generic

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

public XmlLiteral ( int pos ) : System.Collections.Generic
pos int
Результат System.Collections.Generic

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

public XmlLiteral ( int pos, int len ) : System.Collections.Generic
pos int
len int
Результат System.Collections.Generic