C# 클래스 Rhino.Token

This class implements the JavaScript scanner.
This class implements the JavaScript scanner. It is based on the C source files jsscan.c and jsscan.h in the jsref package.
파일 보기 프로젝트 열기: hazzik/Rhino.Net 1 사용 예제들

공개 메소드들

메소드 설명
IsValidToken ( int code ) : bool

Return true if the passed code is a valid Token constant.

Return true if the passed code is a valid Token constant.

KeywordToName ( int token ) : string

Convert a keyword token to a name string for use with the Context.FEATURE_RESERVED_KEYWORD_AS_IDENTIFIER feature.

Name ( int token ) : string

Returns a name for the token.

Returns a name for the token. If Rhino is compiled with certain hardcoded debugging flags in this file, it calls #typeToName ; otherwise it returns a string whose value is the token number.

TypeToName ( int token ) : string

Always returns a human-readable string for the token name.

Always returns a human-readable string for the token name. For instance, FINALLY has the name "FINALLY".

메소드 상세

IsValidToken() 공개 정적인 메소드

Return true if the passed code is a valid Token constant.
Return true if the passed code is a valid Token constant.
public static IsValidToken ( int code ) : bool
code int a potential token code
리턴 bool

KeywordToName() 공개 정적인 메소드

Convert a keyword token to a name string for use with the Context.FEATURE_RESERVED_KEYWORD_AS_IDENTIFIER feature.
public static KeywordToName ( int token ) : string
token int A token
리턴 string

Name() 공개 정적인 메소드

Returns a name for the token.
Returns a name for the token. If Rhino is compiled with certain hardcoded debugging flags in this file, it calls #typeToName ; otherwise it returns a string whose value is the token number.
public static Name ( int token ) : string
token int
리턴 string

TypeToName() 공개 정적인 메소드

Always returns a human-readable string for the token name.
Always returns a human-readable string for the token name. For instance, FINALLY has the name "FINALLY".
public static TypeToName ( int token ) : string
token int the token code
리턴 string