C# Class Rhino.Ast.XmlDotQuery

AST node representing an E4X foo.(bar) query expression. The node type (operator) is Rhino.Token.DOTQUERY . Its getLeft node is the target ("foo" in the example), and the getRight node is the filter expression node.

This class exists separately from InfixExpression largely because it has different printing needs. The position of the left paren is just after the dot (operator) position, and the right paren is the final position in the bounds of the node. If the right paren is missing, the node ends at the end of the filter expression.

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

Public Methods

Method Description
GetRp ( ) : int

Returns right-paren position, -1 if missing.

Note that the left-paren is automatically the character immediately after the "." in the operator - no whitespace is permitted between the dot and lp by the scanner.

Returns right-paren position, -1 if missing.

Note that the left-paren is automatically the character immediately after the "." in the operator - no whitespace is permitted between the dot and lp by the scanner.

SetRp ( int rp ) : void

Sets right-paren position

ToSource ( int depth ) : string
XmlDotQuery ( ) : System.Text
XmlDotQuery ( int pos ) : System.Text
XmlDotQuery ( int pos, int len ) : System.Text

Method Details

GetRp() public method

Returns right-paren position, -1 if missing.

Note that the left-paren is automatically the character immediately after the "." in the operator - no whitespace is permitted between the dot and lp by the scanner.

Returns right-paren position, -1 if missing.

Note that the left-paren is automatically the character immediately after the "." in the operator - no whitespace is permitted between the dot and lp by the scanner.

public GetRp ( ) : int
return int

SetRp() public method

Sets right-paren position
public SetRp ( int rp ) : void
rp int
return void

ToSource() public method

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

XmlDotQuery() public method

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

XmlDotQuery() public method

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

XmlDotQuery() public method

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