C# Class Rhino.Ast.XmlMemberGet

AST node for E4X ".@" and ".." expressions, such as foo..bar , foo..@bar , @foo.@bar , and foo..@ns::* . The right-hand node is always an XmlRef .

Node type is Rhino.Token.DOT or Rhino.Token.DOTDOT .

Inheritance: InfixExpression
Mostrar archivo Open project: hazzik/Rhino.Net Class Usage Examples

Public Methods

Method Description
GetMemberRef ( ) : XmlRef

Returns the right-side XML member ref expression.

Returns the right-side XML member ref expression. Should never be null unless the code is malformed.

GetTarget ( ) : AstNode

Returns the object on which the XML member-ref expression is being evaluated.

Returns the object on which the XML member-ref expression is being evaluated. Should never be null .

SetProperty ( XmlRef @ref ) : void

Sets the XML member-ref expression, and sets its parent to this node.

Sets the XML member-ref expression, and sets its parent to this node.

SetTarget ( AstNode target ) : void

Sets target object, and sets its parent to this node.

Sets target object, and sets its parent to this node.

ToSource ( int depth ) : string
XmlMemberGet ( ) : System.Text
XmlMemberGet ( AstNode target, XmlRef @ref ) : System.Text

Constructs a new XmlMemberGet node. Updates bounds to include target and ref nodes.

XmlMemberGet ( AstNode target, XmlRef @ref, int opPos ) : System.Text
XmlMemberGet ( int pos ) : System.Text
XmlMemberGet ( int pos, int len ) : System.Text
XmlMemberGet ( int pos, int len, AstNode target, XmlRef @ref ) : System.Text

Method Details

GetMemberRef() public method

Returns the right-side XML member ref expression.
Returns the right-side XML member ref expression. Should never be null unless the code is malformed.
public GetMemberRef ( ) : XmlRef
return XmlRef

GetTarget() public method

Returns the object on which the XML member-ref expression is being evaluated.
Returns the object on which the XML member-ref expression is being evaluated. Should never be null .
public GetTarget ( ) : AstNode
return AstNode

SetProperty() public method

Sets the XML member-ref expression, and sets its parent to this node.
Sets the XML member-ref expression, and sets its parent to this node.
/// if property is /// null ///
public SetProperty ( XmlRef @ref ) : void
@ref XmlRef
return void

SetTarget() public method

Sets target object, and sets its parent to this node.
Sets target object, and sets its parent to this node.
/// if /// target /// is /// null ///
public SetTarget ( AstNode target ) : void
target AstNode
return void

ToSource() public method

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

XmlMemberGet() public method

public XmlMemberGet ( ) : System.Text
return System.Text

XmlMemberGet() public method

Constructs a new XmlMemberGet node. Updates bounds to include target and ref nodes.
public XmlMemberGet ( AstNode target, XmlRef @ref ) : System.Text
target AstNode
@ref XmlRef
return System.Text

XmlMemberGet() public method

public XmlMemberGet ( AstNode target, XmlRef @ref, int opPos ) : System.Text
target AstNode
@ref XmlRef
opPos int
return System.Text

XmlMemberGet() public method

public XmlMemberGet ( int pos ) : System.Text
pos int
return System.Text

XmlMemberGet() public method

public XmlMemberGet ( int pos, int len ) : System.Text
pos int
len int
return System.Text

XmlMemberGet() public method

public XmlMemberGet ( int pos, int len, AstNode target, XmlRef @ref ) : System.Text
pos int
len int
target AstNode
@ref XmlRef
return System.Text