Class AstInfo<T extends RootNode>

    • Method Detail

      • getRootNode

        public T getRootNode()
      • getFileName

        public String getFileName()
      • getSourceText

        public String getSourceText()
      • getSuppressionComments

        public Map<Integer,​String> getSuppressionComments()
        Returns the map of line numbers to suppression / review comments. Only single line comments are considered, that start with the configured "suppressMarker", which by default is "PMD". The text after the suppressMarker is used as a "review comment" and included in this map.

        This map is later used to determine, if a violation is being suppressed. It is suppressed, if the line of the violation is contained in this suppress map.

        map of the suppress lines with the corresponding review comments.