private List<String> javaNameToJvmName(List<String> classNameList) { List<String> jvmNameList = new ArrayList<String>(classNameList.size()); for (String className : classNameList) { jvmNameList.add(JavaAssistUtils.javaNameToJvmName(className)); } return jvmNameList; }
private void addModifier0(AbstractModifier modifier, String className) { // check jvmClassName final String checkJvmClassName = JavaAssistUtils.javaNameToJvmName(className); AbstractModifier old = registry.put(checkJvmClassName, modifier); if (old != null) { throw new IllegalStateException( "Modifier already exist. className:" + checkJvmClassName + " new:" + modifier.getClass() + " old:" + old.getClass()); } }
@Override public Matcher getMatcher() { return Matchers.newClassNameMatcher(JavaAssistUtils.javaNameToJvmName(targetClassName)); }