C# Класс openABAP.Compiler.Compiler

central class of openABAP implementing following feauture: scanning and parsing the abap source file. creating an internal representation of the program using openABAP.Compiler.Command class. building the CIL file assembling the CIL file to EXE-assembly file. calling EXE-file
Показать файл Открыть проект Примеры использования класса

Открытые свойства

Свойство Тип Описание
CurrentVisibility Visibility
ProgramName string
SourceFileInfo System.IO.FileInfo

Открытые методы

Метод Описание
Compile ( ) : void

parsers the ABAP source fie and emits a CIL DLL file. the temporary source file is copied into respository

Compiler ( String filename ) : System

Initializes a new instance of the openABAP.Compiler.Compiler class.

DefineClass ( string name ) : void

initialises a new class definition by creating the System.Refelection.Emit.RypeBuilder

DefineField ( string name, TypeDescr type, bool isStatic ) : FieldBuilder
DefineMethod ( Coco t, bool isStatic ) : void

creates a MethodBuilder and stores is in this.mbList

DefineProgram ( string n ) : void

set program name and creates AssemblyBuilder, ModuleBuilder and debug Document

EmitCommand ( ExecutableCommand cmd ) : void
EndClass ( ) : void
EndMethod ( Coco t ) : void

at end the end of a method implementation we mus emit a RET command

GetErrors ( ) : string
GetVariable ( string name ) : IfVariable
ImplementClass ( string name ) : void

loads the TypeBuilder corresponding to the given name. The TypeBuilder is loaded in this.tb to implement it in following calls.

ImplementMethod ( Coco t ) : void

loads the TypeBuilder which was creted during class definition.

Run ( ) : void

starts the generated program. this means scanning all generated classes for a method named "Run" and invoke it.

Save ( ) : void

Описание методов

Compile() публичный Метод

parsers the ABAP source fie and emits a CIL DLL file. the temporary source file is copied into respository
public Compile ( ) : void
Результат void

Compiler() публичный Метод

Initializes a new instance of the openABAP.Compiler.Compiler class.
public Compiler ( String filename ) : System
filename String Filename.
Результат System

DefineClass() публичный Метод

initialises a new class definition by creating the System.Refelection.Emit.RypeBuilder
public DefineClass ( string name ) : void
name string Name.
Результат void

DefineField() публичный Метод

public DefineField ( string name, TypeDescr type, bool isStatic ) : FieldBuilder
name string
type TypeDescr
isStatic bool
Результат System.Reflection.Emit.FieldBuilder

DefineMethod() публичный Метод

creates a MethodBuilder and stores is in this.mbList
public DefineMethod ( Coco t, bool isStatic ) : void
t Coco T.
isStatic bool
Результат void

DefineProgram() публичный Метод

set program name and creates AssemblyBuilder, ModuleBuilder and debug Document
public DefineProgram ( string n ) : void
n string N.
Результат void

EmitCommand() публичный Метод

public EmitCommand ( ExecutableCommand cmd ) : void
cmd ExecutableCommand
Результат void

EndClass() публичный Метод

public EndClass ( ) : void
Результат void

EndMethod() публичный Метод

at end the end of a method implementation we mus emit a RET command
public EndMethod ( Coco t ) : void
t Coco T.
Результат void

GetErrors() публичный Метод

public GetErrors ( ) : string
Результат string

GetVariable() публичный Метод

public GetVariable ( string name ) : IfVariable
name string
Результат IfVariable

ImplementClass() публичный Метод

loads the TypeBuilder corresponding to the given name. The TypeBuilder is loaded in this.tb to implement it in following calls.
public ImplementClass ( string name ) : void
name string Name.
Результат void

ImplementMethod() публичный Метод

loads the TypeBuilder which was creted during class definition.
public ImplementMethod ( Coco t ) : void
t Coco T.
Результат void

Run() публичный Метод

starts the generated program. this means scanning all generated classes for a method named "Run" and invoke it.
public Run ( ) : void
Результат void

Save() публичный Метод

public Save ( ) : void
Результат void

Описание свойств

CurrentVisibility публичное свойство

public Visibility CurrentVisibility
Результат Visibility

ProgramName публичное свойство

public string ProgramName
Результат string

SourceFileInfo публичное свойство

public FileInfo,System.IO SourceFileInfo
Результат System.IO.FileInfo