Lines 1420-1426
Link Here
|
1420 |
if (enclosingBinding != null) { |
1420 |
if (enclosingBinding != null) { |
1421 |
enclosingElement = ((JavaElement) enclosingElement).resolved(enclosingBinding); |
1421 |
enclosingElement = ((JavaElement) enclosingElement).resolved(enclosingBinding); |
1422 |
} |
1422 |
} |
1423 |
FieldReferenceMatch match = new FieldReferenceMatch(enclosingElement, accuracy, offset, length, isReadAccess, isWriteAccess, insideDocComment, participant, resource); |
1423 |
InternalFieldReferenceMatch match = new InternalFieldReferenceMatch(enclosingElement, accuracy, offset, length, isReadAccess, isWriteAccess, insideDocComment, participant, resource); |
1424 |
match.localElement(localElement); |
1424 |
match.localElement(localElement); |
1425 |
return match; |
1425 |
return match; |
1426 |
} |
1426 |
} |
Lines 1451-1457
Link Here
|
1451 |
return new LocalVariableReferenceMatch(enclosingElement, accuracy, offset, length, isReadAccess, isWriteAccess, insideDocComment, participant, resource); |
1451 |
return new LocalVariableReferenceMatch(enclosingElement, accuracy, offset, length, isReadAccess, isWriteAccess, insideDocComment, participant, resource); |
1452 |
} |
1452 |
} |
1453 |
|
1453 |
|
1454 |
public MethodReferenceMatch newMethodReferenceMatch( |
1454 |
public InternalMethodReferenceMatch newMethodReferenceMatch( |
1455 |
IJavaElement enclosingElement, |
1455 |
IJavaElement enclosingElement, |
1456 |
Binding enclosingBinding, |
1456 |
Binding enclosingBinding, |
1457 |
int accuracy, |
1457 |
int accuracy, |
Lines 1466-1475
Link Here
|
1466 |
if (enclosingBinding != null) |
1466 |
if (enclosingBinding != null) |
1467 |
enclosingElement = ((JavaElement) enclosingElement).resolved(enclosingBinding); |
1467 |
enclosingElement = ((JavaElement) enclosingElement).resolved(enclosingBinding); |
1468 |
boolean isOverridden = (accuracy & PatternLocator.SUPER_INVOCATION_FLAVOR) != 0; |
1468 |
boolean isOverridden = (accuracy & PatternLocator.SUPER_INVOCATION_FLAVOR) != 0; |
1469 |
return new MethodReferenceMatch(enclosingElement, accuracy, offset, length, isConstructor, isSynthetic, isOverridden, insideDocComment, participant, resource); |
1469 |
return new InternalMethodReferenceMatch(enclosingElement, accuracy, offset, length, isConstructor, isSynthetic, isOverridden, insideDocComment, participant, resource); |
1470 |
} |
1470 |
} |
1471 |
|
1471 |
|
1472 |
public PackageReferenceMatch newPackageReferenceMatch( |
1472 |
public InternalPackageReferenceMatch newPackageReferenceMatch( |
1473 |
IJavaElement enclosingElement, |
1473 |
IJavaElement enclosingElement, |
1474 |
int accuracy, |
1474 |
int accuracy, |
1475 |
int offset, |
1475 |
int offset, |
Lines 1478-1484
Link Here
|
1478 |
SearchParticipant participant = getParticipant(); |
1478 |
SearchParticipant participant = getParticipant(); |
1479 |
IResource resource = this.currentPossibleMatch.resource; |
1479 |
IResource resource = this.currentPossibleMatch.resource; |
1480 |
boolean insideDocComment = (reference.bits & ASTNode.InsideJavadoc) != 0; |
1480 |
boolean insideDocComment = (reference.bits & ASTNode.InsideJavadoc) != 0; |
1481 |
return new PackageReferenceMatch(enclosingElement, accuracy, offset, length, insideDocComment, participant, resource); |
1481 |
return new InternalPackageReferenceMatch(enclosingElement, accuracy, offset, length, insideDocComment, participant, resource); |
1482 |
} |
1482 |
} |
1483 |
|
1483 |
|
1484 |
public SearchMatch newTypeParameterReferenceMatch( |
1484 |
public SearchMatch newTypeParameterReferenceMatch( |