Top Description Methods
com.beust.jcommander

public Interface IParameterizedParser

Known Direct Implementers
com.beust.jcommander.parser.DefaultParameterizedParser
Imports
java.util.List

Thin interface allows the Parameterized parsing mechanism, which reflects an object to find the JCommander annotations, to be replaced at runtime for cases where the source code cannot be directly annotated with JCommander annotations, but may have other annotations such as JSON annotations that can be used to reflect as JCommander parameters.
Author
Tim Gallagher

Method Summary

Modifier and TypeMethod and Description
public List<Parameterized>

Returns:

non-null List but may be empty
parseArg
(Object
the object that contains the annotations.
annotatedObj
)

Parses the given object for any command line related annotations and returns the list of JCommander Parameterized definitions.

Method Detail

parseArgback to summary
public List<Parameterized> parseArg(Object annotatedObj)

Parses the given object for any command line related annotations and returns the list of JCommander Parameterized definitions.

Parameters
annotatedObj:Object

the object that contains the annotations.

Returns:List<Parameterized>

non-null List but may be empty