Java 类org.kohsuke.args4j.OptionDef 实例源码

项目:audiveris    文件:CLI.java   
public PropertyOptionHandler (CmdLineParser parser,
                              OptionDef option,
                              Setter<? super Properties> setter)
{
    super(parser, option, setter);

    if (setter.asFieldSetter() == null) {
        throw new IllegalArgumentException(
                "PropertyOptionHandler can only work with fields");
    }
}
项目:chordelia    文件:KombinationsberechnungParameterJaNeinOptionHandler.java   
public KombinationsberechnungParameterJaNeinOptionHandler(CmdLineParser parser,
                                                          OptionDef option,
                                                          Setter<? super Boolean> setter) {

  super(parser, option, setter);
  theParser = parser;
}
项目:heroic    文件:OptionalOptionHandler.java   
public OptionalOptionHandler(
    CmdLineParser parser, OptionDef option, Setter<? super Optional<?>> setter
) {
    super(parser, option, setter);

    final Field f = (Field) setter.asFieldSetter().asAnnotatedElement();
    final ParameterizedType p = (ParameterizedType) f.getGenericType();
    this.type = p.getActualTypeArguments()[0];
}
项目:gerrit    文件:TimestampHandler.java   
@Inject
public TimestampHandler(
    @Assisted CmdLineParser parser,
    @Assisted OptionDef option,
    @Assisted Setter<Timestamp> setter) {
  super(parser, option, setter);
}
项目:gerrit    文件:PatchSetIdHandler.java   
@Inject
public PatchSetIdHandler(
    @Assisted final CmdLineParser parser,
    @Assisted final OptionDef option,
    @Assisted final Setter<PatchSet.Id> setter) {
  super(parser, option, setter);
}
项目:gerrit    文件:ChangeIdHandler.java   
@Inject
public ChangeIdHandler(
    // TODO(dborowitz): Not sure whether this is injectable here.
    Provider<InternalChangeQuery> queryProvider,
    @Assisted final CmdLineParser parser,
    @Assisted final OptionDef option,
    @Assisted final Setter<Change.Id> setter) {
  super(parser, option, setter);
  this.queryProvider = queryProvider;
}
项目:gerrit    文件:AccountGroupUUIDHandler.java   
@Inject
public AccountGroupUUIDHandler(
    final GroupBackend groupBackend,
    @Assisted final CmdLineParser parser,
    @Assisted final OptionDef option,
    @Assisted final Setter<AccountGroup.UUID> setter) {
  super(parser, option, setter);
  this.groupBackend = groupBackend;
}
项目:gerrit    文件:ObjectIdHandler.java   
@Inject
public ObjectIdHandler(
    @Assisted final CmdLineParser parser,
    @Assisted final OptionDef option,
    @Assisted final Setter<ObjectId> setter) {
  super(parser, option, setter);
}
项目:gerrit    文件:AccountGroupIdHandler.java   
@Inject
public AccountGroupIdHandler(
    final GroupCache groupCache,
    @Assisted final CmdLineParser parser,
    @Assisted final OptionDef option,
    @Assisted final Setter<AccountGroup.Id> setter) {
  super(parser, option, setter);
  this.groupCache = groupCache;
}
项目:gerrit    文件:SocketAddressHandler.java   
@Inject
public SocketAddressHandler(
    @Assisted final CmdLineParser parser,
    @Assisted final OptionDef option,
    @Assisted final Setter<SocketAddress> setter) {
  super(parser, option, setter);
}
项目:gerrit    文件:ProjectHandler.java   
@Inject
public ProjectHandler(
    ProjectCache projectCache,
    PermissionBackend permissionBackend,
    Provider<CurrentUser> user,
    @Assisted final CmdLineParser parser,
    @Assisted final OptionDef option,
    @Assisted final Setter<ProjectState> setter) {
  super(parser, option, setter);
  this.projectCache = projectCache;
  this.permissionBackend = permissionBackend;
  this.user = user;
}
项目:gerrit    文件:AccountIdHandler.java   
@Inject
public AccountIdHandler(
    AccountResolver accountResolver,
    AccountManager accountManager,
    AuthConfig authConfig,
    @Assisted CmdLineParser parser,
    @Assisted OptionDef option,
    @Assisted Setter<Account.Id> setter) {
  super(parser, option, setter);
  this.accountResolver = accountResolver;
  this.accountManager = accountManager;
  this.authType = authConfig.getAuthType();
}
项目:gerrit    文件:SubcommandHandler.java   
@Inject
public SubcommandHandler(
    @Assisted final CmdLineParser parser,
    @Assisted final OptionDef option,
    @Assisted final Setter<String> setter) {
  super(parser, option, setter);
}
项目:gerrit    文件:CmdLineParser.java   
@SuppressWarnings({"unchecked", "rawtypes"})
@Override
protected OptionHandler createOptionHandler(OptionDef option, Setter setter) {
  if (isHandlerSpecified(option) || isEnum(setter) || isPrimitive(setter)) {
    return add(super.createOptionHandler(option, setter));
  }

  OptionHandlerFactory<?> factory = handlers.get(setter.getType());
  if (factory != null) {
    return factory.create(this, option, setter);
  }
  return add(super.createOptionHandler(option, setter));
}
项目:buck-cutom    文件:TestLabelOptions.java   
public LabelsOptionHandler(
    CmdLineParser parser,
    OptionDef option,
    Setter<Map<Integer, LabelSelector>> setter) throws CmdLineException {
  super(parser, option, setter);
  setter.addValue(labels);
}
项目:buck-cutom    文件:TestSelectorOptions.java   
public TestSelectorsOptionHandler(
    CmdLineParser parser,
    OptionDef option,
    Setter<Supplier<TestSelectorList>> setter) throws CmdLineException {
  super(parser, option, setter);
  setter.addValue(Suppliers.memoize(new Supplier<TestSelectorList>() {
    @Override
    public TestSelectorList get() {
      return builder.build();
    }
  }));
}
项目:JavaGraph    文件:PrologChecker.java   
/**
 * Required constructor.
 */
