Class ModuleReferenceMatch

  • public class ModuleReferenceMatch
    extends ReferenceMatch
    A Java search match that represents a module reference. The element is the innermost enclosing member (mostly module declaration) that references this module reference.

    This class is intended to be instantiated and subclassed by clients.

    • Constructor Detail

      • ModuleReferenceMatch

        public ModuleReferenceMatch​(IJavaElement enclosingElement,
                                    int accuracy,
                                    int offset,
                                    int length,
                                    boolean insideDocComment,
                                    SearchParticipant participant,
                                    IResource resource)
        Creates a new module reference match.
        enclosingElement - the inner-most enclosing member that references this module reference
        accuracy - one of SearchMatch.A_ACCURATE or SearchMatch.A_INACCURATE
        offset - the offset the match starts at, or -1 if unknown
        length - the length of the match, or -1 if unknown
        insideDocComment - true if this search match is inside a doc comment, and false otherwise
        participant - the search participant that created the match
        resource - the resource of the element