コード例 #1
0
ファイル: SignatureRemapper.cs プロジェクト: NickAcPT/NAsm
 /// <summary>
 ///     Constructs a new
 ///     <see cref="SignatureRemapper" />
 ///     .
 /// </summary>
 /// <param name="api">
 ///     the ASM API version supported by this remapper. Must be one of
 ///     <see cref="Org.Objectweb.Asm.Opcodes.Asm4" />
 ///     ,
 ///     <see cref="Org.Objectweb.Asm.Opcodes.Asm5" />
 ///     or
 ///     <see cref="Org.Objectweb.Asm.Opcodes.Asm6" />
 ///     .
 /// </param>
 /// <param name="signatureVisitor">
 ///     the signature visitor this remapper must deleted to.
 /// </param>
 /// <param name="remapper">
 ///     the remapper to use to remap the types in the visited signature.
 /// </param>
 protected internal SignatureRemapper(VisitorAsmApiVersion api, SignatureVisitor signatureVisitor,
                                      Remapper remapper)
     : base(api)
 {
     /* latest api = */
     this.signatureVisitor = signatureVisitor;
     this.remapper         = remapper;
 }
コード例 #2
0
 /// <summary>
 ///     Constructs a new
 ///     <see cref="CheckSignatureAdapter" />
 ///     .
 /// </summary>
 /// <param name="api">
 ///     the ASM API version implemented by this visitor. Must be one of
 ///     <see cref="Org.Objectweb.Asm.Opcodes.Asm4" />
 ///     ,
 ///     <see cref="Org.Objectweb.Asm.Opcodes.Asm5" />
 ///     ,
 ///     <see cref="Org.Objectweb.Asm.Opcodes.Asm6" />
 ///     or
 ///     <see cref="Org.Objectweb.Asm.Opcodes.Asm7" />
 ///     .
 /// </param>
 /// <param name="type">
 ///     the type of signature to be checked. See
 ///     <see cref="Class_Signature" />
 ///     ,
 ///     <see cref="Method_Signature" />
 ///     and
 ///     <see cref="Type_Signature" />
 ///     .
 /// </param>
 /// <param name="signatureVisitor">
 ///     the visitor to which this adapter must delegate calls. May be
 ///     <literal>null</literal>
 ///     .
 /// </param>
 protected internal CheckSignatureAdapter(VisitorAsmApiVersion api, int type, SignatureVisitor signatureVisitor
                                          )
     : base(api)
 {
     /* latest api = */
     this.type             = type;
     state                 = State.Empty;
     this.signatureVisitor = signatureVisitor;
 }
コード例 #3
0
ファイル: SignatureRemapper.cs プロジェクト: NickAcPT/NAsm
 /// <summary>
 ///     Constructs a new
 ///     <see cref="SignatureRemapper" />
 ///     . <i>Subclasses must not use this constructor</i>.
 ///     Instead, they must use the
 ///     <see cref="SignatureRemapper(int, Org.Objectweb.Asm.Signature.SignatureVisitor, Remapper)
 ///     " />
 ///     version.
 /// </summary>
 /// <param name="signatureVisitor">
 ///     the signature visitor this remapper must deleted to.
 /// </param>
 /// <param name="remapper">
 ///     the remapper to use to remap the types in the visited signature.
 /// </param>
 public SignatureRemapper(SignatureVisitor signatureVisitor, Remapper remapper)
     : this(VisitorAsmApiVersion.Asm7, signatureVisitor, remapper)
 {
 }
コード例 #4
0
ファイル: Remapper.cs プロジェクト: NickAcPT/NAsm
 /// <summary>Constructs a new remapper for signatures.</summary>
 /// <remarks>
 ///     Constructs a new remapper for signatures. The default implementation of this method returns a
 ///     new
 ///     <see cref="SignatureRemapper" />
 ///     .
 /// </remarks>
 /// <param name="signatureVisitor">
 ///     the SignatureVisitor the remapper must delegate to.
 /// </param>
 /// <returns>the newly created remapper.</returns>
 protected internal virtual SignatureVisitor CreateSignatureRemapper(SignatureVisitor
                                                                     signatureVisitor)
 {
     return(new SignatureRemapper(signatureVisitor, this));
 }
コード例 #5
0
ファイル: Remapper.cs プロジェクト: NickAcPT/NAsm
 protected internal virtual SignatureVisitor CreateRemappingSignatureAdapter(SignatureVisitor
                                                                             signatureVisitor)
 {
     return(CreateSignatureRemapper(signatureVisitor));
 }
コード例 #6
0
 /// <summary>
 ///     Constructs a new
 ///     <see cref="CheckSignatureAdapter" />
 ///     .
 ///     <i>
 ///         Subclasses must not use this
 ///         constructor
 ///     </i>
 ///     . Instead, they must use the
 ///     <see cref="CheckSignatureAdapter(int, int, Org.Objectweb.Asm.Signature.SignatureVisitor)
 ///     " />
 ///     version.
 /// </summary>
 /// <param name="type">
 ///     the type of signature to be checked. See
 ///     <see cref="Class_Signature" />
 ///     ,
 ///     <see cref="Method_Signature" />
 ///     and
 ///     <see cref="Type_Signature" />
 ///     .
 /// </param>
 /// <param name="signatureVisitor">
 ///     the visitor to which this adapter must delegate calls. May be
 ///     <literal>null</literal>
 ///     .
 /// </param>
 public CheckSignatureAdapter(int type, SignatureVisitor signatureVisitor)
     : this(VisitorAsmApiVersion.Asm7, type, signatureVisitor)
 {
 }