C# 클래스 Rhino.Ast.NumberLiteral

AST node for a Number literal.
AST node for a Number literal. Node type is Rhino.Token.NUMBER .

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

공개 메소드들

메소드 설명
GetNumber ( ) : double

Gets the double value.

GetValue ( ) : string

Returns the node's string value (the original source token)

NumberLiteral ( ) : Rhino
NumberLiteral ( double number ) : Rhino
NumberLiteral ( int pos ) : Rhino
NumberLiteral ( int pos, int len ) : Rhino
NumberLiteral ( int pos, string value ) : Rhino

Constructor.

Constructor. Sets the length to the length of the value string.

NumberLiteral ( int pos, string value, double number ) : Rhino

Constructor.

Constructor. Sets the length to the length of the value string.

SetNumber ( double value ) : void

Sets the node's double value.

SetValue ( string value ) : void

Sets the node's value

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

Visits this node.

Visits this node. There are no children to visit.

메소드 상세

GetNumber() 공개 메소드

Gets the double value.
public GetNumber ( ) : double
리턴 double

GetValue() 공개 메소드

Returns the node's string value (the original source token)
public GetValue ( ) : string
리턴 string

NumberLiteral() 공개 메소드

public NumberLiteral ( ) : Rhino
리턴 Rhino

NumberLiteral() 공개 메소드

public NumberLiteral ( double number ) : Rhino
number double
리턴 Rhino

NumberLiteral() 공개 메소드

public NumberLiteral ( int pos ) : Rhino
pos int
리턴 Rhino

NumberLiteral() 공개 메소드

public NumberLiteral ( int pos, int len ) : Rhino
pos int
len int
리턴 Rhino

NumberLiteral() 공개 메소드

Constructor.
Constructor. Sets the length to the length of the value string.
public NumberLiteral ( int pos, string value ) : Rhino
pos int
value string
리턴 Rhino

NumberLiteral() 공개 메소드

Constructor.
Constructor. Sets the length to the length of the value string.
public NumberLiteral ( int pos, string value, double number ) : Rhino
pos int
value string
number double
리턴 Rhino

SetNumber() 공개 메소드

Sets the node's double value.
public SetNumber ( double value ) : void
value double
리턴 void

SetValue() 공개 메소드

Sets the node's value
/// } if value is /// null ///
public SetValue ( string value ) : void
value string
리턴 void

ToSource() 공개 메소드

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

Visit() 공개 메소드

Visits this node.
Visits this node. There are no children to visit.
public Visit ( NodeVisitor v ) : void
v NodeVisitor
리턴 void