示例#1
0
 /// <summary>
 /// Create the current type as class definition.
 /// </summary>
 protected override void CreateClassDefinition(DexTargetPackage targetPackage, ClassDefinition parent, TypeDefinition parentType, XTypeDefinition parentXType)
 {
     base.CreateClassDefinition(targetPackage, parent, parentType, parentXType);
     Class.AccessFlags &= ~AccessFlags.Final;
     Class.IsAbstract = true;
     //Class.IsInterface = true;
     // Record in compiler
     delegateType = new DelegateType(Compiler, XType, Class, targetPackage.DexFile, targetPackage.NameConverter);
     Compiler.Record(delegateType);
 }
示例#2
0
 /// <summary>
 /// Record the given delegate type.
 /// </summary>
 internal void Record(DelegateType delegateType)
 {
     delegateTypes.Add(delegateType.Type, delegateType);
 }