public class ElementOrComponentTypeComputer extends TypeReferenceVisitorWithResult<LightweightTypeReference>
T of java.lang.Iterable<T>. If the queried type is an
array, the component type of the array is returned.
Clients will usually use the static method compute(LightweightTypeReference, ITypeReferenceOwner)
but are free to override this class and call the constructor directly and pass it as a visitor
to the processed type reference.| Modifier | Constructor and Description |
|---|---|
protected |
ElementOrComponentTypeComputer(ITypeReferenceOwner owner) |
| Modifier and Type | Method and Description |
|---|---|
static LightweightTypeReference |
compute(LightweightTypeReference iterableOrArray,
ITypeReferenceOwner owner) |
protected LightweightTypeReference |
doVisitAnyTypeReference(AnyTypeReference reference) |
LightweightTypeReference |
doVisitArrayTypeReference(ArrayTypeReference reference) |
protected LightweightTypeReference |
doVisitCompoundTypeReference(CompoundTypeReference reference) |
LightweightTypeReference |
doVisitParameterizedTypeReference(ParameterizedTypeReference reference) |
protected LightweightTypeReference |
doVisitUnboundTypeReference(UnboundTypeReference reference) |
protected LightweightTypeReference |
doVisitUnknownTypeReference(UnknownTypeReference reference) |
protected ITypeReferenceOwner |
getOwner() |
doVisitFunctionTypeReference, doVisitInnerFunctionTypeReference, doVisitInnerTypeReference, doVisitMultiTypeReference, doVisitSynonymTypeReference, doVisitTypeReference, doVisitWildcardTypeReferenceprotected ElementOrComponentTypeComputer(ITypeReferenceOwner owner)
public static LightweightTypeReference compute(LightweightTypeReference iterableOrArray, ITypeReferenceOwner owner)
public LightweightTypeReference doVisitParameterizedTypeReference(ParameterizedTypeReference reference)
doVisitParameterizedTypeReference in class TypeReferenceVisitorWithResult<LightweightTypeReference>protected LightweightTypeReference doVisitAnyTypeReference(AnyTypeReference reference)
doVisitAnyTypeReference in class TypeReferenceVisitorWithResult<LightweightTypeReference>protected LightweightTypeReference doVisitUnknownTypeReference(UnknownTypeReference reference)
doVisitUnknownTypeReference in class TypeReferenceVisitorWithResult<LightweightTypeReference>public LightweightTypeReference doVisitArrayTypeReference(ArrayTypeReference reference)
doVisitArrayTypeReference in class TypeReferenceVisitorWithResult<LightweightTypeReference>protected LightweightTypeReference doVisitUnboundTypeReference(UnboundTypeReference reference)
doVisitUnboundTypeReference in class TypeReferenceVisitorWithResult<LightweightTypeReference>protected LightweightTypeReference doVisitCompoundTypeReference(CompoundTypeReference reference)
doVisitCompoundTypeReference in class TypeReferenceVisitorWithResult<LightweightTypeReference>protected ITypeReferenceOwner getOwner()