Redigera

Dela via


JSScanner Class

Definition

Scans JScript code searching for individual units of code, or tokens. This class belongs to the scanning and parsing category.

This API supports the product infrastructure and is not intended to be used directly from your code.

public ref class JSScanner sealed
public sealed class JSScanner
type JSScanner = class
Public NotInheritable Class JSScanner
Inheritance
JSScanner

Constructors

JSScanner()

This API supports the product infrastructure and is not intended to be used directly from your code.

Initializes a new instance of the JSScanner class.

JSScanner(Context)

This API supports the product infrastructure and is not intended to be used directly from your code.

Initializes a new instance of the JSScanner class, specifying the source code to scan.

Methods

Equals(Object)

Determines whether the specified object is equal to the current object.

(Inherited from Object)
GetCurrentLine()

This API supports the product infrastructure and is not intended to be used directly from your code.

Gets the current line number in the code. This is a pointer that moves as the code is scanned.

GetCurrentPosition(Boolean)

This API supports the product infrastructure and is not intended to be used directly from your code.

Gets the current position in the code string. This is a pointer that moves as the code is scanned.

GetHashCode()

Serves as the default hash function.

(Inherited from Object)
GetNextToken()

This API supports the product infrastructure and is not intended to be used directly from your code.

Scans for the next token in the code.

GetSourceCode()

This API supports the product infrastructure and is not intended to be used directly from your code.

Gets the source code that is associated with this scanner object.

GetStartLinePosition()

This API supports the product infrastructure and is not intended to be used directly from your code.

Gets the position in the code string where the first line of the current code starts. All lines of code are stored in a single string. This is a pointer that moves as the code is scanned.

GetStringLiteral()

This API supports the product infrastructure and is not intended to be used directly from your code.

Gets a string that has been scanned and had all its escape sequences replaced.

GetType()

Gets the Type of the current instance.

(Inherited from Object)
GotEndOfLine()

This API supports the product infrastructure and is not intended to be used directly from your code.

Indicates whether the end of a line was reached after the scanner scans or peeks for a token.

IsKeyword(JSToken)

This API supports the product infrastructure and is not intended to be used directly from your code.

Determines whether the specified token is a keyword in the JScript language.

IsOperator(JSToken)

This API supports the product infrastructure and is not intended to be used directly from your code.

Determines whether the specified token is an operator in the JScript language.

MemberwiseClone()

Creates a shallow copy of the current Object.

(Inherited from Object)
SetAuthoringMode(Boolean)

This API supports the product infrastructure and is not intended to be used directly from your code.

Sets a flag that indicates whether the scanner is operating in authoring mode.

SetSource(Context)

This API supports the product infrastructure and is not intended to be used directly from your code.

Sets the source code to scan.

SkipMultiLineComment()

This API supports the product infrastructure and is not intended to be used directly from your code.

Skips a comment that spans multiple lines, and advances the pointers that identify the current position in the code.

ToString()

Returns a string that represents the current object.

(Inherited from Object)

Applies to

See also