public QueryHandler(CmdLineParser parser, OptionDef option, Setter<? super String> setter) {
    super(parser, option, setter);
}
项目:JavaGraph    文件:PrologChecker.java   
/** Required constructor. */
public GeneratorHandler(CmdLineParser parser, OptionDef option,
    Setter<? super GeneratorArgs> setter) {
    super(parser, option, setter);
}
项目:JavaGraph    文件:Generator.java   
/** The required constructor. */
public LTSLabelsHandler(CmdLineParser parser, OptionDef option,
    Setter<? super LTSLabels> setter) {
    super(parser, option, setter);
}
项目:JavaGraph    文件:Generator.java   
/** The required constructor. */
public PropertiesHandler(CmdLineParser parser, OptionDef option,
    Setter<? super Map<?,?>> setter) {
    super(parser, option, setter);
}
项目:JavaGraph    文件:ExistingFileHandler.java   
/**
 * required constructor.
 */
public ExistingFileHandler(CmdLineParser parser, OptionDef option,
        Setter<? super File> setter) {
    super(parser, option, setter);
}
项目:JavaGraph    文件:GrammarHandler.java   
/** Required constructor. */
public GrammarHandler(CmdLineParser parser, OptionDef option,
        Setter<? super File> setter) {
    super(parser, option, setter, FileType.GRAMMAR);
}
项目:JavaGraph    文件:DirectoryHandler.java   
/** Constructor that allows an optional extension filter to be specified. */
protected DirectoryHandler(CmdLineParser parser, OptionDef option,
        Setter<? super File> setter, FileType filter) {
    super(parser, option, setter);
    this.filter = filter;
}
项目:JavaGraph    文件:DirectoryHandler.java   
/** Required constructor. */
public DirectoryHandler(CmdLineParser parser, OptionDef option,
        Setter<? super File> setter) {
    this(parser, option, setter, null);
}
项目:JavaGraph    文件:VerbosityHandler.java   
/** Required constructor. */
public VerbosityHandler(CmdLineParser parser, OptionDef option,
        Setter<? super Verbosity> setter) {
    super(parser, option, setter);
}
项目:JavaGraph    文件:HelpHandler.java   
/** Required constructor. */
public HelpHandler(CmdLineParser parser, OptionDef option,
        Setter<? super Boolean> setter) {
    super(parser, option, setter);
}
项目:JavaGraph    文件:CTLModelChecker.java   
/**
 * Required constructor.
 */
