Lines Matching refs:reference
1319 private boolean isGeneric(ITypeReference reference) {
1320 if (reference instanceof IParameterizedType
1321 || reference instanceof ITypeVariableReference
1322 || reference instanceof IWildcardType) {
1325 if (reference instanceof IArrayType) {
1326 return isGeneric(((IArrayType) reference).getComponentType());
1331 private ITypeReference getErasedType(ITypeReference reference) {
1333 if (reference instanceof IParameterizedType) {
1334 return ((IParameterizedType) reference).getRawType();
1336 if (reference instanceof ITypeVariableReference) {
1338 ((ITypeVariableReference) reference)
1343 if (reference instanceof IWildcardType) {
1344 return getErasedType(((IWildcardType) reference).getUpperBounds()
1347 if (reference instanceof IArrayType) {
1349 return new SigArrayType(getErasedType(((IArrayType) reference)
1352 if (reference instanceof IPrimitiveType) {
1353 return reference;
1355 if (reference instanceof IClassReference) {
1356 return reference;
1358 throw new IllegalArgumentException("Unexpected type: " + reference);