C# Класс Rhino.Ast.NumberLiteral

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

Наследование: AstNode
Показать файл Открыть проект Примеры использования класса

Открытые методы

Метод Описание
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