C# Class 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.

Inheritance: AstNode
Afficher le fichier Open project: hazzik/Rhino.Net Class Usage Examples

Méthodes publiques

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

Method Details

AddFragment() public méthode

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

GetFragments() public méthode

Returns fragment list - a list of expression nodes.
Returns fragment list - a list of expression nodes.
public GetFragments ( ) : IList
Résultat IList

SetFragments() public méthode

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

ToSource() public méthode

public ToSource ( int depth ) : string
depth int
Résultat string

Visit() public méthode

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

XmlLiteral() public méthode

public XmlLiteral ( ) : System.Collections.Generic
Résultat System.Collections.Generic

XmlLiteral() public méthode

public XmlLiteral ( int pos ) : System.Collections.Generic
pos int
Résultat System.Collections.Generic

XmlLiteral() public méthode

public XmlLiteral ( int pos, int len ) : System.Collections.Generic
pos int
len int
Résultat System.Collections.Generic