org.aspectj.apache.bcel.classfile.annotation
Class AnnotationGen
java.lang.Object
org.aspectj.apache.bcel.classfile.annotation.AnnotationGen
- Direct Known Subclasses:
- FakeAnnotation
public class AnnotationGen
- extends java.lang.Object
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
NO_ANNOTATIONS
public static final AnnotationGen[] NO_ANNOTATIONS
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
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