org.objectweb.asm.util
类 CheckSignatureAdapter

java.lang.Object
  继承者 org.objectweb.asm.util.CheckSignatureAdapter
所有已实现的接口:
SignatureVisitor

public class CheckSignatureAdapter
extends Object
implements SignatureVisitor

A SignatureVisitor that checks that its methods are properly used.

作者:
Eric Bruneton

字段摘要
static int CLASS_SIGNATURE
          Type to be used to check class signatures.
static int METHOD_SIGNATURE
          Type to be used to check method signatures.
static int TYPE_SIGNATURE
          Type to be used to check type signatures.See CheckSignatureAdapter.
 
从接口 org.objectweb.asm.signature.SignatureVisitor 继承的字段
EXTENDS, INSTANCEOF
 
构造方法摘要
CheckSignatureAdapter(int type, SignatureVisitor sv)
          Creates a new CheckSignatureAdapter object.
 
方法摘要
 SignatureVisitor visitArrayType()
          Visits a signature corresponding to an array type.
 void visitBaseType(char descriptor)
          Visits a signature corresponding to a primitive type.
 SignatureVisitor visitClassBound()
          Visits the class bound of the last visited formal type parameter.
 void visitClassType(String name)
          Starts the visit of a signature corresponding to a class or interface type.
 void visitEnd()
          Ends the visit of a signature corresponding to a class or interface type.
 SignatureVisitor visitExceptionType()
          Visits the type of a method exception.
 void visitFormalTypeParameter(String name)
          Visits a formal type parameter.
 void visitInnerClassType(String name)
          Visits an inner class.
 SignatureVisitor visitInterface()
          Visits the type of an interface implemented by the class.
 SignatureVisitor visitInterfaceBound()
          Visits an interface bound of the last visited formal type parameter.
 SignatureVisitor visitParameterType()
          Visits the type of a method parameter.
 SignatureVisitor visitReturnType()
          Visits the return type of the method.
 SignatureVisitor visitSuperclass()
          Visits the type of the super class.
 void visitTypeArgument()
          Visits an unbounded type argument of the last visited class or inner class type.
 SignatureVisitor visitTypeArgument(char wildcard)
          Visits a type argument of the last visited class or inner class type.
 void visitTypeVariable(String name)
          Visits a signature corresponding to a type variable.
 
从类 java.lang.Object 继承的方法
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

字段详细信息

CLASS_SIGNATURE

public static final int CLASS_SIGNATURE
Type to be used to check class signatures. See CheckSignatureAdapter.

另请参见:
常量字段值

METHOD_SIGNATURE

public static final int METHOD_SIGNATURE
Type to be used to check method signatures. See CheckSignatureAdapter.

另请参见:
常量字段值

TYPE_SIGNATURE

public static final int TYPE_SIGNATURE
Type to be used to check type signatures.See CheckSignatureAdapter.

另请参见:
常量字段值
构造方法详细信息

CheckSignatureAdapter

public CheckSignatureAdapter(int type,
                             SignatureVisitor sv)
Creates a new CheckSignatureAdapter object.

参数:
type - the type of signature to be checked. See CLASS_SIGNATURE, METHOD_SIGNATURE and TYPE_SIGNATURE.
sv - the visitor to which this adapter must delegate calls. May be null.
方法详细信息

visitFormalTypeParameter

public void visitFormalTypeParameter(String name)
从接口 SignatureVisitor 复制的描述
Visits a formal type parameter.

指定者:
接口 SignatureVisitor 中的 visitFormalTypeParameter
参数:
name - the name of the formal parameter.

visitClassBound

public SignatureVisitor visitClassBound()
从接口 SignatureVisitor 复制的描述
Visits the class bound of the last visited formal type parameter.

指定者:
接口 SignatureVisitor 中的 visitClassBound
返回:
a non null visitor to visit the signature of the class bound.

visitInterfaceBound

public SignatureVisitor visitInterfaceBound()
从接口 SignatureVisitor 复制的描述
Visits an interface bound of the last visited formal type parameter.

指定者:
接口 SignatureVisitor 中的 visitInterfaceBound
返回:
a non null visitor to visit the signature of the interface bound.

visitSuperclass

public SignatureVisitor visitSuperclass()
从接口 SignatureVisitor 复制的描述
Visits the type of the super class.

指定者:
接口 SignatureVisitor 中的 visitSuperclass
返回:
a non null visitor to visit the signature of the super class type.

visitInterface

public SignatureVisitor visitInterface()
从接口 SignatureVisitor 复制的描述
Visits the type of an interface implemented by the class.

指定者:
接口 SignatureVisitor 中的 visitInterface
返回:
a non null visitor to visit the signature of the interface type.

visitParameterType

public SignatureVisitor visitParameterType()
从接口 SignatureVisitor 复制的描述
Visits the type of a method parameter.

指定者:
接口 SignatureVisitor 中的 visitParameterType
返回:
a non null visitor to visit the signature of the parameter type.

visitReturnType

public SignatureVisitor visitReturnType()
从接口 SignatureVisitor 复制的描述
Visits the return type of the method.

指定者:
接口 SignatureVisitor 中的 visitReturnType
返回:
a non null visitor to visit the signature of the return type.

visitExceptionType

public SignatureVisitor visitExceptionType()
从接口 SignatureVisitor 复制的描述
Visits the type of a method exception.

指定者:
接口 SignatureVisitor 中的 visitExceptionType
返回:
a non null visitor to visit the signature of the exception type.

visitBaseType

public void visitBaseType(char descriptor)
从接口 SignatureVisitor 复制的描述
Visits a signature corresponding to a primitive type.

指定者:
接口 SignatureVisitor 中的 visitBaseType
参数:
descriptor - the descriptor of the primitive type, or 'V' for void.

visitTypeVariable

public void visitTypeVariable(String name)
从接口 SignatureVisitor 复制的描述
Visits a signature corresponding to a type variable.

指定者:
接口 SignatureVisitor 中的 visitTypeVariable
参数:
name - the name of the type variable.

visitArrayType

public SignatureVisitor visitArrayType()
从接口 SignatureVisitor 复制的描述
Visits a signature corresponding to an array type.

指定者:
接口 SignatureVisitor 中的 visitArrayType
返回:
a non null visitor to visit the signature of the array element type.

visitClassType

public void visitClassType(String name)
从接口 SignatureVisitor 复制的描述
Starts the visit of a signature corresponding to a class or interface type.

指定者:
接口 SignatureVisitor 中的 visitClassType
参数:
name - the internal name of the class or interface.

visitInnerClassType

public void visitInnerClassType(String name)
从接口 SignatureVisitor 复制的描述
Visits an inner class.

指定者:
接口 SignatureVisitor 中的 visitInnerClassType
参数:
name - the local name of the inner class in its enclosing class.

visitTypeArgument

public void visitTypeArgument()
从接口 SignatureVisitor 复制的描述
Visits an unbounded type argument of the last visited class or inner class type.

指定者:
接口 SignatureVisitor 中的 visitTypeArgument

visitTypeArgument

public SignatureVisitor visitTypeArgument(char wildcard)
从接口 SignatureVisitor 复制的描述
Visits a type argument of the last visited class or inner class type.

指定者:
接口 SignatureVisitor 中的 visitTypeArgument
参数:
wildcard - '+', '-' or '='.
返回:
a non null visitor to visit the signature of the type argument.

visitEnd

public void visitEnd()
从接口 SignatureVisitor 复制的描述
Ends the visit of a signature corresponding to a class or interface type.

指定者:
接口 SignatureVisitor 中的 visitEnd


Copyright © 2013. All Rights Reserved.