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
파일 보기 프로젝트 열기: hazzik/Rhino.Net 1 사용 예제들

공개 메소드들

메소드 설명
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