Package: groovy.cli.commons

## [Groovy] Class OptionAccessor

- groovy.cli.commons.OptionAccessor

- - ### Properties Summary

    Properties
    Type | Name and description
    --- | ---
    `private CommandLine` | `commandLine`
    `private Map` | `savedTypeOptions`

  - ### Constructor Summary

    Constructors
    Constructor and description
    `OptionAccessor (CommandLine commandLine)`
    `OptionAccessor ()`

  - ### Methods Summary

    Methods
    Type Params | Return Type | Name and description
    --- | --- | ---
    `` | `List` | `arguments()`
    `<T>` | `T` | `defaultValue(String name)`
    `<T>` | `T` | `getAt(TypedOption typedOption)`
    `<T>` | `T` | `getAt(TypedOption typedOption, T defaultValue)`
    `<T>` | `T` | `getOptionValue(TypedOption typedOption)`
    `<T>` | `T` | `getOptionValue(TypedOption typedOption, T defaultValue)`
    `` | `Object` | `getProperty(String name)`
    `` | `boolean` | `hasOption(TypedOption typedOption)`
    `` | `Object` | `invokeMethod(String name, Object args)`

  - ### Inherited Methods Summary

    Inherited Methods
    Methods inherited from class | Name
    --- | ---
    `class Object` | `wait, wait, wait, equals, toString, hashCode, getClass, notify, notifyAll`

- - ### Property Detail

    - #### private CommandLine commandLine

    - #### private Map savedTypeOptions

  - ### Constructor Detail

    - #### OptionAccessor(CommandLine commandLine)

    - #### OptionAccessor()

  - ### Method Detail

    - #### List arguments()

    - #### <T> T defaultValue(String name)

    - #### <T> T getAt(TypedOption typedOption)

    - #### <T> T getAt(TypedOption typedOption, T defaultValue)

    - #### <T> T getOptionValue(TypedOption typedOption)

    - #### <T> T getOptionValue(TypedOption typedOption, T defaultValue)

    - #### Object getProperty(String name)

    - #### boolean hasOption(TypedOption typedOption)

    - #### Object invokeMethod(String name, Object args)