JSScanner Class

 

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

Scans JScript code searching for individual units of code, or tokens. This class belongs to the scanning and parsing category. For more information about scanning and parsing, see Create a Language Compiler for the .NET Framework.

Namespace:   Microsoft.JScript
Assembly:  Microsoft.JScript (in Microsoft.JScript.dll)

System.Object
  Microsoft.JScript.JSScanner

public sealed class JSScanner

NameDescription
System_CAPS_pubmethodJSScanner()

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.

System_CAPS_pubmethodJSScanner(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.

NameDescription
System_CAPS_pubmethodEquals(Object)

Determines whether the specified object is equal to the current object.(Inherited from Object.)

System_CAPS_pubmethodGetCurrentLine()

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.

System_CAPS_pubmethodGetCurrentPosition(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.

System_CAPS_pubmethodGetHashCode()

Serves as the default hash function. (Inherited from Object.)

System_CAPS_pubmethodGetNextToken()

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.

System_CAPS_pubmethodGetSourceCode()

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.

System_CAPS_pubmethodGetStartLinePosition()

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.

System_CAPS_pubmethodGetStringLiteral()

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.

System_CAPS_pubmethodGetType()

Gets the Type of the current instance.(Inherited from Object.)

System_CAPS_pubmethodGotEndOfLine()

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.

System_CAPS_pubmethodSystem_CAPS_staticIsKeyword(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.

System_CAPS_pubmethodSystem_CAPS_staticIsOperator(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.

System_CAPS_pubmethodSetAuthoringMode(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.

System_CAPS_pubmethodSetSource(Context)

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

System_CAPS_pubmethodSkipMultiLineComment()

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.

System_CAPS_pubmethodToString()

Returns a string that represents the current object.(Inherited from Object.)

.NET Framework
Available since 1.1

Any public static ( Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.

Return to top
Show: