Lines 1423-1430
Link Here
|
1423 |
if (enclosingBinding != null) { |
1423 |
if (enclosingBinding != null) { |
1424 |
enclosingElement = ((JavaElement) enclosingElement).resolved(enclosingBinding); |
1424 |
enclosingElement = ((JavaElement) enclosingElement).resolved(enclosingBinding); |
1425 |
} |
1425 |
} |
1426 |
InternalFieldReferenceMatch match = new InternalFieldReferenceMatch(enclosingElement, accuracy, offset, length, isReadAccess, isWriteAccess, insideDocComment, participant, resource); |
1426 |
FieldReferenceMatch match = new FieldReferenceMatch(enclosingElement, accuracy, offset, length, isReadAccess, isWriteAccess, insideDocComment, participant, resource); |
1427 |
match.localElement(localElement); |
1427 |
match.setLocalElement(localElement); |
1428 |
return match; |
1428 |
return match; |
1429 |
} |
1429 |
} |
1430 |
|
1430 |
|
Lines 1462-1468
Link Here
|
1462 |
return new LocalVariableReferenceMatch(enclosingElement, accuracy, offset, length, isReadAccess, isWriteAccess, insideDocComment, participant, resource); |
1462 |
return new LocalVariableReferenceMatch(enclosingElement, accuracy, offset, length, isReadAccess, isWriteAccess, insideDocComment, participant, resource); |
1463 |
} |
1463 |
} |
1464 |
|
1464 |
|
1465 |
public InternalMethodReferenceMatch newMethodReferenceMatch( |
1465 |
public MethodReferenceMatch newMethodReferenceMatch( |
1466 |
IJavaElement enclosingElement, |
1466 |
IJavaElement enclosingElement, |
1467 |
Binding enclosingBinding, |
1467 |
Binding enclosingBinding, |
1468 |
int accuracy, |
1468 |
int accuracy, |
Lines 1477-1486
Link Here
|
1477 |
if (enclosingBinding != null) |
1477 |
if (enclosingBinding != null) |
1478 |
enclosingElement = ((JavaElement) enclosingElement).resolved(enclosingBinding); |
1478 |
enclosingElement = ((JavaElement) enclosingElement).resolved(enclosingBinding); |
1479 |
boolean isOverridden = (accuracy & PatternLocator.SUPER_INVOCATION_FLAVOR) != 0; |
1479 |
boolean isOverridden = (accuracy & PatternLocator.SUPER_INVOCATION_FLAVOR) != 0; |
1480 |
return new InternalMethodReferenceMatch(enclosingElement, accuracy, offset, length, isConstructor, isSynthetic, isOverridden, insideDocComment, participant, resource); |
1480 |
return new MethodReferenceMatch(enclosingElement, accuracy, offset, length, isConstructor, isSynthetic, isOverridden, insideDocComment, participant, resource); |
1481 |
} |
1481 |
} |
1482 |
|
1482 |
|
1483 |
public InternalPackageReferenceMatch newPackageReferenceMatch( |
1483 |
public PackageReferenceMatch newPackageReferenceMatch( |
1484 |
IJavaElement enclosingElement, |
1484 |
IJavaElement enclosingElement, |
1485 |
int accuracy, |
1485 |
int accuracy, |
1486 |
int offset, |
1486 |
int offset, |
Lines 1489-1495
Link Here
|
1489 |
SearchParticipant participant = getParticipant(); |
1489 |
SearchParticipant participant = getParticipant(); |
1490 |
IResource resource = this.currentPossibleMatch.resource; |
1490 |
IResource resource = this.currentPossibleMatch.resource; |
1491 |
boolean insideDocComment = (reference.bits & ASTNode.InsideJavadoc) != 0; |
1491 |
boolean insideDocComment = (reference.bits & ASTNode.InsideJavadoc) != 0; |
1492 |
return new InternalPackageReferenceMatch(enclosingElement, accuracy, offset, length, insideDocComment, participant, resource); |
1492 |
return new PackageReferenceMatch(enclosingElement, accuracy, offset, length, insideDocComment, participant, resource); |
1493 |
} |
1493 |
} |
1494 |
|
1494 |
|
1495 |
public SearchMatch newTypeParameterReferenceMatch( |
1495 |
public SearchMatch newTypeParameterReferenceMatch( |