org.osgl.util.Keyword.hyphenated()方法的使用及代码示例

x33g5p2x  于2022-01-24 转载在 其他  
字(3.5k)|赞(0)|评价(0)|浏览(92)

本文整理了Java中org.osgl.util.Keyword.hyphenated()方法的一些代码示例,展示了Keyword.hyphenated()的具体用法。这些代码示例主要来源于Github/Stackoverflow/Maven等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Keyword.hyphenated()方法的具体详情如下:
包路径:org.osgl.util.Keyword
类名称:Keyword
方法名:hyphenated

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;

相关文章