# SourceFile

Represents a Java source file.

Handles top level package declaration, as well as importing other sources

* jsx

  ```tsx
  import { SourceFile } from "@alloy-js/java";


  <SourceFile path="string">
    {children}
  </SourceFile>
  ```

* stc

  ```ts
  import { SourceFile } from "@alloy-js/java/stc";


  SourceFile({ path: string }).children(children)
  ```

## Props

|          |                                                    |   |
| -------- | -------------------------------------------------- | - |
| children | optional [Children](../../../core/types/children/) |   |
| path     | string                                             |   |
