Example usage for org.eclipse.jdt.core.search TypeReferenceMatch TypeReferenceMatch

List of usage examples for org.eclipse.jdt.core.search TypeReferenceMatch TypeReferenceMatch

Introduction

In this page you can find the example usage for org.eclipse.jdt.core.search TypeReferenceMatch TypeReferenceMatch.

Prototype

public TypeReferenceMatch(IJavaElement enclosingElement, int accuracy, int offset, int length,
        boolean insideDocComment, SearchParticipant participant, IResource resource) 

Source Link

Document

Creates a new type reference match.

Usage

From source file:org.eclipse.ajdt.internal.core.search.ExtraTypeReferenceFinder.java

License:Open Source License

protected SearchMatch createITDMatch(IntertypeElement itd, SearchParticipant participant)
        throws JavaModelException {
    ISourceRange range = itd.getTargetTypeSourceRange();
    return new TypeReferenceMatch(itd, SearchMatch.A_ACCURATE, range.getOffset(), range.getLength(), false,
            participant, itd.getResource());
}

From source file:org.eclipse.jdt.internal.core.search.matching.MatchLocator.java

License:Open Source License

public TypeReferenceMatch newTypeReferenceMatch(IJavaElement enclosingElement, Binding enclosingBinding,
        int accuracy, int offset, int length, ASTNode reference) {
    SearchParticipant participant = getParticipant();
    IResource resource = this.currentPossibleMatch.resource;
    boolean insideDocComment = (reference.bits & ASTNode.InsideJavadoc) != 0;
    if (enclosingBinding != null)
        enclosingElement = ((JavaElement) enclosingElement).resolved(enclosingBinding);
    return new TypeReferenceMatch(enclosingElement, accuracy, offset, length, insideDocComment, participant,
            resource);// ww  w . j a v  a 2s .  com
}