/// <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> /// Gets the converted name of the given field. /// </summary> public static string GetConvertedName(JvmClassLib.FieldDefinition field) { var name = field.Name; return name; }
/// <summary> /// Make a .NET type reference for a java type reference. /// </summary> private XTypeReference AsTypeReference(JvmClassLib.TypeReference javaRef, XTypeUsageFlags usageFlags) { return XBuilder.AsTypeReference(module, javaRef, usageFlags); }
/// <summary> /// Should the given method be implemented? /// </summary> protected virtual bool ShouldImplementMethod(JvmClassLib.MethodDefinition method) { return method.IsReachable; }
/// <summary> /// Should the given field be implemented? /// </summary> protected virtual bool ShouldImplementField(JvmClassLib.FieldDefinition field) { return field.IsReachable; }