Exemple #1
0
 /// <summary>
 /// Default ctor
 /// </summary>
 private MethodBuilder(MethodDefinition javaMethod, TypeBuilder declaringTypeBuilder, SignedByteMode signedByteMode)
 {
     this.javaMethod           = javaMethod;
     this.declaringTypeBuilder = declaringTypeBuilder;
     this.signedByteMode       = signedByteMode;
     this.addJavaPrefix        = signedByteMode == SignedByteMode.HasUnsignedPartnerOnlyInReturnType;
 }
Exemple #2
0
 /// <summary>
 /// Default ctor
 /// </summary>
 private MethodBuilder(MethodDefinition javaMethod, TypeBuilder declaringTypeBuilder, SignedByteMode signedByteMode)
 {
     this.javaMethod = javaMethod;
     this.declaringTypeBuilder = declaringTypeBuilder;
     this.signedByteMode = signedByteMode;
     this.addJavaPrefix = signedByteMode == SignedByteMode.HasUnsignedPartnerOnlyInReturnType;
 }
 /// <summary>
 /// Default ctor
 /// </summary>
 public NetMethodDefinition(string name, JvmClassLib.MethodDefinition javaMethod, NetTypeDefinition declaringType, TargetFramework target, SignedByteMode signMode, string createReason)
 {
     if (name == null)
         throw new ArgumentNullException("name");
     if (declaringType == null)
         throw new ArgumentNullException("declaringType");
     if (target == null)
         throw new ArgumentNullException("target");
     Name = name;
     DeclaringType = declaringType;
     this.javaMethod = javaMethod; // Can be null
     this.target = target;
     this.signMode = signMode;
     this.createReason = createReason;
     overrides = new OverrideCollection(this);
 }
 /// <summary>
 /// Default ctor
 /// </summary>
 public NetMethodDefinition(string name, JvmClassLib.MethodDefinition javaMethod, NetTypeDefinition declaringType, TargetFramework target, SignedByteMode signMode, string createReason)
 {
     if (name == null)
     {
         throw new ArgumentNullException("name");
     }
     if (declaringType == null)
     {
         throw new ArgumentNullException("declaringType");
     }
     if (target == null)
     {
         throw new ArgumentNullException("target");
     }
     Name              = name;
     DeclaringType     = declaringType;
     this.javaMethod   = javaMethod; // Can be null
     this.target       = target;
     this.signMode     = signMode;
     this.createReason = createReason;
     overrides         = new OverrideCollection(this);
 }