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
Show file Open project: hazzik/Rhino.Net Class Usage Examples

Public Methods

Method 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 method

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
return void

GetFragments() public method

Returns fragment list - a list of expression nodes.
Returns fragment list - a list of expression nodes.
public GetFragments ( ) : IList
return IList

SetFragments() public method

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.
return void

ToSource() public method

public ToSource ( int depth ) : string
depth int
return string

Visit() public method

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
return void

XmlLiteral() public method

public XmlLiteral ( ) : System.Collections.Generic
return System.Collections.Generic

XmlLiteral() public method

public XmlLiteral ( int pos ) : System.Collections.Generic
pos int
return System.Collections.Generic

XmlLiteral() public method

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