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
Show file Open project: hazzik/Rhino.Net Class Usage Examples

Public Methods

Method 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 method

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

GetValue() public method

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

GetValue() public method

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

SetQuoteCharacter() public method

public SetQuoteCharacter ( char c ) : void
c char
return void

SetValue() public method

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

StringLiteral() public method

public StringLiteral ( ) : System.Text
return System.Text

StringLiteral() public method

public StringLiteral ( int pos ) : System.Text
pos int
return System.Text

StringLiteral() public method

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
return System.Text

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