org.aspectj.apache.bcel.classfile.annotation
Class AnnotationGen

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

public class AnnotationGen
extends java.lang.Object


Field Summary
static AnnotationGen[] NO_ANNOTATIONS
           
 
Constructor Summary
AnnotationGen(AnnotationGen a, ConstantPool cpool, boolean copyPoolEntries)
           
AnnotationGen(ObjectType type, java.util.List<NameValuePair> pairs, boolean runtimeVisible, ConstantPool cpool)
          Retrieve an immutable version of this AnnotationGen
 
Method Summary
 void addElementNameValuePair(NameValuePair evp)
           
 void dump(java.io.DataOutputStream dos)
           
 int getTypeIndex()
           
 java.lang.String getTypeName()
           
 java.lang.String getTypeSignature()
           
 java.util.List<NameValuePair> getValues()
           
 boolean hasNamedValue(java.lang.String name)
           
 boolean hasNameValuePair(java.lang.String name, java.lang.String value)
           
 boolean isRuntimeVisible()
           
static AnnotationGen read(java.io.DataInputStream dis, ConstantPool cpool, boolean b)
           
 java.lang.String toShortString()
           
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

NO_ANNOTATIONS

public static final AnnotationGen[] NO_ANNOTATIONS
Constructor Detail

AnnotationGen

public AnnotationGen(AnnotationGen a,
                     ConstantPool cpool,
                     boolean copyPoolEntries)

AnnotationGen

public AnnotationGen(ObjectType type,
                     java.util.List<NameValuePair> pairs,
                     boolean runtimeVisible,
                     ConstantPool cpool)
Retrieve an immutable version of this AnnotationGen

Method Detail

read

public static AnnotationGen read(java.io.DataInputStream dis,
                                 ConstantPool cpool,
                                 boolean b)
                          throws java.io.IOException
Throws:
java.io.IOException

dump

public void dump(java.io.DataOutputStream dos)
          throws java.io.IOException
Throws:
java.io.IOException

addElementNameValuePair

public void addElementNameValuePair(NameValuePair evp)

getTypeIndex

public int getTypeIndex()

getTypeSignature

public java.lang.String getTypeSignature()

getTypeName

public java.lang.String getTypeName()

getValues

public java.util.List<NameValuePair> getValues()

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object

toShortString

public java.lang.String toShortString()

isRuntimeVisible

public boolean isRuntimeVisible()

hasNameValuePair

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

hasNamedValue

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