C# Class Rhino.Ast.XmlExpression

AST node for an embedded JavaScript expression within an E4X XML literal.
AST node for an embedded JavaScript expression within an E4X XML literal. Node type, like XmlLiteral , is Rhino.Token.XML . The node length includes the curly braces.
Inheritance: XmlFragment
显示文件 Open project: hazzik/Rhino.Net

Public Methods

Method Description
GetExpression ( ) : AstNode

Returns the expression embedded in {}

IsXmlAttribute ( ) : bool

Returns whether this is part of an xml attribute value

SetExpression ( AstNode expression ) : void

Sets the expression embedded in {}, and sets its parent to this node.

Sets the expression embedded in {}, and sets its parent to this node.

SetIsXmlAttribute ( bool isXmlAttribute ) : void

Sets whether this is part of an xml attribute value

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

Visits this node, then the child expression.

Visits this node, then the child expression.

XmlExpression ( ) : Rhino.Ast
XmlExpression ( int pos ) : Rhino.Ast
XmlExpression ( int pos, AstNode expr ) : Rhino.Ast
XmlExpression ( int pos, int len ) : Rhino.Ast

Method Details

GetExpression() public method

Returns the expression embedded in {}
public GetExpression ( ) : AstNode
return AstNode

IsXmlAttribute() public method

Returns whether this is part of an xml attribute value
public IsXmlAttribute ( ) : bool
return bool

SetExpression() public method

Sets the expression embedded in {}, and sets its parent to this node.
Sets the expression embedded in {}, and sets its parent to this node.
/// if /// expression /// is /// null ///
public SetExpression ( AstNode expression ) : void
expression AstNode
return void

SetIsXmlAttribute() public method

Sets whether this is part of an xml attribute value
public SetIsXmlAttribute ( bool isXmlAttribute ) : void
isXmlAttribute bool
return void

ToSource() public method

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

Visit() public method

Visits this node, then the child expression.
Visits this node, then the child expression.
public Visit ( NodeVisitor v ) : void
v NodeVisitor
return void

XmlExpression() public method

public XmlExpression ( ) : Rhino.Ast
return Rhino.Ast

XmlExpression() public method

public XmlExpression ( int pos ) : Rhino.Ast
pos int
return Rhino.Ast

XmlExpression() public method

public XmlExpression ( int pos, AstNode expr ) : Rhino.Ast
pos int
expr AstNode
return Rhino.Ast

XmlExpression() public method

public XmlExpression ( int pos, int len ) : Rhino.Ast
pos int
len int
return Rhino.Ast