本文整理了Java中org.apache.felix.gogo.commands.Option.aliases()
方法的一些代码示例,展示了Option.aliases()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Option.aliases()
方法的具体详情如下:
包路径:org.apache.felix.gogo.commands.Option
类名称:Option
方法名:aliases
暂无
代码示例来源:origin: apache/karaf
@Override
public String[] aliases() {
return oldOption.aliases();
}
};
代码示例来源:origin: org.apache.felix.gogo/org.apache.felix.gogo.commands
out.print(option.name());
out.print(" ");
if (option.aliases().length > 0)
out.print(Arrays.toString(option.aliases()));
out.print(") ");
代码示例来源:origin: org.apache.felix.gogo/org.apache.felix.gogo.commands
Object param = it.next();
if (HELP.name().equals(param) || Arrays.asList(HELP.aliases()).contains(param)) {
printUsage(action.getClass().getAnnotation(Command.class), options.keySet(), arguments.keySet(), System.out);
return false;
if (name.equals(opt.name()) || Arrays.binarySearch(opt.aliases(), name) >= 0) {
option = opt;
break;
代码示例来源:origin: apache/karaf
fields.put(option, field);
options.put(option.name(), option);
String[] aliases = option.aliases();
if (aliases != null) {
for (String alias : aliases) {
代码示例来源:origin: apache/karaf
fields.put(option, field);
options.put(option.name(), option);
String[] aliases = option.aliases();
if (aliases != null) {
for (String alias : aliases) {
代码示例来源:origin: apache/karaf
optionValueCompleter = optionalCompleters.get(name);
if (optionValueCompleter == null) {
String[] aliases = option.aliases();
if (aliases.length > 0) {
for (int i = 0; i < aliases.length && optionValueCompleter == null; i++) {
optionValueCompleter = optionalCompleters.get(option.aliases()[i]);
代码示例来源:origin: apache/karaf
optionValueCompleter = optionalCompleters.get(name);
if (optionValueCompleter == null) {
String[] aliases = option.aliases();
if (aliases.length > 0) {
for (int i = 0; i < aliases.length && optionValueCompleter == null; i++) {
optionValueCompleter = optionalCompleters.get(option.aliases()[i]);
代码示例来源:origin: apache/karaf
for (Option option : options) {
String opt = option.name();
for (String alias : option.aliases()) {
opt += ", " + alias;
代码示例来源:origin: org.apache.felix.karaf.shell/org.apache.felix.karaf.shell.console
for (String alias : option.aliases())
代码示例来源:origin: apache/karaf
Object param = it.next();
if (HELP.name().equals(param) || Arrays.asList(HELP.aliases()).contains(param)) {
printUsage(session, action, options, arguments, System.out);
return false;
if (name.equals(opt.name()) || Arrays.asList(opt.aliases()).contains(name)) {
option = opt;
break;
内容来源于网络,如有侵权,请联系作者删除!