|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.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()
InputFile
FileSystem
. 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
relativePath
in interface InputPath
InputFile.relativePath()
,
InputDir.relativePath()
public String absolutePath()
InputFile
file().getCanonicalPath()
to resolve symbolic link.
absolutePath
in interface InputFile
absolutePath
in interface InputPath
InputFile.absolutePath()
,
InputDir.absolutePath()
public File file()
InputFile
File
file
in interface InputFile
file
in interface InputPath
InputFile.file()
,
InputDir.file()
public String language()
InputFile
language
in interface InputFile
public InputFile.Type type()
InputFile
type
in interface InputFile
public InputFile.Status status()
setStatus(org.sonar.api.batch.fs.InputFile.Status)
status
in interface InputFile
public String hash()
public int lines()
InputFile
lines
in interface InputFile
public 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 Object
public int hashCode()
hashCode
in class Object
public String toString()
toString
in class Object
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |