コード例 #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
ファイル: NameConverter.cs プロジェクト: Xtremrules/dot42
 /// <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
ファイル: ClassBuilder.cs プロジェクト: rfcclub/dot42
 /// <summary>
 /// Should the given method be implemented?
 /// </summary>
 protected virtual bool ShouldImplementMethod(JvmClassLib.MethodDefinition method)
 {
     return method.IsReachable;
 }
コード例 #5
0
ファイル: ClassBuilder.cs プロジェクト: rfcclub/dot42
 /// <summary>
 /// Should the given field be implemented?
 /// </summary>
 protected virtual bool ShouldImplementField(JvmClassLib.FieldDefinition field)
 {
     return field.IsReachable;
 }