C# Class 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
Afficher le fichier Open project: bi-tm/openABAP Class Usage Examples

Méthodes publiques

Свойство Type Description
CurrentVisibility Visibility
ProgramName string
SourceFileInfo System.IO.FileInfo

Méthodes publiques

Méthode Description
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

Method Details

Compile() public méthode

parsers the ABAP source fie and emits a CIL DLL file. the temporary source file is copied into respository
public Compile ( ) : void
Résultat void

Compiler() public méthode

Initializes a new instance of the openABAP.Compiler.Compiler class.
public Compiler ( String filename ) : System
filename String Filename.
Résultat System

DefineClass() public méthode

initialises a new class definition by creating the System.Refelection.Emit.RypeBuilder
public DefineClass ( string name ) : void
name string Name.
Résultat void

DefineField() public méthode

public DefineField ( string name, TypeDescr type, bool isStatic ) : FieldBuilder
name string
type TypeDescr
isStatic bool
Résultat System.Reflection.Emit.FieldBuilder

DefineMethod() public méthode

creates a MethodBuilder and stores is in this.mbList
public DefineMethod ( Coco t, bool isStatic ) : void
t Coco T.
isStatic bool
Résultat void

DefineProgram() public méthode

set program name and creates AssemblyBuilder, ModuleBuilder and debug Document
public DefineProgram ( string n ) : void
n string N.
Résultat void

EmitCommand() public méthode

public EmitCommand ( ExecutableCommand cmd ) : void
cmd ExecutableCommand
Résultat void

EndClass() public méthode

public EndClass ( ) : void
Résultat void

EndMethod() public méthode

at end the end of a method implementation we mus emit a RET command
public EndMethod ( Coco t ) : void
t Coco T.
Résultat void

GetErrors() public méthode

public GetErrors ( ) : string
Résultat string

GetVariable() public méthode

public GetVariable ( string name ) : IfVariable
name string
Résultat IfVariable

ImplementClass() public méthode

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.
Résultat void

ImplementMethod() public méthode

loads the TypeBuilder which was creted during class definition.
public ImplementMethod ( Coco t ) : void
t Coco T.
Résultat void

Run() public méthode

starts the generated program. this means scanning all generated classes for a method named "Run" and invoke it.
public Run ( ) : void
Résultat void

Save() public méthode

public Save ( ) : void
Résultat void

Property Details

CurrentVisibility public_oe property

public Visibility CurrentVisibility
Résultat Visibility

ProgramName public_oe property

public string ProgramName
Résultat string

SourceFileInfo public_oe property

public FileInfo,System.IO SourceFileInfo
Résultat System.IO.FileInfo