# Method

* jsx

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


  <Method
    abstract
    default
    final
    generics={Record<string, Children>}
    name="string"
    native
    parameters={Record<string, Children>}
    private
    protected
    public
    return={Children}
    static
    strictfp
    synchronized
    throws={Children}
    transient
    volatile
  >
    {children}
  </Method>
  ```

* stc

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


  Method({
    abstract: boolean,
    default: boolean,
    final: boolean,
    generics: Record<string, Children>,
    name: string,
    native: boolean,
    parameters: Record<string, Children>,
    private: boolean,
    protected: boolean,
    public: boolean,
    return: Children,
    static: boolean,
    strictfp: boolean,
    synchronized: boolean,
    throws: Children,
    transient: boolean,
    volatile: boolean,
  }).children(children)
  ```

## Props

|              |                                                                     |   |
| ------------ | ------------------------------------------------------------------- | - |
| abstract     | optional boolean                                                    |   |
| children     | optional [Children](../../../core/types/children/)                  |   |
| default      | optional boolean                                                    |   |
| final        | optional boolean                                                    |   |
| generics     | optional Record\<string, [Children](../../../core/types/children/)> |   |
| name         | string                                                              |   |
| native       | optional boolean                                                    |   |
| parameters   | optional Record\<string, [Children](../../../core/types/children/)> |   |
| private      | optional boolean                                                    |   |
| protected    | optional boolean                                                    |   |
| public       | optional boolean                                                    |   |
| return       | optional [Children](../../../core/types/children/)                  |   |
| static       | optional boolean                                                    |   |
| strictfp     | optional boolean                                                    |   |
| synchronized | optional boolean                                                    |   |
| throws       | optional [Children](../../../core/types/children/)                  |   |
| transient    | optional boolean                                                    |   |
| volatile     | optional boolean                                                    |   |
