本文整理了Java中org.osgl.util.Keyword.hyphenated()
方法的一些代码示例,展示了Keyword.hyphenated()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Keyword.hyphenated()
方法的具体详情如下:
包路径:org.osgl.util.Keyword
类名称:Keyword
方法名:hyphenated
[英]Alias of #dashed()
[中]
代码示例来源:origin: actframework/actframework
void register(Keyword keyword, NamedLogic logic, boolean force) {
Class<? extends NamedLogic> type = logic.type();
Map<Keyword, NamedLogic> lookup = registry.get(type);
if (null == lookup) {
lookup = new HashMap<>();
registry.put(type, lookup);
}
NamedLogic existing = lookup.put(keyword, logic);
E.unexpectedIf(!force && null != existing && logic != existing, "Keyword already used: " + keyword.hyphenated());
}
代码示例来源:origin: actframework/actframework
public Map<String, Scenario> load() {
loadDefault();
searchScenarioFolder();
Map<String, Scenario> scenarioMap = new LinkedHashMap<>();
for (Map.Entry<Keyword, Scenario> entry : store.entrySet()) {
scenarioMap.put(entry.getKey().hyphenated(), entry.getValue());
}
return scenarioMap;
}
代码示例来源:origin: org.actframework/act-e2e
public Map<String, Scenario> load() {
loadDefault();
searchScenarioFolder();
Map<String, Scenario> scenarioMap = new HashMap<>();
for (Map.Entry<Keyword, Scenario> entry : store.entrySet()) {
scenarioMap.put(entry.getKey().hyphenated(), entry.getValue());
}
return scenarioMap;
}
代码示例来源:origin: org.actframework/act
public Map<String, Scenario> load() {
loadDefault();
searchScenarioFolder();
Map<String, Scenario> scenarioMap = new LinkedHashMap<>();
for (Map.Entry<Keyword, Scenario> entry : store.entrySet()) {
scenarioMap.put(entry.getKey().hyphenated(), entry.getValue());
}
return scenarioMap;
}
代码示例来源:origin: org.actframework/act
void register(Keyword keyword, NamedLogic logic, boolean force) {
Class<? extends NamedLogic> type = logic.type();
Map<Keyword, NamedLogic> lookup = registry.get(type);
if (null == lookup) {
lookup = new HashMap<>();
registry.put(type, lookup);
}
NamedLogic existing = lookup.put(keyword, logic);
E.unexpectedIf(!force && null != existing && logic != existing, "Keyword already used: " + keyword.hyphenated());
}
代码示例来源:origin: org.actframework/act-e2e
private void register(Keyword keyword) {
Class<? extends NamedLogic> type = type();
Map<Keyword, NamedLogic> lookup = registry.get(type);
if (null == lookup) {
lookup = new HashMap<>();
registry.put(type, lookup);
}
NamedLogic existing = lookup.put(keyword, this);
E.unexpectedIf(null != existing, "Keyword already used: " + keyword.hyphenated());
}
代码示例来源:origin: org.actframework/act-e2e
@Override
public String toString() {
if (null == initVal) {
return keyword().hyphenated();
}
return S.concat(keyword().hyphenated(), ": ", initVal);
}
代码示例来源:origin: actframework/actframework
@Override
public String toString() {
if (null == initVal) {
return keyword().hyphenated();
}
return S.concat(keyword().hyphenated(), ": ", initVal);
}
代码示例来源:origin: org.actframework/act
@Override
public String toString() {
if (null == initVal) {
return keyword().hyphenated();
}
return S.concat(keyword().hyphenated(), ": ", initVal);
}
代码示例来源:origin: actframework/actframework
hasKeywordMatchingChild = true;
staticChildren.put(keyword.javaVariable(), node);
staticChildren.put(keyword.hyphenated(), node);
staticChildren.put(keyword.underscore(), node);
return node;
代码示例来源:origin: org.actframework/act
hasKeywordMatchingChild = true;
staticChildren.put(keyword.javaVariable(), node);
staticChildren.put(keyword.hyphenated(), node);
staticChildren.put(keyword.underscore(), node);
return node;
内容来源于网络,如有侵权,请联系作者删除!