示例#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);
 }
示例#2
0
 /// <summary>
 /// Gets the converted name of the given field.
 /// </summary>
 public static string GetConvertedName(JvmClassLib.FieldDefinition field)
 {
     var name = field.Name;
     return name;
 }
示例#3
0
 /// <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);
 }
示例#4
0
 /// <summary>
 /// Should the given method be implemented?
 /// </summary>
 protected virtual bool ShouldImplementMethod(JvmClassLib.MethodDefinition method)
 {
     return method.IsReachable;
 }
示例#5
0
 /// <summary>
 /// Should the given field be implemented?
 /// </summary>
 protected virtual bool ShouldImplementField(JvmClassLib.FieldDefinition field)
 {
     return field.IsReachable;
 }