C# Class Fanx.Emit.FTypeEmit

FTypeEmit translates FType fcode to IL.
Afficher le fichier Open project: xored/f4 Class Usage Examples

Méthodes publiques

Свойство Type Description
baseClassName string
className string
interfaces string[]

Méthodes publiques

Méthode Description
emit ( ) : void

Emit to IL assembly.

emitAndLoad ( FType ftype ) : System.Type[]
emitPod ( FPod pod, bool load, string path ) : Assembly
init ( string thisClass, string baseClass, string interfaces, int flags ) : void
isEmitted ( string podName ) : bool

Return true if this pod has already been emitted.

Méthodes protégées

Méthode Description
@base ( ) : string

Return the base type for this type.

FTypeEmit ( Emitter emitter, Type parent, FType type ) : System.Collections
emit ( FField f ) : void

Emit a field.

emit ( FMethod m ) : void

Emit a method.

emitInstanceInit ( FMethod m ) : void
emitType ( ) : void

Emit the type information for this type.

mixins ( ) : string[]

Private Methods

Méthode Description
emitAttributes ( FAttrs attrs ) : void

Emit a attribute.

emitMixinRouters ( ) : void
emitMixinRouters ( Type type ) : void
emitStaticInit ( FMethod m ) : void
emitTypeConstFields ( ) : void
fieldFlags ( int fflags ) : PERWAPI.FieldAttr

Map Fantom flags to .NET field flags. Note we emit protected as public and internal/private as package-private so that we don't need to deal with scope issues for accessors like closures and helper classes.

findMixins ( Type t, Hashtable acc ) : void
name ( int index ) : string

Map a simple name index to it's string value

nname ( int index ) : string

Given a Fantom qname index, map to a .NET type name: sys/Bool

preview ( ) : void
unzipToTemp ( FPod pod, string filename ) : void

Unzip the file if it exists into the lib/tmp dir

Method Details

@base() protected abstract méthode

Return the base type for this type.
protected abstract @base ( ) : string
Résultat string

FTypeEmit() protected méthode

protected FTypeEmit ( Emitter emitter, Type parent, FType type ) : System.Collections
emitter Emitter
parent Fan.Sys.Type
type Fanx.Fcode.FType
Résultat System.Collections

emit() public méthode

Emit to IL assembly.
public emit ( ) : void
Résultat void

emit() protected méthode

Emit a field.
protected emit ( FField f ) : void
f Fanx.Fcode.FField
Résultat void

emit() protected méthode

Emit a method.
protected emit ( FMethod m ) : void
m Fanx.Fcode.FMethod
Résultat void

emitAndLoad() public static méthode

public static emitAndLoad ( FType ftype ) : System.Type[]
ftype Fanx.Fcode.FType
Résultat System.Type[]

emitInstanceInit() protected méthode

protected emitInstanceInit ( FMethod m ) : void
m Fanx.Fcode.FMethod
Résultat void

emitPod() public static méthode

public static emitPod ( FPod pod, bool load, string path ) : Assembly
pod Fanx.Fcode.FPod
load bool
path string
Résultat System.Reflection.Assembly

emitType() protected abstract méthode

Emit the type information for this type.
protected abstract emitType ( ) : void
Résultat void

init() public méthode

public init ( string thisClass, string baseClass, string interfaces, int flags ) : void
thisClass string
baseClass string
interfaces string
flags int
Résultat void

isEmitted() public static méthode

Return true if this pod has already been emitted.
public static isEmitted ( string podName ) : bool
podName string
Résultat bool

mixins() protected méthode

protected mixins ( ) : string[]
Résultat string[]

Property Details

baseClassName public_oe property

public string baseClassName
Résultat string

className public_oe property

public string className
Résultat string

interfaces public_oe property

public string[] interfaces
Résultat string[]