Declaration
Declare a symbol in the program. Declaring classes, interfaces, enums, etc. Should also pass in access modifier so we can manage access
import { Declaration } from "@alloy-js/java";
<Declaration name={string | Namekey} nameKind={JavaElements} refkey={Refkey} />import { Declaration } from "@alloy-js/java/stc";
Declaration({ name: string | Namekey, nameKind: JavaElements, refkey: Refkey,}).children(children)| children | optionalChildren |
| name | string | Namekey |
| nameKind | optionalJavaElementsThe name policy kind to apply to the declaration. |
| refkey | optionalRefkey |