本文整理匯總了Java中org.apache.commons.beanutils.PropertyUtils.NESTED_DELIM屬性的典型用法代碼示例。如果您正苦於以下問題:Java PropertyUtils.NESTED_DELIM屬性的具體用法?Java PropertyUtils.NESTED_DELIM怎麽用?Java PropertyUtils.NESTED_DELIM使用的例子?那麽, 這裏精選的屬性代碼示例或許可以為您提供幫助。您也可以進一步了解該屬性所在類org.apache.commons.beanutils.PropertyUtils
的用法示例。
在下文中一共展示了PropertyUtils.NESTED_DELIM屬性的1個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的Java代碼示例。
示例1: findLastNestedIndex
private int findLastNestedIndex(final String expression) {
// walk back from the end to the start
// and find the first index that
int bracketCount = 0;
for (int i = expression.length() - 1; i >= 0; i--) {
final char at = expression.charAt(i);
switch (at) {
case PropertyUtils.NESTED_DELIM:
if (bracketCount < 1) {
return i;
}
break;
case PropertyUtils.MAPPED_DELIM:
case PropertyUtils.INDEXED_DELIM:
// not bothered which
--bracketCount;
break;
case PropertyUtils.MAPPED_DELIM2:
case PropertyUtils.INDEXED_DELIM2:
// not bothered which
++bracketCount;
break;
}
}
// can't find any
return -1;
}