C# Класс 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 .

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

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

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

Описание методов

GetQuoteCharacter() публичный Метод

Returns the character used as the delimiter for this string.
Returns the character used as the delimiter for this string.
public GetQuoteCharacter ( ) : char
Результат char

GetValue() публичный Метод

Returns the node's value: the parsed string without the enclosing quotes
public GetValue ( ) : string
Результат string

GetValue() публичный Метод

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
Результат string

SetQuoteCharacter() публичный Метод

public SetQuoteCharacter ( char c ) : void
c char
Результат void

SetValue() публичный Метод

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
Результат void

StringLiteral() публичный Метод

public StringLiteral ( ) : System.Text
Результат System.Text

StringLiteral() публичный Метод

public StringLiteral ( int pos ) : System.Text
pos int
Результат System.Text

StringLiteral() публичный Метод

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
Результат System.Text

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