C# Class Rhino.Ast.XmlPropRef

AST node for an E4X XML [expr] property-ref expression. The node type is Rhino.Token.REF_NAME .

Syntax:

 @opt ns:: opt name
Examples include name , ns::name , ns::* , *::name , *::* , @attr , @ns::attr , @ns::* , @*::attr , @*::* and @* .

The node starts at the @ token, if present. Otherwise it starts at the namespace name. The node bounds extend through the closing right-bracket, or if it is missing due to a syntax error, through the end of the index expression.

Inheritance: XmlRef
Show file Open project: hazzik/Rhino.Net

Public Methods

Method Description
GetPropName ( ) : Name

Returns property name.

Returns property name.

SetPropName ( Name propName ) : void

Sets property name, and sets its parent to this node.

Sets property name, and sets its parent to this node.

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

Visits this node, then the namespace if present, then the property name.

Visits this node, then the namespace if present, then the property name.

XmlPropRef ( ) : System.Text
XmlPropRef ( int pos ) : System.Text
XmlPropRef ( int pos, int len ) : System.Text

Method Details

GetPropName() public method

Returns property name.
Returns property name.
public GetPropName ( ) : Name
return Name

SetPropName() public method

Sets property name, and sets its parent to this node.
Sets property name, and sets its parent to this node.
/// if /// propName /// is /// null ///
public SetPropName ( Name propName ) : void
propName Name
return void

ToSource() public method

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

Visit() public method

Visits this node, then the namespace if present, then the property name.
Visits this node, then the namespace if present, then the property name.
public Visit ( NodeVisitor v ) : void
v NodeVisitor
return void

XmlPropRef() public method

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

XmlPropRef() public method

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

XmlPropRef() public method

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