Package ghidra.util
Class JavaSourceFile
- java.lang.Object
-
- ghidra.util.JavaSourceFile
-
public class JavaSourceFile extends java.lang.Object
-
-
Constructor Summary
Constructors Constructor Description JavaSourceFile(java.lang.String filename)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description int
getImportSectionStartLineNumber()
java.lang.String
getJavaStatementStartingAtLine(int firstUseLineNumber)
JavaSourceLine
getLine(int oneBasedLineNumber)
JavaSourceLine
getLineContaintingStatementStart(int lineNumber)
int
getLineNumberAfterStatementAtLine(int lineNumber)
JavaSourceFile
getOriginalSourceFileCopy()
boolean
hasChanges()
void
removeJavaStatement(int lineNumber)
void
save()
java.lang.String
toString()
-
-
-
Method Detail
-
hasChanges
public boolean hasChanges()
-
getImportSectionStartLineNumber
public int getImportSectionStartLineNumber()
-
getLineNumberAfterStatementAtLine
public int getLineNumberAfterStatementAtLine(int lineNumber)
-
removeJavaStatement
public void removeJavaStatement(int lineNumber)
-
getLineContaintingStatementStart
public JavaSourceLine getLineContaintingStatementStart(int lineNumber)
-
getJavaStatementStartingAtLine
public java.lang.String getJavaStatementStartingAtLine(int firstUseLineNumber)
-
getLine
public JavaSourceLine getLine(int oneBasedLineNumber)
-
save
public void save()
-
toString
public java.lang.String toString()
- Overrides:
toString
in classjava.lang.Object
-
getOriginalSourceFileCopy
public JavaSourceFile getOriginalSourceFileCopy()
-
-