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
Afficher le fichier Open project: hazzik/Rhino.Net

Méthodes publiques

Méthode 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 méthode

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

KeywordLiteral() public méthode

public KeywordLiteral ( ) : System
Résultat System

KeywordLiteral() public méthode

public KeywordLiteral ( int pos ) : System
pos int
Résultat System

KeywordLiteral() public méthode

public KeywordLiteral ( int pos, int len ) : System
pos int
len int
Résultat System

KeywordLiteral() public méthode

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

SetType() public méthode

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

ToSource() public méthode

public ToSource ( int depth ) : string
depth int
Résultat string

Visit() public méthode

Visits this node.
Visits this node. There are no children to visit.
public Visit ( NodeVisitor v ) : void
v NodeVisitor
Résultat void