C# Class Rhino.Ast.RegExpLiteral

AST node for a RegExp literal.
AST node for a RegExp literal. Node type is Rhino.Token.REGEXP .

Inheritance: AstNode
Show file Open project: hazzik/Rhino.Net Class Usage Examples

Public Methods

Method Description
GetFlags ( ) : string

Returns regexp flags, null or "" if no flags specified

GetValue ( ) : string

Returns the regexp string without delimiters

RegExpLiteral ( ) : Rhino
RegExpLiteral ( int pos ) : Rhino
RegExpLiteral ( int pos, int len ) : Rhino
SetFlags ( string flags ) : void

Sets regexp flags.

Sets regexp flags. Can be null or "".

SetValue ( string value ) : void

Sets the regexp string without delimiters

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

Visits this node.

Visits this node. There are no children to visit.

Method Details

GetFlags() public method

Returns regexp flags, null or "" if no flags specified
public GetFlags ( ) : string
return string

GetValue() public method

Returns the regexp string without delimiters
public GetValue ( ) : string
return string

RegExpLiteral() public method

public RegExpLiteral ( ) : Rhino
return Rhino

RegExpLiteral() public method

public RegExpLiteral ( int pos ) : Rhino
pos int
return Rhino

RegExpLiteral() public method

public RegExpLiteral ( int pos, int len ) : Rhino
pos int
len int
return Rhino

SetFlags() public method

Sets regexp flags.
Sets regexp flags. Can be null or "".
public SetFlags ( string flags ) : void
flags string
return void

SetValue() public method

Sets the regexp string without delimiters
/// } if value is /// null ///
public SetValue ( string value ) : void
value string
return void

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