C# Class Rhino.Ast.KeywordLiteral

AST node for keyword literals: currently, this , null , true , false , and debugger . Node type is one of Rhino.Token.THIS , Rhino.Token.NULL , Rhino.Token.TRUE , Rhino.Token.FALSE , or Rhino.Token.DEBUGGER .
Inheritance: AstNode
Show file Open project: hazzik/Rhino.Net

Public Methods

Method Description
IsBooleanLiteral ( ) : bool

Returns true if the token type is Rhino.Token.TRUE or Rhino.Token.FALSE .

KeywordLiteral ( ) : System
KeywordLiteral ( int pos ) : System
KeywordLiteral ( int pos, int len ) : System
KeywordLiteral ( int pos, int len, int nodeType ) : System

Constructs a new KeywordLiteral

SetType ( int nodeType ) : Node

Sets node token type

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

Visits this node.

Visits this node. There are no children to visit.

Method Details

IsBooleanLiteral() public method

Returns true if the token type is Rhino.Token.TRUE or Rhino.Token.FALSE .
public IsBooleanLiteral ( ) : bool
return bool

KeywordLiteral() public method

public KeywordLiteral ( ) : System
return System

KeywordLiteral() public method

public KeywordLiteral ( int pos ) : System
pos int
return System

KeywordLiteral() public method

public KeywordLiteral ( int pos, int len ) : System
pos int
len int
return System

KeywordLiteral() public method

Constructs a new KeywordLiteral
public KeywordLiteral ( int pos, int len, int nodeType ) : System
pos int
len int
nodeType int the token type
return System

SetType() public method

Sets node token type
/// if /// nodeType /// is unsupported ///
public SetType ( int nodeType ) : Node
nodeType int
return Node

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