MCPcopy Index your code
hub / github.com/classgraph/classgraph / TypeParameter

Class TypeParameter

src/main/java/io/github/classgraph/TypeParameter.java:43–280  ·  view source on GitHub ↗

A type parameter.

Source from the content-addressed store, hash-verified

41
42/** A type parameter. */
43public final class TypeParameter extends HierarchicalTypeSignature {
44 /** The type parameter identifier. */
45 final String name;
46
47 /** Class bound -- may be null. */
48 final ReferenceTypeSignature classBound;
49
50 /** Interface bounds -- may be empty. */
51 final List<ReferenceTypeSignature> interfaceBounds;
52
53 // -------------------------------------------------------------------------------------------------------------
54
55 /**
56 * Constructor.
57 *
58 * @param identifier
59 * The type parameter identifier.
60 * @param classBound
61 * The type parameter class bound.
62 * @param interfaceBounds
63 * The type parameter interface bound.
64 */
65 protected TypeParameter(final String identifier, final ReferenceTypeSignature classBound,
66 final List<ReferenceTypeSignature> interfaceBounds) {
67 super();
68 this.name = identifier;
69 this.classBound = classBound;
70 this.interfaceBounds = interfaceBounds;
71 }
72
73 /**
74 * Get the type parameter identifier.
75 *
76 * @return The type parameter identifier.
77 */
78 public String getName() {
79 return name;
80 }
81
82 /**
83 * Get the type parameter class bound.
84 *
85 * @return The type parameter class bound. May be null.
86 */
87 public ReferenceTypeSignature getClassBound() {
88 return classBound;
89 }
90
91 /**
92 * Get the type parameter interface bound(s).
93 *
94 * @return Get the type parameter interface bound(s), which may be the empty list.
95 */
96 public List<ReferenceTypeSignature> getInterfaceBounds() {
97 return interfaceBounds;
98 }
99
100 @Override

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…