com.contrastsecurity.rest
Class CodeFile

java.lang.Object
  extended by com.contrastsecurity.rest.CodeFile

public class CodeFile
extends Object

A source code file, like a Ruby script, ColdFusion template, etc.


Constructor Summary
CodeFile()
           
 
Method Summary
 int getHittableLines()
          Return the number of hittable lines in the file.
 long getLastModified()
          Return the last modified time of this file.
 int getLinesHit()
          Return the number of lines executed in the file.
 String getPath()
          The path to the code file within the app root.
 String getSha1()
          Return the SHA1 of the file.
 int getTotalLines()
          Return the number of total lines in the file, including those that aren't executable
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

CodeFile

public CodeFile()
Method Detail

getPath

public String getPath()
The path to the code file within the app root.

Returns:
the relative path of the code file

getSha1

public String getSha1()
Return the SHA1 of the file.

Returns:
the hexified SHA1 for this file

getLastModified

public long getLastModified()
Return the last modified time of this file.

Returns:
the epoch time of the last modification to this file

getLinesHit

public int getLinesHit()
Return the number of lines executed in the file.

Returns:
the number of lines executed in the file.

getHittableLines

public int getHittableLines()
Return the number of hittable lines in the file.

Returns:
the number of hittable lines in the file

getTotalLines

public int getTotalLines()
Return the number of total lines in the file, including those that aren't executable

Returns:
the number of total lines in the file


Copyright © 2014. All Rights Reserved.