|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.sonar.api.batch.fs.internal.DefaultInputFile
public class DefaultInputFile
| Nested Class Summary |
|---|
| Nested classes/interfaces inherited from interface org.sonar.api.batch.fs.InputFile |
|---|
InputFile.Status, InputFile.Type |
| Constructor Summary | |
|---|---|
DefaultInputFile(String relativePath)
|
|
| Method Summary | |
|---|---|
String |
absolutePath()
Marked as nullable just for the unit tests that do not call setFile(java.io.File)
previously. |
boolean |
equals(Object o)
|
File |
file()
The underlying absolute File |
String |
hash()
Digest hash of the file. |
int |
hashCode()
|
String |
key()
Component key. |
String |
language()
Marked as nullable just for the unit tests that do not call setLanguage(String)
previously. |
int |
lines()
Number of physical lines. |
String |
relativePath()
Path relative to module base directory. |
DefaultInputFile |
setAbsolutePath(String s)
|
DefaultInputFile |
setFile(File file)
|
DefaultInputFile |
setHash(String hash)
|
DefaultInputFile |
setKey(String s)
|
DefaultInputFile |
setLanguage(String language)
|
DefaultInputFile |
setLines(int lines)
|
DefaultInputFile |
setStatus(InputFile.Status status)
|
DefaultInputFile |
setType(InputFile.Type type)
|
InputFile.Status |
status()
Marked as nullable just for the unit tests that do not previously call setStatus(org.sonar.api.batch.fs.InputFile.Status) |
String |
toString()
|
InputFile.Type |
type()
Does it contain main or test code ? |
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public DefaultInputFile(String relativePath)
| Method Detail |
|---|
public String relativePath()
InputFileFileSystem. File separator is the forward
slash ('/'), even on Microsoft Windows.
Returns src/main/java/com/Foo.java if module base dir is
/path/to/module and if file is
/path/to/module/src/main/java/com/Foo.java.
Relative path is not null and is normalized ('foo/../foo' is replaced by 'foo').
relativePath in interface InputFile@CheckForNull public String absolutePath()
setFile(java.io.File)
previously.
absolutePath in interface InputFilepublic File file()
InputFileFile
file in interface InputFile@CheckForNull public String language()
setLanguage(String)
previously.
language in interface InputFilepublic InputFile.Type type()
InputFile
type in interface InputFile@CheckForNull public InputFile.Status status()
setStatus(org.sonar.api.batch.fs.InputFile.Status)
status in interface InputFile@CheckForNull public String hash()
setHash(String)
public int lines()
InputFile
lines in interface InputFile@CheckForNull public String key()
setKey(String).
public DefaultInputFile setAbsolutePath(String s)
public DefaultInputFile setLanguage(String language)
public DefaultInputFile setFile(File file)
public DefaultInputFile setType(InputFile.Type type)
public DefaultInputFile setStatus(InputFile.Status status)
public DefaultInputFile setHash(String hash)
public DefaultInputFile setLines(int lines)
public DefaultInputFile setKey(String s)
public boolean equals(Object o)
equals in class Objectpublic int hashCode()
hashCode in class Objectpublic String toString()
toString in class Object
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||