(ClassVisitor visitor, NameType nameType)
| 1075 | } |
| 1076 | |
| 1077 | public void accept(ClassVisitor visitor, NameType nameType) { |
| 1078 | ClassNode cn = getMergedAsmNode(); |
| 1079 | if (cn == null) throw new IllegalArgumentException("cls without asm node: "+this); |
| 1080 | |
| 1081 | synchronized (Util.asmNodeSync) { |
| 1082 | if (nameType != NameType.PLAIN) { |
| 1083 | AsmClassRemapper.process(cn, new AsmRemapper(env, nameType), visitor); |
| 1084 | } else { |
| 1085 | cn.accept(visitor); |
| 1086 | } |
| 1087 | } |
| 1088 | } |
| 1089 | |
| 1090 | public byte[] serialize(NameType nameType) { |
| 1091 | ClassWriter writer = new ClassWriter(0); |
no test coverage detected