ScriptStack 1.0.0
A .NET scripting language
Lade ...
Suche ...
Keine Treffer
ScriptStack.Runtime.Function Klassenreferenz

A function, forward declared in a script. Mehr ...

Öffentliche Methoden

 Function (Executable executable, string name, List< string > parameters, Instruction entryPoint)
 
override string ToString ()
 

Propertys

Executable Executable [get]
 
string Name [get]
 
uint ParameterCount [get]
 
ReadOnlyCollection< string > Parameters [get]
 
Instruction EntryPoint [get, set]
 

Private Attribute

Executable executable
 
string name
 
List< string > parameters
 
Instruction entryPoint
 

Ausführliche Beschreibung

A function, forward declared in a script.

Beschreibung der Konstruktoren und Destruktoren

◆ Function()

ScriptStack.Runtime.Function.Function ( Executable executable,
string name,
List< string > parameters,
Instruction entryPoint )
29 {
30
31 this.executable = executable;
32
33 this.name = name;
34
35 this.parameters = new List<string>(parameters);
36
37 this.entryPoint = entryPoint;
38
39 }
Executable executable
Definition Function.cs:19
string name
Definition Function.cs:20
Instruction entryPoint
Definition Function.cs:22
List< string > parameters
Definition Function.cs:21

Benutzt ScriptStack.Runtime.Function.entryPoint, ScriptStack.Runtime.Function.executable, ScriptStack.Runtime.Function.name und ScriptStack.Runtime.Function.parameters.

Dokumentation der Elementfunktionen

◆ ToString()

override string ScriptStack.Runtime.Function.ToString ( )
42 {
43
44 StringBuilder sb = new StringBuilder();
45
46 sb.Append(name + "@" + entryPoint.Address.ToString("X8"));
47
48 sb.Append("(");
49
50 for (int i = 0; i < parameters.Count; i++)
51 {
52
53 if (i > 0)
54 sb.Append(", ");
55
56 sb.Append(parameters[i]);
57
58 }
59
60 sb.Append(") ");
61
62 return sb.ToString();
63
64 }
uint Address
Definition Instruction.cs:126

Benutzt ScriptStack.Runtime.Instruction.Address, ScriptStack.Runtime.Function.entryPoint, ScriptStack.Runtime.Function.name und ScriptStack.Runtime.Function.parameters.

Dokumentation der Datenelemente

◆ entryPoint

Instruction ScriptStack.Runtime.Function.entryPoint
private

◆ executable

Executable ScriptStack.Runtime.Function.executable
private

◆ name

string ScriptStack.Runtime.Function.name
private

◆ parameters

List<string> ScriptStack.Runtime.Function.parameters
private

Dokumentation der Propertys

◆ EntryPoint

Instruction ScriptStack.Runtime.Function.EntryPoint
getset
87 {
88 get { return entryPoint; }
89 set { entryPoint = value; }
90 }

Wird benutzt von ScriptStack.Runtime.Operand.ToString().

◆ Executable

Executable ScriptStack.Runtime.Function.Executable
get
67 {
68 get { return executable; }
69 }

◆ Name

string ScriptStack.Runtime.Function.Name
get
72 {
73 get { return name; }
74 }

◆ ParameterCount

uint ScriptStack.Runtime.Function.ParameterCount
get
77 {
78 get { return (uint) parameters.Count; }
79 }

◆ Parameters

ReadOnlyCollection<string> ScriptStack.Runtime.Function.Parameters
get
82 {
83 get { return parameters.AsReadOnly(); }
84 }

Die Dokumentation für diese Klasse wurde erzeugt aufgrund der Datei: