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
Afficher le fichier Open project: hazzik/Rhino.Net Class Usage Examples

Méthodes publiques

Méthode 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 méthode

Gets the double value.
public GetNumber ( ) : double
Résultat double

GetValue() public méthode

Returns the node's string value (the original source token)
public GetValue ( ) : string
Résultat string

NumberLiteral() public méthode

public NumberLiteral ( ) : Rhino
Résultat Rhino

NumberLiteral() public méthode

public NumberLiteral ( double number ) : Rhino
number double
Résultat Rhino

NumberLiteral() public méthode

public NumberLiteral ( int pos ) : Rhino
pos int
Résultat Rhino

NumberLiteral() public méthode

public NumberLiteral ( int pos, int len ) : Rhino
pos int
len int
Résultat Rhino

NumberLiteral() public méthode

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

NumberLiteral() public méthode

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
Résultat Rhino

SetNumber() public méthode

Sets the node's double value.
public SetNumber ( double value ) : void
value double
Résultat void

SetValue() public méthode

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

ToSource() public méthode

public ToSource ( int depth ) : string
depth int
Résultat string

Visit() public méthode

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