Class GeneratedFile
java.lang.Object
org.sonar.java.model.GeneratedFile
- All Implemented Interfaces:
org.sonar.api.batch.fs.IndexedFile,org.sonar.api.batch.fs.InputComponent,org.sonar.api.batch.fs.InputFile,org.sonar.api.batch.fs.InputPath
-
Nested Class Summary
Nested classes/interfaces inherited from interface org.sonar.api.batch.fs.InputFile
org.sonar.api.batch.fs.InputFile.Status, org.sonar.api.batch.fs.InputFile.Type -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidcharset()contents()file()filename()booleanisEmpty()booleanisFile()key()language()intlines()md5Hash()org.sonar.api.batch.fs.TextPointernewPointer(int line, int lineOffset) org.sonar.api.batch.fs.TextRangenewRange(int startLine, int startLineOffset, int endLine, int endLineOffset) org.sonar.api.batch.fs.TextRangenewRange(org.sonar.api.batch.fs.TextPointer start, org.sonar.api.batch.fs.TextPointer end) path()org.sonar.api.batch.fs.TextRangeselectLine(int line) org.sonar.api.batch.fs.InputFile.Statusstatus()toString()org.sonar.api.batch.fs.InputFile.Typetype()uri()Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface org.sonar.api.batch.fs.IndexedFile
isHidden
-
Constructor Details
-
GeneratedFile
-
-
Method Details
-
sourceMap
-
addSmap
-
relativePath
- Specified by:
relativePathin interfaceorg.sonar.api.batch.fs.IndexedFile- Specified by:
relativePathin interfaceorg.sonar.api.batch.fs.InputFile- Specified by:
relativePathin interfaceorg.sonar.api.batch.fs.InputPath
-
absolutePath
- Specified by:
absolutePathin interfaceorg.sonar.api.batch.fs.IndexedFile- Specified by:
absolutePathin interfaceorg.sonar.api.batch.fs.InputFile- Specified by:
absolutePathin interfaceorg.sonar.api.batch.fs.InputPath
-
file
- Specified by:
filein interfaceorg.sonar.api.batch.fs.IndexedFile- Specified by:
filein interfaceorg.sonar.api.batch.fs.InputFile- Specified by:
filein interfaceorg.sonar.api.batch.fs.InputPath
-
path
- Specified by:
pathin interfaceorg.sonar.api.batch.fs.IndexedFile- Specified by:
pathin interfaceorg.sonar.api.batch.fs.InputFile- Specified by:
pathin interfaceorg.sonar.api.batch.fs.InputPath
-
uri
- Specified by:
uriin interfaceorg.sonar.api.batch.fs.IndexedFile- Specified by:
uriin interfaceorg.sonar.api.batch.fs.InputPath
-
filename
- Specified by:
filenamein interfaceorg.sonar.api.batch.fs.IndexedFile
-
language
- Specified by:
languagein interfaceorg.sonar.api.batch.fs.IndexedFile- Specified by:
languagein interfaceorg.sonar.api.batch.fs.InputFile
-
type
public org.sonar.api.batch.fs.InputFile.Type type()- Specified by:
typein interfaceorg.sonar.api.batch.fs.IndexedFile- Specified by:
typein interfaceorg.sonar.api.batch.fs.InputFile
-
inputStream
- Specified by:
inputStreamin interfaceorg.sonar.api.batch.fs.IndexedFile- Specified by:
inputStreamin interfaceorg.sonar.api.batch.fs.InputFile- Throws:
IOException
-
contents
- Specified by:
contentsin interfaceorg.sonar.api.batch.fs.InputFile- Throws:
IOException
-
md5Hash
- Specified by:
md5Hashin interfaceorg.sonar.api.batch.fs.InputFile
-
status
public org.sonar.api.batch.fs.InputFile.Status status()- Specified by:
statusin interfaceorg.sonar.api.batch.fs.InputFile
-
lines
public int lines()- Specified by:
linesin interfaceorg.sonar.api.batch.fs.InputFile
-
isEmpty
public boolean isEmpty()- Specified by:
isEmptyin interfaceorg.sonar.api.batch.fs.InputFile
-
newPointer
public org.sonar.api.batch.fs.TextPointer newPointer(int line, int lineOffset) - Specified by:
newPointerin interfaceorg.sonar.api.batch.fs.InputFile
-
newRange
public org.sonar.api.batch.fs.TextRange newRange(org.sonar.api.batch.fs.TextPointer start, org.sonar.api.batch.fs.TextPointer end) - Specified by:
newRangein interfaceorg.sonar.api.batch.fs.InputFile
-
newRange
public org.sonar.api.batch.fs.TextRange newRange(int startLine, int startLineOffset, int endLine, int endLineOffset) - Specified by:
newRangein interfaceorg.sonar.api.batch.fs.InputFile
-
selectLine
public org.sonar.api.batch.fs.TextRange selectLine(int line) - Specified by:
selectLinein interfaceorg.sonar.api.batch.fs.InputFile
-
charset
- Specified by:
charsetin interfaceorg.sonar.api.batch.fs.InputFile
-
key
- Specified by:
keyin interfaceorg.sonar.api.batch.fs.InputComponent
-
isFile
public boolean isFile()- Specified by:
isFilein interfaceorg.sonar.api.batch.fs.InputComponent
-
toString
-