Sheep
 All Classes Namespaces Files Functions Variables Enumerations Enumerator Macros
Public Member Functions | List of all members
Sheep::IScript Class Referenceabstract

Interface to a Script object. More...

#include <sheepcpp.h>

Public Member Functions

virtual void Release ()=0
 
virtual SheepLanguageVersion GetLanguageVersion ()=0
 Gets the language version with which this script was created.
 
virtual ScriptStatus GetStatus ()=0
 Gets the status of the script.
 
virtual int GetNumMessages ()=0
 Gets the number of messages that were generated during compilation.
 
virtual const char * GetMessage (int index)=0
 Gets the message text of the particular message generated during compilation.
 
virtual int GetMessageLineNumber (int index)=0
 Gets the line number for which the particular message was generated.
 
virtual IDisassemblyGenerateDisassembly ()=0
 
virtual ICompiledScriptOutputGenerateCompiledOutput ()=0
 

Detailed Description

Interface to a Script object.

Member Function Documentation

virtual ICompiledScriptOutput* Sheep::IScript::GenerateCompiledOutput ( )
pure virtual

Generates compiled bytecode that can be written to a file and read later by CreateScriptFromBytecode()

virtual IDisassembly* Sheep::IScript::GenerateDisassembly ( )
pure virtual

Generates a disassembly

Returns
An IDisassemby object, or null if the script's is not ScriptStatus::Success
virtual void Sheep::IScript::Release ( )
pure virtual

Releases the Script, decreasing its reference count by 1.

This is safe to call even if the Virtual Machine is still executing the script. Each IExecutionContext that is executing a particular IScript holds its own reference to the IScript.


The documentation for this class was generated from the following file: