final long pos, final Scope scope) { MissingTypesGuesser missingTypesConverter = new MissingTypesGuesser(this); MissingTypesGuesser.GuessedTypeRequestor substitutionRequestor = new MissingTypesGuesser.GuessedTypeRequestor() { missingTypesConverter.guess(typeRef, scope, substitutionRequestor);
private TypeReference convert(TypeReference typeRef) { if (typeRef instanceof ParameterizedSingleTypeReference) { return convert((ParameterizedSingleTypeReference)typeRef); } else if(typeRef instanceof ParameterizedQualifiedTypeReference) { return convert((ParameterizedQualifiedTypeReference)typeRef); } else if (typeRef instanceof ArrayTypeReference) { return convert((ArrayTypeReference)typeRef); } else if(typeRef instanceof ArrayQualifiedTypeReference) { return convert((ArrayQualifiedTypeReference)typeRef); } else if(typeRef instanceof Wildcard) { return convert((Wildcard)typeRef); } else if (typeRef instanceof SingleTypeReference) { return convert((SingleTypeReference)typeRef); } else if (typeRef instanceof QualifiedTypeReference) { return convert((QualifiedTypeReference)typeRef); } return null; }
this.combinationsCount = 1; TypeReference convertedType = convert(typeRef); QualifiedTypeReference[] substituedTypeNodes = getSubstituedTypes(); int length = substituedTypeNodes.length; char[][][] originalTypeNames = new char[substituedTypeNodes.length][][]; for (int i = 0; i < substituedTypeNodes.length; i++) { subtitutions[i] = getSubstitution(substituedTypeNodes[i]); originalTypeNames[i] = getOriginal(substituedTypeNodes[i]); for (int i = 0; i < this.combinationsCount; i++) { nextSubstitution(substituedTypeNodes, subtitutions, substitutionsIndexes); int[] missingElementsEnds = new int[length]; if(computeMissingElements( substituedTypeNodes, originalTypeNames,
TypeReference[] convertedTypeArguments = new TypeReference[length]; for (int i = 0; i < length; i++) { convertedTypeArguments[i] = convert(typeArguments[i]); if(convertedTypeArguments[i] == null) return null; } else if((typeRef.resolvedType.problemId() & ProblemReasons.NotFound) != 0) { char[][] typeName = typeRef.getTypeName(); char[][][] typeNames = findTypeNames(typeName); if(typeNames == null || typeNames.length == 0) return null;
private TypeReference convert(SingleTypeReference typeRef) { if (typeRef.resolvedType != null) { if (typeRef.resolvedType.isValidBinding()) { SingleTypeReference convertedType = new SingleTypeReference(typeRef.token, 0); convertedType.sourceStart = typeRef.sourceStart; convertedType.sourceEnd = typeRef.sourceEnd; return convertedType; } else if((typeRef.resolvedType.problemId() & ProblemReasons.NotFound) != 0) { char[][] typeName = typeRef.getTypeName(); char[][][] typeNames = findTypeNames(typeName); if(typeNames == null || typeNames.length == 0) return null; QualifiedTypeReference convertedType = new QualifiedTypeReference(typeNames[0], new long[typeNames[0].length]); convertedType.sourceStart = typeRef.sourceStart; convertedType.sourceEnd = typeRef.sourceEnd; this.substituedTypes.put(convertedType, typeNames); this.originalTypes.put(convertedType, typeName); this.combinationsCount *= typeNames.length; return convertedType; } } return null; }
this.combinationsCount = 1; TypeReference convertedType = convert(typeRef); QualifiedTypeReference[] substituedTypeNodes = getSubstituedTypes(); int length = substituedTypeNodes.length; char[][][] originalTypeNames = new char[substituedTypeNodes.length][][]; for (int i = 0; i < substituedTypeNodes.length; i++) { subtitutions[i] = getSubstitution(substituedTypeNodes[i]); originalTypeNames[i] = getOriginal(substituedTypeNodes[i]); for (int i = 0; i < this.combinationsCount; i++) { nextSubstitution(substituedTypeNodes, subtitutions, substitutionsIndexes); int[] missingElementsEnds = new int[length]; if(computeMissingElements( substituedTypeNodes, originalTypeNames,
TypeReference[] convertedTypeArguments = new TypeReference[length]; for (int i = 0; i < length; i++) { convertedTypeArguments[i] = convert(typeArguments[i]); if(convertedTypeArguments[i] == null) return null; } else if((typeRef.resolvedType.problemId() & ProblemReasons.NotFound) != 0) { char[][] typeName = typeRef.getTypeName(); char[][][] typeNames = findTypeNames(typeName); if(typeNames == null || typeNames.length == 0) return null;
private TypeReference convert(QualifiedTypeReference typeRef) { if (typeRef.resolvedType != null) { if (typeRef.resolvedType.isValidBinding()) { QualifiedTypeReference convertedType = new QualifiedTypeReference(typeRef.tokens, typeRef.sourcePositions); convertedType.sourceStart = typeRef.sourceStart; convertedType.sourceEnd = typeRef.sourceEnd; return convertedType; } else if((typeRef.resolvedType.problemId() & ProblemReasons.NotFound) != 0) { // only the first token must be resolved if(((ReferenceBinding)typeRef.resolvedType).compoundName.length != 1) return null; char[][] typeName = typeRef.getTypeName(); char[][][] typeNames = findTypeNames(typeName); if(typeNames == null || typeNames.length == 0) return null; QualifiedTypeReference convertedType = new QualifiedTypeReference(typeNames[0], new long[typeNames[0].length]); convertedType.sourceStart = typeRef.sourceStart; convertedType.sourceEnd = (int)(typeRef.sourcePositions[0] & 0x00000000FFFFFFFFL); this.substituedTypes.put(convertedType, typeNames); this.originalTypes.put(convertedType, typeName); this.combinationsCount *= typeNames.length; return convertedType; } } return null; }
this.combinationsCount = 1; TypeReference convertedType = convert(typeRef); QualifiedTypeReference[] substituedTypeNodes = getSubstituedTypes(); int length = substituedTypeNodes.length; char[][][] originalTypeNames = new char[substituedTypeNodes.length][][]; for (int i = 0; i < substituedTypeNodes.length; i++) { subtitutions[i] = getSubstitution(substituedTypeNodes[i]); originalTypeNames[i] = getOriginal(substituedTypeNodes[i]); for (int i = 0; i < this.combinationsCount; i++) { nextSubstitution(substituedTypeNodes, subtitutions, substitutionsIndexes); int[] missingElementsEnds = new int[length]; if(computeMissingElements( substituedTypeNodes, originalTypeNames,
final long pos, final Scope scope) { MissingTypesGuesser missingTypesConverter = new MissingTypesGuesser(this); MissingTypesGuesser.GuessedTypeRequestor substitutionRequestor = new MissingTypesGuesser.GuessedTypeRequestor() { missingTypesConverter.guess(typeRef, scope, substitutionRequestor);
TypeReference[] convertedTypeArguments = new TypeReference[length]; for (int i = 0; i < length; i++) { convertedTypeArguments[i] = convert(typeArguments[i]); if(convertedTypeArguments[i] == null) return null; } else if((typeRef.resolvedType.problemId() & ProblemReasons.NotFound) != 0) { char[][] typeName = typeRef.getTypeName(); char[][][] typeNames = findTypeNames(typeName); if(typeNames == null || typeNames.length == 0) return null;
private TypeReference convert(SingleTypeReference typeRef) { if (typeRef.resolvedType != null) { if (typeRef.resolvedType.isValidBinding()) { SingleTypeReference convertedType = new SingleTypeReference(typeRef.token, 0); convertedType.sourceStart = typeRef.sourceStart; convertedType.sourceEnd = typeRef.sourceEnd; return convertedType; } else if((typeRef.resolvedType.problemId() & ProblemReasons.NotFound) != 0) { char[][] typeName = typeRef.getTypeName(); char[][][] typeNames = findTypeNames(typeName); if(typeNames == null || typeNames.length == 0) return null; QualifiedTypeReference convertedType = new QualifiedTypeReference(typeNames[0], new long[typeNames[0].length]); convertedType.sourceStart = typeRef.sourceStart; convertedType.sourceEnd = typeRef.sourceEnd; this.substituedTypes.put(convertedType, typeNames); this.originalTypes.put(convertedType, typeName); this.combinationsCount *= typeNames.length; return convertedType; } } return null; }
private TypeReference convert(TypeReference typeRef) { if (typeRef instanceof ParameterizedSingleTypeReference) { return convert((ParameterizedSingleTypeReference)typeRef); } else if(typeRef instanceof ParameterizedQualifiedTypeReference) { return convert((ParameterizedQualifiedTypeReference)typeRef); } else if (typeRef instanceof ArrayTypeReference) { return convert((ArrayTypeReference)typeRef); } else if(typeRef instanceof ArrayQualifiedTypeReference) { return convert((ArrayQualifiedTypeReference)typeRef); } else if(typeRef instanceof Wildcard) { return convert((Wildcard)typeRef); } else if (typeRef instanceof SingleTypeReference) { return convert((SingleTypeReference)typeRef); } else if (typeRef instanceof QualifiedTypeReference) { return convert((QualifiedTypeReference)typeRef); } return null; }
this.combinationsCount = 1; TypeReference convertedType = convert(typeRef); QualifiedTypeReference[] substituedTypeNodes = getSubstituedTypes(); int length = substituedTypeNodes.length; char[][][] originalTypeNames = new char[substituedTypeNodes.length][][]; for (int i = 0; i < substituedTypeNodes.length; i++) { subtitutions[i] = getSubstitution(substituedTypeNodes[i]); originalTypeNames[i] = getOriginal(substituedTypeNodes[i]); for (int i = 0; i < this.combinationsCount; i++) { nextSubstitution(substituedTypeNodes, subtitutions, substitutionsIndexes); int[] missingElementsEnds = new int[length]; if(computeMissingElements( substituedTypeNodes, originalTypeNames,
final long pos, final Scope scope) { MissingTypesGuesser missingTypesConverter = new MissingTypesGuesser(this); MissingTypesGuesser.GuessedTypeRequestor substitutionRequestor = new MissingTypesGuesser.GuessedTypeRequestor() { missingTypesConverter.guess(typeRef, scope, substitutionRequestor);
TypeReference[] convertedTypeArguments = new TypeReference[length]; for (int i = 0; i < length; i++) { convertedTypeArguments[i] = convert(typeArguments[i]); if(convertedTypeArguments[i] == null) return null; } else if((typeRef.resolvedType.problemId() & ProblemReasons.NotFound) != 0) { char[][] typeName = typeRef.getTypeName(); char[][][] typeNames = findTypeNames(typeName); if(typeNames == null || typeNames.length == 0) return null;
private TypeReference convert(SingleTypeReference typeRef) { if (typeRef.resolvedType != null) { if (typeRef.resolvedType.isValidBinding()) { SingleTypeReference convertedType = new SingleTypeReference(typeRef.token, 0); convertedType.sourceStart = typeRef.sourceStart; convertedType.sourceEnd = typeRef.sourceEnd; return convertedType; } else if((typeRef.resolvedType.problemId() & ProblemReasons.NotFound) != 0) { char[][] typeName = typeRef.getTypeName(); char[][][] typeNames = findTypeNames(typeName); if(typeNames == null || typeNames.length == 0) return null; QualifiedTypeReference convertedType = new QualifiedTypeReference(typeNames[0], new long[typeNames[0].length]); convertedType.sourceStart = typeRef.sourceStart; convertedType.sourceEnd = typeRef.sourceEnd; this.substituedTypes.put(convertedType, typeNames); this.originalTypes.put(convertedType, typeName); this.combinationsCount *= typeNames.length; return convertedType; } } return null; }
private TypeReference convert(TypeReference typeRef) { if (typeRef instanceof ParameterizedSingleTypeReference) { return convert((ParameterizedSingleTypeReference)typeRef); } else if(typeRef instanceof ParameterizedQualifiedTypeReference) { return convert((ParameterizedQualifiedTypeReference)typeRef); } else if (typeRef instanceof ArrayTypeReference) { return convert((ArrayTypeReference)typeRef); } else if(typeRef instanceof ArrayQualifiedTypeReference) { return convert((ArrayQualifiedTypeReference)typeRef); } else if(typeRef instanceof Wildcard) { return convert((Wildcard)typeRef); } else if (typeRef instanceof SingleTypeReference) { return convert((SingleTypeReference)typeRef); } else if (typeRef instanceof QualifiedTypeReference) { return convert((QualifiedTypeReference)typeRef); } return null; }
this.combinationsCount = 1; TypeReference convertedType = convert(typeRef); QualifiedTypeReference[] substituedTypeNodes = getSubstituedTypes(); int length = substituedTypeNodes.length; char[][][] originalTypeNames = new char[substituedTypeNodes.length][][]; for (int i = 0; i < substituedTypeNodes.length; i++) { subtitutions[i] = getSubstitution(substituedTypeNodes[i]); originalTypeNames[i] = getOriginal(substituedTypeNodes[i]); for (int i = 0; i < this.combinationsCount; i++) { nextSubstitution(substituedTypeNodes, subtitutions, substitutionsIndexes); int[] missingElementsEnds = new int[length]; if(computeMissingElements( substituedTypeNodes, originalTypeNames,
final long pos, final Scope scope) { MissingTypesGuesser missingTypesConverter = new MissingTypesGuesser(this); MissingTypesGuesser.GuessedTypeRequestor substitutionRequestor = new MissingTypesGuesser.GuessedTypeRequestor() { missingTypesConverter.guess(typeRef, scope, substitutionRequestor);