diff options
author | Alexander Kurtakov | 2012-06-26 16:56:56 +0000 |
---|---|---|
committer | Alexander Kurtakov | 2012-06-26 17:38:44 +0000 |
commit | 801b5af8c03f4b566f54086fa71eb49f0c7bb5b2 (patch) | |
tree | fc590a6d1b8ccebfc6c98d3f115b729c616972b6 /rpm | |
parent | 8abfe284bc5085e48350820b8ba6417ca0497b49 (diff) | |
download | org.eclipse.linuxtools-801b5af8c03f4b566f54086fa71eb49f0c7bb5b2.tar.gz org.eclipse.linuxtools-801b5af8c03f4b566f54086fa71eb49f0c7bb5b2.tar.xz org.eclipse.linuxtools-801b5af8c03f4b566f54086fa71eb49f0c7bb5b2.zip |
Add javadoc.
Diffstat (limited to 'rpm')
-rw-r--r-- | rpm/org.eclipse.linuxtools.rpm.rpmlint/src/org/eclipse/linuxtools/internal/rpm/rpmlint/parser/RpmlintParser.java | 34 |
1 files changed, 34 insertions, 0 deletions
diff --git a/rpm/org.eclipse.linuxtools.rpm.rpmlint/src/org/eclipse/linuxtools/internal/rpm/rpmlint/parser/RpmlintParser.java b/rpm/org.eclipse.linuxtools.rpm.rpmlint/src/org/eclipse/linuxtools/internal/rpm/rpmlint/parser/RpmlintParser.java index 9c729dc419..f2d9ad7f74 100644 --- a/rpm/org.eclipse.linuxtools.rpm.rpmlint/src/org/eclipse/linuxtools/internal/rpm/rpmlint/parser/RpmlintParser.java +++ b/rpm/org.eclipse.linuxtools.rpm.rpmlint/src/org/eclipse/linuxtools/internal/rpm/rpmlint/parser/RpmlintParser.java @@ -29,6 +29,10 @@ import org.eclipse.linuxtools.internal.rpm.rpmlint.preferences.PreferenceConstan import org.eclipse.linuxtools.internal.rpm.rpmlint.resolutions.RpmlintMarkerResolutionGenerator; import org.eclipse.linuxtools.rpm.core.utils.Utils; +/** + * Parser for rpmlint output. + * + */ public class RpmlintParser { @@ -42,6 +46,10 @@ public class RpmlintParser { // Empty constructor for making it a singleton. } + /** + * Returns a singleton version of the parser. + * @return The parser. + */ public static RpmlintParser getInstance() { if (rpmlintParser == null) { rpmlintParser = new RpmlintParser(); @@ -63,6 +71,18 @@ public class RpmlintParser { return parseRpmlintOutput(runRpmlintCommand(visitedResources)); } + /** + * Adds a rpmlint marker. + * + * @param file The file to create the marker for. + * @param message The marker message. + * @param lineNumber The line at which the marker appears. + * @param charStart The index of the starting char for the marker. + * @param charEnd The index of the ending char for the marker. + * @param severity The marker seveirty. + * @param rpmlintID The id of the rpmlint warning/error. + * @param rpmlintrefferedContent Additional content reffered by the marker. + */ public void addMarker(IFile file, String message, int lineNumber, int charStart, int charEnd, int severity, String rpmlintID, String rpmlintrefferedContent) { try { @@ -82,6 +102,15 @@ public class RpmlintParser { } } + /** + * Adds a rpmlint marker. + * + * @param file The file to create the marker for. + * @param message The marker message. + * @param severity The marker seveirty. + * @param rpmlintID The id of the rpmlint warning/error. + * @param rpmlintrefferedContent Additional content reffered by the marker. + */ public void addMarker(IFile file, String message, int severity, String rpmlintID, String rpmlintrefferedContent) { try { @@ -103,6 +132,11 @@ public class RpmlintParser { } } + /** + * Clear the rpmlint specific markers. + * + * @param resource The resource for which to clean the marker. + */ public void deleteMarkers(IResource resource) { try { resource.deleteMarkers(RpmlintBuilder.MARKER_ID, false, IResource.DEPTH_ZERO); |