C# 클래스 Rhino.Ast.ElementGet

AST node for an indexed property reference, such as foo['bar'] or foo[2] . This is sometimes called an "element-get" operation, hence the name of the node.

Node type is Rhino.Token.GETELEM .

The node bounds extend from the beginning position of the target through the closing right-bracket. In the presence of a syntax error, the right bracket position is -1, and the node ends at the end of the element expression.

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

공개 메소드들

메소드 설명
ElementGet ( ) : System.Text
ElementGet ( AstNode target, AstNode element ) : System.Text
ElementGet ( int pos ) : System.Text
ElementGet ( int pos, int len ) : System.Text
GetElement ( ) : AstNode

Returns the element being accessed

GetLb ( ) : int

Returns left bracket position

GetRb ( ) : int

Returns right bracket position, -1 if missing

GetTarget ( ) : AstNode

Returns the object on which the element is being fetched.

Returns the object on which the element is being fetched.

SetElement ( AstNode element ) : void

Sets the element being accessed, and sets its parent to this node.

Sets the element being accessed, and sets its parent to this node.

SetLb ( int lb ) : void

Sets left bracket position

SetParens ( int lb, int rb ) : void
SetRb ( int rb ) : void

Sets right bracket position, -1 if not present

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
Visit ( NodeVisitor v ) : void

Visits this node, the target, and the index expression.

Visits this node, the target, and the index expression.

메소드 상세

ElementGet() 공개 메소드

public ElementGet ( ) : System.Text
리턴 System.Text

ElementGet() 공개 메소드

public ElementGet ( AstNode target, AstNode element ) : System.Text
target AstNode
element AstNode
리턴 System.Text

ElementGet() 공개 메소드

public ElementGet ( int pos ) : System.Text
pos int
리턴 System.Text

ElementGet() 공개 메소드

public ElementGet ( int pos, int len ) : System.Text
pos int
len int
리턴 System.Text

GetElement() 공개 메소드

Returns the element being accessed
public GetElement ( ) : AstNode
리턴 AstNode

GetLb() 공개 메소드

Returns left bracket position
public GetLb ( ) : int
리턴 int

GetRb() 공개 메소드

Returns right bracket position, -1 if missing
public GetRb ( ) : int
리턴 int

GetTarget() 공개 메소드

Returns the object on which the element is being fetched.
Returns the object on which the element is being fetched.
public GetTarget ( ) : AstNode
리턴 AstNode

SetElement() 공개 메소드

Sets the element being accessed, and sets its parent to this node.
Sets the element being accessed, and sets its parent to this node.
/// if element is /// null ///
public SetElement ( AstNode element ) : void
element AstNode
리턴 void

SetLb() 공개 메소드

Sets left bracket position
public SetLb ( int lb ) : void
lb int
리턴 void

SetParens() 공개 메소드

public SetParens ( int lb, int rb ) : void
lb int
rb int
리턴 void

SetRb() 공개 메소드

Sets right bracket position, -1 if not present
public SetRb ( int rb ) : void
rb int
리턴 void

SetTarget() 공개 메소드

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 /// expression evaluating to the object upon which /// to do the element lookup ///
리턴 void

ToSource() 공개 메소드

public ToSource ( int depth ) : string
depth int
리턴 string

Visit() 공개 메소드

Visits this node, the target, and the index expression.
Visits this node, the target, and the index expression.
public Visit ( NodeVisitor v ) : void
v NodeVisitor
리턴 void