C# 클래스 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 .
상속: AstNode
파일 보기 프로젝트 열기: hazzik/Rhino.Net

공개 메소드들

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

메소드 상세

IsBooleanLiteral() 공개 메소드

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

KeywordLiteral() 공개 메소드

public KeywordLiteral ( ) : System
리턴 System

KeywordLiteral() 공개 메소드

public KeywordLiteral ( int pos ) : System
pos int
리턴 System

KeywordLiteral() 공개 메소드

public KeywordLiteral ( int pos, int len ) : System
pos int
len int
리턴 System

KeywordLiteral() 공개 메소드

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

SetType() 공개 메소드

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

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