JSParser JSParser JSParser JSParser Class

定义

分析 JScript 代码。Parses JScript code. 此类属于扫描和分析类别。This class belongs to the scanning and parsing category.

此 API 支持产品基础结构,不能在代码中直接使用。

public ref class JSParser
public class JSParser
type JSParser = class
Public Class JSParser
继承
JSParserJSParserJSParserJSParser

构造函数

JSParser(Context) JSParser(Context) JSParser(Context) JSParser(Context)

初始化 JSParser 类的新实例,并指定要分析的源代码。Initializes a new instance of the JSParser class, specifying the source code to parse.

方法

Equals(Object) Equals(Object) Equals(Object) Equals(Object)

确定指定的对象是否等于当前对象。Determines whether the specified object is equal to the current object.

(Inherited from Object)
GetHashCode() GetHashCode() GetHashCode() GetHashCode()

作为默认哈希函数。Serves as the default hash function.

(Inherited from Object)
GetType() GetType() GetType() GetType()

获取当前实例的 TypeGets the Type of the current instance.

(Inherited from Object)
MemberwiseClone() MemberwiseClone() MemberwiseClone() MemberwiseClone()

创建当前 Object 的浅表副本。Creates a shallow copy of the current Object.

(Inherited from Object)
Parse() Parse() Parse() Parse()

分析源代码。Parses the source code.

ParseEvalBody() ParseEvalBody() ParseEvalBody() ParseEvalBody()

分析源代码。Parses the source code. 如果源代码位于 eval 方法调用内部,请使用此方法,而不是 Parse()Use this method instead of Parse() when the source code is inside an eval method call.

ToString() ToString() ToString() ToString()

返回表示当前对象的字符串。Returns a string that represents the current object.

(Inherited from Object)

适用于

另请参阅