|
||||||||||
| 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()
Normalized absolute path. |
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()
Language, for example "java" or "php". |
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()
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 InputFilerelativePath in interface InputPathInputFile.relativePath(),
InputDir.relativePath()public String absolutePath()
InputFilefile().getCanonicalPath() to resolve symbolic link.
absolutePath in interface InputFileabsolutePath in interface InputPathInputFile.absolutePath(),
InputDir.absolutePath()public File file()
InputFileFile
file in interface InputFilefile in interface InputPathInputFile.file(),
InputDir.file()public String language()
InputFile
language in interface InputFilepublic InputFile.Type type()
InputFile
type in interface InputFilepublic InputFile.Status status()
setStatus(org.sonar.api.batch.fs.InputFile.Status)
status in interface InputFilepublic String hash()
public int lines()
InputFile
lines in interface InputFilepublic String key()
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 | |||||||||