Package ghidra.util

# Class JavaSourceFile

java.lang.Object
ghidra.util.JavaSourceFile

public class JavaSourceFile extends Object

- ## Constructor Summary

  Constructors
  Constructor
  Description
  `JavaSourceFile(String filename)`

- ## Method Summary

  Modifier and Type
  Method
  Description
  `int`
  `getImportSectionStartLineNumber()`
  `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()`
  `String`
  `toString()`

  ### Methods inherited from class java.lang.Object

  `clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait`

- ## Constructor Details

  - ### JavaSourceFile

    public JavaSourceFile(String filename)

- ## Method Details

  - ### 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 String getJavaStatementStartingAtLine(int firstUseLineNumber)

  - ### getLine

    public JavaSourceLine getLine(int oneBasedLineNumber)

  - ### save

    public void save()

  - ### toString

    public String toString()
    Overrides:
      `toString` in class `Object`

  - ### getOriginalSourceFileCopy

    public JavaSourceFile getOriginalSourceFileCopy()