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
파일 보기 프로젝트 열기: hazzik/Rhino.Net 1 사용 예제들

공개 메소드들

메소드 설명
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