com.thalesgroup.hudson.plugins.cppcheck
Class CppcheckSource
java.lang.Object
com.thalesgroup.hudson.plugins.cppcheck.CppcheckSource
- All Implemented Interfaces:
- java.io.Serializable
public class CppcheckSource
- extends java.lang.Object
- implements java.io.Serializable
- See Also:
- Serialized Form
|
Constructor Summary |
CppcheckSource(hudson.model.AbstractBuild<?,?> owner,
CppcheckFile cppcheckFile)
Creates a new instance of this source code object. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
SOURCE_GENERATOR_OFFSET
protected static final int SOURCE_GENERATOR_OFFSET
- Offset of the source code generator. After this line the actual source file lines start.
- See Also:
- Constant Field Values
CppcheckSource
public CppcheckSource(hudson.model.AbstractBuild<?,?> owner,
CppcheckFile cppcheckFile)
- Creates a new instance of this source code object.
- Parameters:
owner - the current build as owner of this objectannotation - the warning to display in the source filedefaultEncoding - the default encoding to be used when reading and parsing files
highlightSource
public final java.lang.String highlightSource(java.io.InputStream file)
throws java.io.IOException
- Highlights the specified source and returns the result as an HTML string.
- Parameters:
file - the source file to highlight
- Returns:
- the source as an HTML string
- Throws:
java.io.IOException
getSourceCode
public java.lang.String getSourceCode()
- Returns the line that should be highlighted.
- Returns:
- the line to highlight
getCppcheckFile
public CppcheckFile getCppcheckFile()
Copyright © 2009. All Rights Reserved.