/** * Constructs a new remapper for signatures. The default implementation of this method returns a * new {@link SignatureRemapper}. * * @param signatureVisitor the SignatureVisitor the remapper must delegate to. * @return the newly created remapper. */ protected SignatureVisitor createSignatureRemapper(final SignatureVisitor signatureVisitor) { return new SignatureRemapper(signatureVisitor, this); }
@Override public void visitClassType(String name) { classNames.push(name); super.visitClassType(name); }
@Override public void visitEnd() { classNames.pop(); super.visitEnd(); } }
@Override public void visitInnerClassType(String name) { String outerClassName = classNames.pop(); if (name.startsWith(outerClassName + '$')) { name = name.substring(outerClassName.length() + 1); } String className = outerClassName + '$' + name; classNames.push(className); super.visitInnerClassType(name); }
/** * Constructs a new remapper for signatures. The default implementation of this method returns a * new {@link SignatureRemapper}. * * @param signatureVisitor the SignatureVisitor the remapper must delegate to. * @return the newly created remapper. */ protected SignatureVisitor createSignatureRemapper(final SignatureVisitor signatureVisitor) { return new SignatureRemapper(signatureVisitor, this); }
/** * Constructs a new remapper for signatures. The default implementation of this method returns a * new {@link SignatureRemapper}. * * @param signatureVisitor the SignatureVisitor the remapper must delegate to. * @return the newly created remapper. */ protected SignatureVisitor createSignatureRemapper(final SignatureVisitor signatureVisitor) { return new SignatureRemapper(signatureVisitor, this); }
/** * @deprecated use {@link #createSignatureRemapper} instead. */ @Deprecated protected SignatureVisitor createRemappingSignatureAdapter( SignatureVisitor v) { return new SignatureRemapper(v, this); }
/** * @deprecated use {@link #createSignatureRemapper} instead. */ @Deprecated protected SignatureVisitor createRemappingSignatureAdapter( SignatureVisitor v) { return new SignatureRemapper(v, this); }