< prev index next >

src/java.base/share/classes/jdk/internal/org/objectweb/asm/commons/RemappingSignatureAdapter.java

Print this page




  48  * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
  49  * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
  50  * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE
  51  * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
  52  * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
  53  * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
  54  * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
  55  * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
  56  * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF
  57  * THE POSSIBILITY OF SUCH DAMAGE.
  58  */
  59 
  60 package jdk.internal.org.objectweb.asm.commons;
  61 
  62 import jdk.internal.org.objectweb.asm.Opcodes;
  63 import jdk.internal.org.objectweb.asm.signature.SignatureVisitor;
  64 
  65 /**
  66  * A {@link SignatureVisitor} adapter for type mapping.
  67  *

  68  * @author Eugene Kuleshov
  69  */

  70 public class RemappingSignatureAdapter extends SignatureVisitor {
  71 
  72     private final SignatureVisitor v;
  73 
  74     private final Remapper remapper;
  75 
  76     private String className;
  77 
  78     public RemappingSignatureAdapter(final SignatureVisitor v,
  79             final Remapper remapper) {
  80         this(Opcodes.ASM5, v, remapper);
  81     }
  82 
  83     protected RemappingSignatureAdapter(final int api,
  84             final SignatureVisitor v, final Remapper remapper) {
  85         super(api);
  86         this.v = v;
  87         this.remapper = remapper;
  88     }
  89 




  48  * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
  49  * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
  50  * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE
  51  * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
  52  * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
  53  * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
  54  * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
  55  * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
  56  * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF
  57  * THE POSSIBILITY OF SUCH DAMAGE.
  58  */
  59 
  60 package jdk.internal.org.objectweb.asm.commons;
  61 
  62 import jdk.internal.org.objectweb.asm.Opcodes;
  63 import jdk.internal.org.objectweb.asm.signature.SignatureVisitor;
  64 
  65 /**
  66  * A {@link SignatureVisitor} adapter for type mapping.
  67  *
  68  * @deprecated use {@link SignatureRemapper} instead.
  69  * @author Eugene Kuleshov
  70  */
  71 @Deprecated
  72 public class RemappingSignatureAdapter extends SignatureVisitor {
  73 
  74     private final SignatureVisitor v;
  75 
  76     private final Remapper remapper;
  77 
  78     private String className;
  79 
  80     public RemappingSignatureAdapter(final SignatureVisitor v,
  81             final Remapper remapper) {
  82         this(Opcodes.ASM5, v, remapper);
  83     }
  84 
  85     protected RemappingSignatureAdapter(final int api,
  86             final SignatureVisitor v, final Remapper remapper) {
  87         super(api);
  88         this.v = v;
  89         this.remapper = remapper;
  90     }
  91 


< prev index next >