Class AnnotationGen

java.lang.Object
org.aspectj.apache.bcel.classfile.annotation.AnnotationGen
Direct Known Subclasses:
FakeAnnotation

public class AnnotationGen extends Object
  • Field Details

    • NO_ANNOTATIONS

      public static final AnnotationGen[] NO_ANNOTATIONS
  • Constructor Details

  • Method Details

    • read

      public static AnnotationGen read(DataInputStream dis, ConstantPool cpool, boolean b) throws IOException
      Throws:
      IOException
    • dump

      public void dump(DataOutputStream dos) throws IOException
      Throws:
      IOException
    • addElementNameValuePair

      public void addElementNameValuePair(NameValuePair evp)
    • getTypeIndex

      public int getTypeIndex()
    • getTypeSignature

      public String getTypeSignature()
    • getTypeName

      public String getTypeName()
    • getValues

      public List<NameValuePair> getValues()
    • toString

      public String toString()
      Overrides:
      toString in class Object
    • toShortString

      public String toShortString()
    • isRuntimeVisible

      public boolean isRuntimeVisible()
    • hasNameValuePair

      public boolean hasNameValuePair(String name, String value)
      Returns:
      true if the annotation has a value with the specified name and (toString'd) value
    • hasNamedValue

      public boolean hasNamedValue(String name)
      Returns:
      true if the annotation has a value with the specified name