public static class TypeList.Generic.OfConstructorExceptionTypes extends TypeList.Generic.AbstractBase
Modifier and Type | Class and Description |
---|---|
private static class |
TypeList.Generic.OfConstructorExceptionTypes.TypeProjection
A projection of a specific exception type.
|
TypeList.Generic.AbstractBase, TypeList.Generic.Empty, TypeList.Generic.Explicit, TypeList.Generic.ForDetachedTypes, TypeList.Generic.ForLoadedTypes, TypeList.Generic.OfConstructorExceptionTypes, TypeList.Generic.OfLoadedInterfaceTypes, TypeList.Generic.OfMethodExceptionTypes
Modifier and Type | Field and Description |
---|---|
private java.lang.reflect.Constructor<?> |
constructor
The constructor of which the exception types are represented.
|
Constructor and Description |
---|
OfConstructorExceptionTypes(java.lang.reflect.Constructor<?> constructor)
Creates a new lazy projection of a constructor's exception types.
|
Modifier and Type | Method and Description |
---|---|
TypeList |
asErasures()
Returns a list of the generic types' erasures.
|
TypeDescription.Generic |
get(int index) |
int |
size() |
accept, asRawTypes, asTokenList, getStackSize, wrap
filter, getOnly, subList
add, add, addAll, clear, equals, hashCode, indexOf, iterator, lastIndexOf, listIterator, listIterator, remove, removeRange, set
addAll, contains, containsAll, isEmpty, remove, removeAll, retainAll, toArray, toArray, toString
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
filter, getOnly, subList
private final java.lang.reflect.Constructor<?> constructor
public OfConstructorExceptionTypes(java.lang.reflect.Constructor<?> constructor)
constructor
- The constructor of which the exception types are represented.public TypeDescription.Generic get(int index)
get
in interface java.util.List<TypeDescription.Generic>
get
in class java.util.AbstractList<TypeDescription.Generic>
public int size()
size
in interface java.util.Collection<TypeDescription.Generic>
size
in interface java.util.List<TypeDescription.Generic>
size
in class java.util.AbstractCollection<TypeDescription.Generic>
public TypeList asErasures()
asErasures
in interface TypeList.Generic
asErasures
in class TypeList.Generic.AbstractBase