类 TypeAnnotation

所有已实现的接口:
Serializable, Processable

public class TypeAnnotation extends Annotation
Representation of a type annotation.
另请参阅:
  • 字段详细资料

  • 构造器详细资料

    • TypeAnnotation

      public TypeAnnotation()
      Creates an uninitialized TypeAnnotation.
    • TypeAnnotation

      public TypeAnnotation(int u2typeIndex, int u2elementValuesCount, ElementValue[] elementValues, TargetInfo targetInfo, TypePathInfo[] typePath)
      Creates an initialized TypeAnnotation.
  • 方法详细资料

    • targetInfoAccept

      public void targetInfoAccept(Clazz clazz, TargetInfoVisitor targetInfoVisitor)
      Applies the given visitor to the target info.
    • targetInfoAccept

      public void targetInfoAccept(Clazz clazz, Field field, TargetInfoVisitor targetInfoVisitor)
      Applies the given visitor to the target info.
    • targetInfoAccept

      public void targetInfoAccept(Clazz clazz, Method method, TargetInfoVisitor targetInfoVisitor)
      Applies the given visitor to the target info.
    • targetInfoAccept

      public void targetInfoAccept(Clazz clazz, Method method, CodeAttribute codeAttribute, TargetInfoVisitor targetInfoVisitor)
      Applies the given visitor to the target info.
    • typePathInfosAccept

      public void typePathInfosAccept(Clazz clazz, TypePathInfoVisitor typePathVisitor)
      Applies the given visitor to all type path elements.
    • typePathInfosAccept

      public void typePathInfosAccept(Clazz clazz, Field field, TypePathInfoVisitor typePathVisitor)
      Applies the given visitor to all type path elements.
    • typePathInfosAccept

      public void typePathInfosAccept(Clazz clazz, Method method, TypePathInfoVisitor typePathVisitor)
      Applies the given visitor to all type path elements.
    • typePathInfosAccept

      public void typePathInfosAccept(Clazz clazz, Method method, CodeAttribute codeAttribute, TypeAnnotation typeAnnotation, TypePathInfoVisitor typePathVisitor)
      Applies the given visitor to all type path elements.