コード例 #1
0
  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;
  }
コード例 #2
0
 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());
   }
 }
コード例 #3
0
 @Override
 public Matcher getMatcher() {
   return Matchers.newClassNameMatcher(JavaAssistUtils.javaNameToJvmName(targetClassName));
 }