Top Fields Constructors Methods
org.aspectj.apache.bcel.classfile.annotation

public Class AnnotationGen

extends Object
Class Inheritance
Known Direct Subclasses
org.aspectj.weaver.bcel.FakeAnnotation
Imports
java.io.DataInputStream, .DataOutputStream, .IOException, java.util.ArrayList, .Collections, .List, org.aspectj.apache.bcel.classfile.ConstantPool, .ConstantUtf8, .Utility, org.aspectj.apache.bcel.generic.ObjectType

Field Summary

Modifier and TypeField and Description
private ConstantPool
private boolean
public static final AnnotationGen[]
private List<NameValuePair>
private int

Constructor Summary

AccessConstructor and Description
public
AnnotationGen(AnnotationGen a, ConstantPool cpool, boolean copyPoolEntries)

private
public
AnnotationGen(ObjectType type, List<NameValuePair> pairs, boolean runtimeVisible, ConstantPool cpool)

Retrieve an immutable version of this AnnotationGen

Method Summary

Modifier and TypeMethod and Description
public void
private List<NameValuePair>
copyValues(List<NameValuePair> in, ConstantPool cpool, boolean copyPoolEntries)

public void
public int
public String
public String
public List<NameValuePair>
public boolean

Returns:

true if the annotation has a value with the specified name
hasNamedValue
(String name)

public boolean

Returns:

true if the annotation has a value with the specified name and (toString'd) value
hasNameValuePair
(String name, String value)

private void
isRuntimeVisible(boolean b)

public boolean
public static AnnotationGen
read(DataInputStream dis, ConstantPool cpool, boolean b)

public String
public String
toString()

Overrides java.lang.Object.toString.

Returns a string representation of the object.
Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAllwaitwaitwait

Field Detail

cpoolback to summary
private ConstantPool cpool
isRuntimeVisibleback to summary
private boolean isRuntimeVisible
NO_ANNOTATIONSback to summary
public static final AnnotationGen[] NO_ANNOTATIONS
pairsback to summary
private List<NameValuePair> pairs
typeIndexback to summary
private int typeIndex

Constructor Detail

AnnotationGenback to summary
public AnnotationGen(AnnotationGen a, ConstantPool cpool, boolean copyPoolEntries)
AnnotationGenback to summary
private AnnotationGen(ConstantPool cpool)
AnnotationGenback to summary
public AnnotationGen(ObjectType type, List<NameValuePair> pairs, boolean runtimeVisible, ConstantPool cpool)

Retrieve an immutable version of this AnnotationGen

Method Detail

addElementNameValuePairback to summary
public void addElementNameValuePair(NameValuePair evp)
copyValuesback to summary
private List<NameValuePair> copyValues(List<NameValuePair> in, ConstantPool cpool, boolean copyPoolEntries)
dumpback to summary
public void dump(DataOutputStream dos) throws IOException
getTypeIndexback to summary
public int getTypeIndex()
getTypeNameback to summary
public String getTypeName()
getTypeSignatureback to summary
public String getTypeSignature()
getValuesback to summary
public List<NameValuePair> getValues()
hasNamedValueback to summary
public boolean hasNamedValue(String name)
Returns:boolean

true if the annotation has a value with the specified name

hasNameValuePairback to summary
public boolean hasNameValuePair(String name, String value)
Returns:boolean

true if the annotation has a value with the specified name and (toString'd) value

isRuntimeVisibleback to summary
private void isRuntimeVisible(boolean b)
isRuntimeVisibleback to summary
public boolean isRuntimeVisible()
readback to summary
public static AnnotationGen read(DataInputStream dis, ConstantPool cpool, boolean b) throws IOException
toShortStringback to summary
public String toShortString()
toStringback to summary
public String toString()

Overrides java.lang.Object.toString.

Doc from java.lang.Object.toString.

Returns a string representation of the object.

Returns:String

a string representation of the object.

Annotations
@Override