Example #1
0
 /// <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);
 }
Example #3
0
 /// <summary>
 /// Should the given method be implemented?
 /// </summary>
 protected virtual bool ShouldImplementMethod(JvmClassLib.MethodDefinition method)
 {
     return(method.IsReachable);
 }