C# 클래스 Rhino.Commonjs.Module.ModuleScript

파일 보기 프로젝트 열기: hazzik/Rhino.Net 1 사용 예제들

공개 메소드들

메소드 설명
GetBase ( ) : Uri

Returns the base URI from which this module source was loaded, or null if it was loaded from an absolute URI.

Returns the base URI from which this module source was loaded, or null if it was loaded from an absolute URI.

GetScript ( ) : System.Script

Returns the script object representing the code of the module.

Returns the script object representing the code of the module.

GetUri ( ) : Uri

Returns the URI of the module.

Returns the URI of the module.

IsSandboxed ( ) : bool

Returns true if this script has a base URI and has a source URI that is contained within that base URI.

Returns true if this script has a base URI and has a source URI that is contained within that base URI.

ModuleScript ( System.Script script, Uri uri, Uri @base ) : System

Creates a new CommonJS module.

Creates a new CommonJS module.

메소드 상세

GetBase() 공개 메소드

Returns the base URI from which this module source was loaded, or null if it was loaded from an absolute URI.
Returns the base URI from which this module source was loaded, or null if it was loaded from an absolute URI.
public GetBase ( ) : Uri
리턴 System.Uri

GetScript() 공개 메소드

Returns the script object representing the code of the module.
Returns the script object representing the code of the module.
public GetScript ( ) : System.Script
리턴 System.Script

GetUri() 공개 메소드

Returns the URI of the module.
Returns the URI of the module.
public GetUri ( ) : Uri
리턴 System.Uri

IsSandboxed() 공개 메소드

Returns true if this script has a base URI and has a source URI that is contained within that base URI.
Returns true if this script has a base URI and has a source URI that is contained within that base URI.
public IsSandboxed ( ) : bool
리턴 bool

ModuleScript() 공개 메소드

Creates a new CommonJS module.
Creates a new CommonJS module.
public ModuleScript ( System.Script script, Uri uri, Uri @base ) : System
script System.Script the script representing the code of the module.
uri System.Uri the URI of the module.
@base System.Uri
리턴 System