![JAR search and dependency download from the Maven repository](/logo.png)
io.airlift.command.ParserUtil Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of airline Show documentation
Show all versions of airline Show documentation
Airline is a Java annotation-based framework for parsing Git like command line structures.
The newest version!
package io.airlift.command;
import com.google.common.collect.ImmutableList;
import com.google.common.collect.ListMultimap;
import io.airlift.command.model.ArgumentsMetadata;
import io.airlift.command.model.OptionMetadata;
import java.util.List;
import java.util.Map;
import static com.google.common.collect.Iterables.concat;
public class ParserUtil
{
public static T createInstance(Class type)
{
if (type != null) {
try {
return type.getConstructor().newInstance();
}
catch (Exception e) {
throw new ParseException(e, "Unable to create instance %s", type.getName());
}
}
return null;
}
public static T createInstance(Class> type,
Iterable options,
ListMultimap parsedOptions,
ArgumentsMetadata arguments,
Iterable
© 2015 - 2025 Weber Informatics LLC | Privacy Policy