C# Class Rhino.Ast.StringLiteral

AST node for a single- or double-quoted string literal.
AST node for a single- or double-quoted string literal. Node type is Rhino.Token.STRING .

Inheritance: AstNode
Afficher le fichier Open project: hazzik/Rhino.Net Class Usage Examples

Méthodes publiques

Méthode Description
GetQuoteCharacter ( ) : char

Returns the character used as the delimiter for this string.

Returns the character used as the delimiter for this string.

GetValue ( ) : string

Returns the node's value: the parsed string without the enclosing quotes

GetValue ( bool includeQuotes ) : string

Returns the string value, optionally including the enclosing quotes.

Returns the string value, optionally including the enclosing quotes.

SetQuoteCharacter ( char c ) : void
SetValue ( string value ) : void

Sets the node's value.

Sets the node's value. Do not include the enclosing quotes.

StringLiteral ( ) : System.Text
StringLiteral ( int pos ) : System.Text
StringLiteral ( int pos, int len ) : System.Text

Creates a string literal node at the specified position.

Creates a string literal node at the specified position.

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

Visits this node.

Visits this node. There are no children to visit.

Method Details

GetQuoteCharacter() public méthode

Returns the character used as the delimiter for this string.
Returns the character used as the delimiter for this string.
public GetQuoteCharacter ( ) : char
Résultat char

GetValue() public méthode

Returns the node's value: the parsed string without the enclosing quotes
public GetValue ( ) : string
Résultat string

GetValue() public méthode

Returns the string value, optionally including the enclosing quotes.
Returns the string value, optionally including the enclosing quotes.
public GetValue ( bool includeQuotes ) : string
includeQuotes bool
Résultat string

SetQuoteCharacter() public méthode

public SetQuoteCharacter ( char c ) : void
c char
Résultat void

SetValue() public méthode

Sets the node's value.
Sets the node's value. Do not include the enclosing quotes.
/// } if value is /// null ///
public SetValue ( string value ) : void
value string the node's value
Résultat void

StringLiteral() public méthode

public StringLiteral ( ) : System.Text
Résultat System.Text

StringLiteral() public méthode

public StringLiteral ( int pos ) : System.Text
pos int
Résultat System.Text

StringLiteral() public méthode

Creates a string literal node at the specified position.
Creates a string literal node at the specified position.
public StringLiteral ( int pos, int len ) : System.Text
pos int
len int the length including the enclosing quotes
Résultat System.Text

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