/** * Alias of {@link #underscore()} */ public String snakeCase() { return underscore(); }
/** * Returns string representation of this keyword using * {@link Style#UNDERSCORE underscore style} * @return the underscore style representation of this keyword */ @Override public String toString() { return underscore(); }
/** * Returns string representation of this keyword using * {@link Style#UNDERSCORE underscore style} * @return the underscore style representation of this keyword */ @Override public String toString() { return underscore(); }
/** * Alias of {@link #underscore()} */ public String snakeCase() { return underscore(); }
public static String underscore(CharSequence s) { return Keyword.of(s).underscore(); }
public static String underscore(CharSequence s) { return Keyword.of(s).underscore(); }
@Override public String toJSONString(Keyword o) { return ValueObject.of(o.underscore()).toJSONString(); }
@Override public String toJSONString(Keyword o) { return ValueObject.of(o.underscore()).toJSONString(); }
staticChildren.put(keyword.javaVariable(), node); staticChildren.put(keyword.hyphenated(), node); staticChildren.put(keyword.underscore(), node); return node;
private static String resolve(Keyword keyword, ActContext ctx) { String value = ctx.paramVal(keyword.underscore()); if (S.notBlank(value)) { return value; } value = ctx.paramVal(keyword.javaVariable()); if (S.notBlank(value)) { return value; } return null; }
staticChildren.put(keyword.javaVariable(), node); staticChildren.put(keyword.hyphenated(), node); staticChildren.put(keyword.underscore(), node); return node;
private static String resolve(Keyword keyword, ActContext ctx) { String value = ctx.paramVal(keyword.underscore()); if (S.notBlank(value)) { return value; } value = ctx.paramVal(keyword.javaVariable()); if (S.notBlank(value)) { return value; } return null; }