java.lang.Object
edu.hm.hafner.analysis.IssueParser
- Alle implementierten Schnittstellen:
Serializable
- Bekannte direkte Unterklassen:
AbstractDryParser,AbstractViolationAdapter,AjcParser,CargoCheckParser,CcmParser,CheckStyleParser,ClangAnalyzerPlistParser,EclipseXMLParser,EmbeddedEngineerParser,FindBugsParser,FxCopParser,GendarmeParser,IdeaInspectionParser,JcReportParser,JsonIssueParser,JsonLogParser,JsonParser,LintParser,LookaheadParser,PmdParser,PolyspaceParser,PVSStudioParser,QtTranslationParser,RfLintParser,SimulinkCheckParser,StyleCopParser,TaglistParser,XmlParser
Parses a file and returns the issues reported in this file.
- Autor:
- Ullrich Hafner
- Siehe auch:
-
Feldübersicht
FelderModifizierer und TypFeldBeschreibungprotected static final Stringprotected static final Stringprotected static final Stringprotected static final Stringprotected static final Stringprotected static final Stringprotected static final Stringprotected static final Stringprotected static final Stringprotected static final Stringprotected static final Stringprotected static final Stringprotected static final Stringprotected static final Stringprotected static final Stringprotected static final Stringprotected static final Stringprotected static final Stringprotected static final String -
Konstruktorübersicht
Konstruktoren -
Methodenübersicht
Modifizierer und TypMethodeBeschreibungbooleanaccepts(ReaderFactory readerFactory) Returns whether this parser accepts the specified file as valid input.static booleanequalsIgnoreCase(String a, String b) Compares two CharSequences, returningtrueif they represent equal sequences of characters, ignoring case.protected booleanisXmlFile(ReaderFactory readerFactory) Returns whether the specified file is an XML file.abstract Reportparse(ReaderFactory readerFactory) Parses the specified file for issues.parseFile(ReaderFactory readerFactory) Parses the specified file for issues.
-
Felddetails
-
ADDITIONAL_PROPERTIES
- Siehe auch:
-
CATEGORY
- Siehe auch:
-
COLUMN_END
- Siehe auch:
-
COLUMN_START
- Siehe auch:
-
DESCRIPTION
- Siehe auch:
-
FILE_NAME
- Siehe auch:
-
FINGERPRINT
- Siehe auch:
-
ID
- Siehe auch:
-
LINE_END
- Siehe auch:
-
LINE_RANGES
- Siehe auch:
-
LINE_RANGE_END
- Siehe auch:
-
LINE_RANGE_START
- Siehe auch:
-
LINE_START
- Siehe auch:
-
MESSAGE
- Siehe auch:
-
MODULE_NAME
- Siehe auch:
-
ORIGIN
- Siehe auch:
-
PACKAGE_NAME
- Siehe auch:
-
SEVERITY
- Siehe auch:
-
TYPE
- Siehe auch:
-
-
Konstruktordetails
-
IssueParser
public IssueParser()
-
-
Methodendetails
-
parse
public abstract Report parse(ReaderFactory readerFactory) throws ParsingException, ParsingCanceledException Parses the specified file for issues.- Parameter:
readerFactory- provides a reader to the reports- Gibt zurück:
- the issues
- Löst aus:
ParsingException- Signals that during parsing a non-recoverable error has been occurredParsingCanceledException- Signals that the parsing has been aborted by the user
-
parseFile
public Report parseFile(ReaderFactory readerFactory) throws ParsingException, ParsingCanceledException Parses the specified file for issues. Invokes the parser usingparse(ReaderFactory)and sets the file name of the report.- Parameter:
readerFactory- provides a reader to the reports- Gibt zurück:
- the issues
- Löst aus:
ParsingException- Signals that during parsing a non-recoverable error has been occurredParsingCanceledException- Signals that the parsing has been aborted by the user
-
accepts
Returns whether this parser accepts the specified file as valid input. Parsers may reject a file if it is in the wrong format to avoid exceptions during parsing.- Parameter:
readerFactory- provides a reader to the reports- Gibt zurück:
trueif this parser accepts this file as valid input, orfalseif the file could not be parsed by this parser
-
isXmlFile
Returns whether the specified file is an XML file. This method just checks if the first 10 lines contain the XML tag rather than parsing the whole document.- Parameter:
readerFactory- the file to check- Gibt zurück:
trueif the file is an XML file,falseotherwise
-
equalsIgnoreCase
Compares two CharSequences, returning
trueif they represent equal sequences of characters, ignoring case.nulls are handled without exceptions. Twonullreferences are considered equal. The comparison is case insensitive.equalsIgnoreCase(null, null) = true equalsIgnoreCase(null, "abc") = false equalsIgnoreCase("abc", null) = false equalsIgnoreCase("abc", "abc") = true equalsIgnoreCase("abc", "ABC") = true- Parameter:
a- the first CharSequence, may benullb- the second CharSequence, may benull- Gibt zurück:
trueif the CharSequences are equal (case-insensitive), or bothnull
-