~ubuntu-branches/ubuntu/wily/gmetrics/wily

« back to all changes in this revision

Viewing changes to src/main/groovy/org/gmetrics/source/SourceCode.groovy

  • Committer: Package Import Robot
  • Author(s): Miguel Landaeta, Miguel Landaeta, tony mancill
  • Date: 2012-01-18 20:57:50 UTC
  • mfrom: (1.1.1)
  • Revision ID: package-import@ubuntu.com-20120118205750-68fv86p7fs8xz470
Tags: 0.5-1
[Miguel Landaeta]
* New upstream release.
* Remove patch ftbfs_613266.diff since it was merged upstream.
* Update dates in copyright file.

[tony mancill]
* Set DMUA flag.

Show diffs side-by-side

added added

removed removed

Lines of Context:
21
21
 * Represents a unit of source code to be analyzed
22
22
 *
23
23
 * @author Chris Mair
24
 
 * @version $Revision: 24 $ - $Date: 2009-12-10 21:17:05 -0500 (Thu, 10 Dec 2009) $
 
24
 * @version $Revision: 155 $ - $Date: 2011-09-27 20:33:08 -0400 (Tue, 27 Sep 2011) $
25
25
 */
26
26
interface SourceCode {
27
27
 
63
63
    ModuleNode getAst()
64
64
    
65
65
    /**
 
66
     * Return true if and only if the source code can be successfully compiled
 
67
     * @return true only if the source code is valid
 
68
     */
 
69
    boolean isValid()
 
70
 
 
71
    /**
66
72
     * Return the line index for the line containing the character at the specified index within the source code.
67
73
     * @param charIndex - the index of the character within the source code (zero-based)
68
74
     * @return the line number (one-based) containing the specified character; Return -1 if charIndex is not valid.