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"); } }
public KombinationsberechnungParameterJaNeinOptionHandler(CmdLineParser parser, OptionDef option, Setter<? super Boolean> setter) { super(parser, option, setter); theParser = parser; }
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]; }
@Inject public TimestampHandler( @Assisted CmdLineParser parser, @Assisted OptionDef option, @Assisted Setter<Timestamp> setter) { super(parser, option, setter); }
@Inject public PatchSetIdHandler( @Assisted final CmdLineParser parser, @Assisted final OptionDef option, @Assisted final Setter<PatchSet.Id> setter) { super(parser, option, setter); }
@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; }
@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; }
@Inject public ObjectIdHandler( @Assisted final CmdLineParser parser, @Assisted final OptionDef option, @Assisted final Setter<ObjectId> setter) { super(parser, option, setter); }
@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; }
@Inject public SocketAddressHandler( @Assisted final CmdLineParser parser, @Assisted final OptionDef option, @Assisted final Setter<SocketAddress> setter) { super(parser, option, setter); }
@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; }
@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(); }
@Inject public SubcommandHandler( @Assisted final CmdLineParser parser, @Assisted final OptionDef option, @Assisted final Setter<String> setter) { super(parser, option, setter); }
@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)); }
public LabelsOptionHandler( CmdLineParser parser, OptionDef option, Setter<Map<Integer, LabelSelector>> setter) throws CmdLineException { super(parser, option, setter); setter.addValue(labels); }
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(); } })); }
/** * Required constructor. */ public QueryHandler(CmdLineParser parser, OptionDef option, Setter<? super String> setter) { super(parser, option, setter); }
/** Required constructor. */ public GeneratorHandler(CmdLineParser parser, OptionDef option, Setter<? super GeneratorArgs> setter) { super(parser, option, setter); }
/** The required constructor. */ public LTSLabelsHandler(CmdLineParser parser, OptionDef option, Setter<? super LTSLabels> setter) { super(parser, option, setter); }
/** The required constructor. */ public PropertiesHandler(CmdLineParser parser, OptionDef option, Setter<? super Map<?,?>> setter) { super(parser, option, setter); }
/** * required constructor. */ public ExistingFileHandler(CmdLineParser parser, OptionDef option, Setter<? super File> setter) { super(parser, option, setter); }
/** Required constructor. */ public GrammarHandler(CmdLineParser parser, OptionDef option, Setter<? super File> setter) { super(parser, option, setter, FileType.GRAMMAR); }
/** 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; }
/** Required constructor. */ public DirectoryHandler(CmdLineParser parser, OptionDef option, Setter<? super File> setter) { this(parser, option, setter, null); }
/** Required constructor. */ public VerbosityHandler(CmdLineParser parser, OptionDef option, Setter<? super Verbosity> setter) { super(parser, option, setter); }
/** Required constructor. */ public HelpHandler(CmdLineParser parser, OptionDef option, Setter<? super Boolean> setter) { super(parser, option, setter); }
/** * Required constructor. */ public CLTFormulaHandler(CmdLineParser parser, OptionDef option, Setter<? super Formula> setter) { super(parser, option, setter); }
/** * Required constructor. */ public LTLFormulaHandler(CmdLineParser parser, OptionDef option, Setter<? super gov.nasa.ltl.trans.Formula<Proposition>> setter) { super(parser, option, setter); }
/** Required constructor. */ public FormatHandler(CmdLineParser parser, OptionDef option, Setter<? super String> setter) { super(parser, option, setter); }
public BooleanNoDefOptionHandler(CmdLineParser parser, OptionDef option, Setter<Boolean> setter) { super(parser, option, setter); }
public DbObjTypeOptionHandler(CmdLineParser parser, OptionDef option, Setter<DbObjType> setter) { super(parser, option, setter, DbObjType.class); }
public DangerStatementOptionHandler(CmdLineParser parser, OptionDef option, Setter<DangerStatement> setter) { super(parser, option, setter, DangerStatement.class); }
public ClassOptionHandler (CmdLineParser parser, OptionDef option, Setter<? super Properties> setter) { super(parser, option, setter); }
public IntArrayOptionHandler (CmdLineParser parser, OptionDef option, Setter<Integer> setter) { super(parser, option, setter); }
public RHistClientSocketOptionHandler(CmdLineParser parser, OptionDef option, Setter<? super InetSocketAddress> setter) { super(parser, option, setter); }
public ApiServerSocketOptionHandler(CmdLineParser parser, OptionDef option, Setter<? super InetSocketAddress> setter) { super(parser, option, setter); }
public ManyInetAddressOptionHandler(CmdLineParser parser, OptionDef option, Setter<? super InetSocketAddress> setter) { super(parser, option, setter); }
public BytesParserOptionHandler(CmdLineParser parser, OptionDef option, Setter<? super Long> setter) { super(parser, option, setter); }
public InetAddressOptionHandler(CmdLineParser parser, OptionDef option, Setter<? super InetSocketAddress> setter) { super(parser, option, setter); }