C# Class ZeroInstall.Publish.EntryPoints.InterpretedScript

A plain text script that is executed by a runtime interpreter.
Inheritance: Candidate
显示文件 Open project: 0install/0install-win Class Usage Examples

Private Properties

Property Type Description
Analyze bool

Public Methods

Method Description
CreateCommand ( ) : Command
Equals ( object obj ) : bool
GetHashCode ( ) : int

Protected Methods

Method Description
Equals ( InterpretedScript other ) : bool
HasShebang ( [ file, [ interpreter ) : bool

Determines whether a file is executable and has a shebang line pointing to a specific interpreter.

Private Methods

Method Description
Analyze ( DirectoryInfo baseDirectory, FileInfo file ) : bool

Method Details

CreateCommand() public method

public CreateCommand ( ) : Command
return Command

Equals() protected method

protected Equals ( InterpretedScript other ) : bool
other InterpretedScript
return bool

Equals() public method

public Equals ( object obj ) : bool
obj object
return bool

GetHashCode() public method

public GetHashCode ( ) : int
return int

HasShebang() protected method

Determines whether a file is executable and has a shebang line pointing to a specific interpreter.
protected HasShebang ( [ file, [ interpreter ) : bool
file [ The file to analyze.
interpreter [ The name of the interpreter to search for (e.g. 'python').
return bool