forked from dotnet/java-interop
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathJavaTypeParameter.cs
More file actions
33 lines (26 loc) · 945 Bytes
/
JavaTypeParameter.cs
File metadata and controls
33 lines (26 loc) · 945 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
using System;
using System.Collections.Generic;
namespace Java.Interop.Tools.JavaTypeSystem.Models
{
public class JavaTypeParameter : IJavaResolvable
{
public string Name { get; set; }
public JavaTypeParameters Parent { get; }
public string? ExtendedJniClassBound { get; set; }
public string? ExtendedClassBound { get; set; }
public string? ExtendedInterfaceBounds { get; set; }
public string? ExtendedJniInterfaceBounds { get; set; }
public List<JavaGenericConstraint> GenericConstraints { get; } = new List<JavaGenericConstraint> ();
public JavaTypeParameter (string name, JavaTypeParameters parent)
{
Name = name;
Parent = parent;
}
public void Resolve (JavaTypeCollection types, ICollection<JavaUnresolvableModel> unresolvables)
{
// TODO: Resolve generic constraints
//var type_parameters = GetApplicableTypeParameters ().ToArray ();
}
public override string ToString () => Name ?? "";
}
}