C# Class Rhino.Ast.NumberLiteral

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

Inheritance: AstNode
Mostrar archivo Open project: hazzik/Rhino.Net Class Usage Examples

Public Methods

Method Description
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.

Method Details

GetNumber() public method

Gets the double value.
public GetNumber ( ) : double
return double

GetValue() public method

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

NumberLiteral() public method

public NumberLiteral ( ) : Rhino
return Rhino

NumberLiteral() public method

public NumberLiteral ( double number ) : Rhino
number double
return Rhino

NumberLiteral() public method

public NumberLiteral ( int pos ) : Rhino
pos int
return Rhino

NumberLiteral() public method

public NumberLiteral ( int pos, int len ) : Rhino
pos int
len int
return Rhino

NumberLiteral() public method

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

NumberLiteral() public method

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
return Rhino

SetNumber() public method

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

SetValue() public method

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

ToSource() public method

public ToSource ( int depth ) : string
depth int
return string

Visit() public method

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