C# 클래스 Rhino.Ast.NewExpression

New expression.
New expression. Node type is Rhino.Token.NEW .

NewExpression : MemberExpression new NewExpression
This node is a subtype of FunctionCall , mostly for internal code sharing. Structurally a NewExpression node is very similar to a FunctionCall , so it made a certain amount of sense.
상속: FunctionCall
파일 보기 프로젝트 열기: hazzik/Rhino.Net 1 사용 예제들

공개 메소드들

메소드 설명
GetInitializer ( ) : ObjectLiteral

Returns initializer object, if any.

Returns initializer object, if any.

NewExpression ( ) : System.Text
NewExpression ( int pos ) : System.Text
NewExpression ( int pos, int len ) : System.Text
SetInitializer ( ObjectLiteral initializer ) : void

Sets initializer object.

Sets initializer object. Rhino supports an experimental syntax of the form new expr [ ( arglist ) ] [initializer] , in which initializer is an object literal that is used to set additional properties on the newly-created expr object.

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

Visits this node, the target, and each argument.

Visits this node, the target, and each argument. If there is a trailing initializer node, visits that last.

메소드 상세

GetInitializer() 공개 메소드

Returns initializer object, if any.
Returns initializer object, if any.
public GetInitializer ( ) : ObjectLiteral
리턴 ObjectLiteral

NewExpression() 공개 메소드

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

NewExpression() 공개 메소드

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

NewExpression() 공개 메소드

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

SetInitializer() 공개 메소드

Sets initializer object.
Sets initializer object. Rhino supports an experimental syntax of the form new expr [ ( arglist ) ] [initializer] , in which initializer is an object literal that is used to set additional properties on the newly-created expr object.
public SetInitializer ( ObjectLiteral initializer ) : void
initializer ObjectLiteral /// extra initializer object. /// Can be /// null /// . ///
리턴 void

ToSource() 공개 메소드

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

Visit() 공개 메소드

Visits this node, the target, and each argument.
Visits this node, the target, and each argument. If there is a trailing initializer node, visits that last.
public Visit ( NodeVisitor v ) : void
v NodeVisitor
리턴 void