C# 클래스 Rhino.Ast.XmlRef

Base class for E4X XML attribute-access or property-get expressions.
Base class for E4X XML attribute-access or property-get expressions. Such expressions can take a variety of forms. The general syntax has three parts:

  1. optional: an @
  2. (specifying an attribute access)
  3. optional: a namespace (a Name ) and double-colon
  4. required: either a Name or a bracketed [expression]
The property-name expressions (examples: ns::name , @name ) are represented as XmlPropRef nodes. The bracketed-expression versions (examples: ns::[name] , @[name] ) become XmlElemRef nodes.

This node type (or more specifically, its subclasses) will sometimes be the right-hand child of a PropertyGet node or an XmlMemberGet node. The XmlRef node may also be a standalone primary expression with no explicit target, which is valid in certain expression contexts such as company..employee.(@id < 100) - in this case, the @id is an XmlRef that is part of an infix '<' expression whose parent is an XmlDotQuery node.

상속: AstNode
파일 보기 프로젝트 열기: hazzik/Rhino.Net 1 사용 예제들

보호된 프로퍼티들

프로퍼티 타입 설명
@namespace Name
atPos int
colonPos int

공개 메소드들

메소드 설명
GetAtPos ( ) : int

Returns position of @ -token, or -1 if this is not an attribute-access expression.

GetColonPos ( ) : int

Returns position of :: token, or -1 if not present. It will only be present if the namespace node is non- null .

GetNamespace ( ) : Name

Return the namespace.

Return the namespace. May be @null .

IsAttributeAccess ( ) : bool

Returns true if this expression began with an @ -token.

SetAtPos ( int atPos ) : void

Sets position of @ -token, or -1

SetColonPos ( int colonPos ) : void

Sets position of :: token, or -1 if not present

SetNamespace ( Name @namespace ) : void

Sets namespace, and sets its parent to this node.

Sets namespace, and sets its parent to this node. Can be null .

XmlRef ( ) : Rhino.Ast
XmlRef ( int pos ) : Rhino.Ast
XmlRef ( int pos, int len ) : Rhino.Ast

메소드 상세

GetAtPos() 공개 메소드

Returns position of @ -token, or -1 if this is not an attribute-access expression.
public GetAtPos ( ) : int
리턴 int

GetColonPos() 공개 메소드

Returns position of :: token, or -1 if not present. It will only be present if the namespace node is non- null .
public GetColonPos ( ) : int
리턴 int

GetNamespace() 공개 메소드

Return the namespace.
Return the namespace. May be @null .
public GetNamespace ( ) : Name
리턴 Name

IsAttributeAccess() 공개 메소드

Returns true if this expression began with an @ -token.
public IsAttributeAccess ( ) : bool
리턴 bool

SetAtPos() 공개 메소드

Sets position of @ -token, or -1
public SetAtPos ( int atPos ) : void
atPos int
리턴 void

SetColonPos() 공개 메소드

Sets position of :: token, or -1 if not present
public SetColonPos ( int colonPos ) : void
colonPos int
리턴 void

SetNamespace() 공개 메소드

Sets namespace, and sets its parent to this node.
Sets namespace, and sets its parent to this node. Can be null .
public SetNamespace ( Name @namespace ) : void
@namespace Name
리턴 void

XmlRef() 공개 메소드

public XmlRef ( ) : Rhino.Ast
리턴 Rhino.Ast

XmlRef() 공개 메소드

public XmlRef ( int pos ) : Rhino.Ast
pos int
리턴 Rhino.Ast

XmlRef() 공개 메소드

public XmlRef ( int pos, int len ) : Rhino.Ast
pos int
len int
리턴 Rhino.Ast

프로퍼티 상세

@namespace 보호되어 있는 프로퍼티

protected Name,Rhino.Ast @namespace
리턴 Name

atPos 보호되어 있는 프로퍼티

protected int atPos
리턴 int

colonPos 보호되어 있는 프로퍼티

protected int colonPos
리턴 int