Class DtMatch

    • Constructor Detail

      • DtMatch

        public DtMatch​(IBmObject element,
                       org.eclipse.emf.ecore.EStructuralFeature feature,
                       org.eclipse.core.resources.IProject project,
                       int offset,
                       int length,
                       String text)
        Construct a new DtMatch
        Parameters:
        element - the bmObject that contains the match, cannot be null
        feature - the feature where the match has been found, cannot be null
        project - the project where the match has been found, cannot be null
        offset - the offset the match starts at
        length - the length of the match
        text - the matched text, cannot be null
    • Method Detail

      • getBmObject

        public IBmObject getBmObject()
        IBmObject that contains the match
        Returns:
        the bmObject that contains the match, never null
      • getFeature

        public org.eclipse.emf.ecore.EStructuralFeature getFeature()
        EStructuralFeature where the match has been found
        Returns:
        the feature where the match has been found, never null
      • getProject

        public org.eclipse.core.resources.IProject getProject()
        IProject where the match has been found
        Returns:
        the project where the match has been found, never null
      • getText

        public String getText()
        Matched text
        Returns:
        the matched text, never null
      • getOffset

        public int getOffset()
        Overrides:
        getOffset in class org.eclipse.search.ui.text.Match
      • getLength

        public int getLength()
        Overrides:
        getLength in class org.eclipse.search.ui.text.Match
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class Object