public CLTFormulaHandler(CmdLineParser parser, OptionDef option,
    Setter<? super Formula> setter) {
    super(parser, option, setter);
}
项目:JavaGraph    文件:CTLModelChecker.java   
/**
 * Required constructor.
 */
public LTLFormulaHandler(CmdLineParser parser, OptionDef option,
    Setter<? super gov.nasa.ltl.trans.Formula<Proposition>> setter) {
    super(parser, option, setter);
}
项目:JavaGraph    文件:CTLModelChecker.java   
/** Required constructor. */
public GeneratorHandler(CmdLineParser parser, OptionDef option,
    Setter<? super GeneratorArgs> setter) {
    super(parser, option, setter);
}
项目:JavaGraph    文件:Imager.java   
/** Required constructor. */
public FormatHandler(CmdLineParser parser, OptionDef option,
    Setter<? super String> setter) {
    super(parser, option, setter);
}
项目:pgcodekeeper    文件:BooleanNoDefOptionHandler.java   
public BooleanNoDefOptionHandler(CmdLineParser parser, OptionDef option, Setter<Boolean> setter) {
    super(parser, option, setter);
}
项目:pgcodekeeper    文件:DbObjTypeOptionHandler.java   
public DbObjTypeOptionHandler(CmdLineParser parser, OptionDef option, Setter<DbObjType> setter) {
    super(parser, option, setter, DbObjType.class);
}
项目:pgcodekeeper    文件:DangerStatementOptionHandler.java   
public DangerStatementOptionHandler(CmdLineParser parser, OptionDef option, Setter<DangerStatement> setter) {
    super(parser, option, setter, DangerStatement.class);
}
项目:audiveris    文件:CLI.java   
public ClassOptionHandler (CmdLineParser parser,
                           OptionDef option,
                           Setter<? super Properties> setter)
{
    super(parser, option, setter);
}
项目:audiveris    文件:CLI.java   
public IntArrayOptionHandler (CmdLineParser parser,
                              OptionDef option,
                              Setter<Integer> setter)
{
    super(parser, option, setter);
}
项目:monsoon    文件:RHistClientSocketOptionHandler.java   
public RHistClientSocketOptionHandler(CmdLineParser parser, OptionDef option, Setter<? super InetSocketAddress> setter) {
    super(parser, option, setter);
}
项目:monsoon    文件:ApiServerSocketOptionHandler.java   
public ApiServerSocketOptionHandler(CmdLineParser parser, OptionDef option, Setter<? super InetSocketAddress> setter) {
    super(parser, option, setter);
}
项目:monsoon    文件:ManyInetAddressOptionHandler.java   
public ManyInetAddressOptionHandler(CmdLineParser parser, OptionDef option, Setter<? super InetSocketAddress> setter) {
    super(parser, option, setter);
}
项目:monsoon    文件:BytesParser.java   
public BytesParserOptionHandler(CmdLineParser parser, OptionDef option, Setter<? super Long> setter) {
    super(parser, option, setter);
}
项目:monsoon    文件:InetAddressOptionHandler.java   
public InetAddressOptionHandler(CmdLineParser parser, OptionDef option, Setter<? super InetSocketAddress> setter) {
    super(parser, option, setter);
}