public class AnnotationDefaultAttribute extends AttributeInfo
| Modifier and Type | Field and Description |
|---|---|
static String |
tag
The name of the
AnnotationDefault attribute. |
constPool, info, name| Constructor and Description |
|---|
AnnotationDefaultAttribute(ConstPool cp)
Constructs an empty
AnnotationDefault_attribute. |
AnnotationDefaultAttribute(ConstPool cp,
byte[] info)
Constructs an
AnnotationDefault_attribute. |
AnnotationDefaultAttribute(ConstPool cp,
int n,
DataInput in) |
| Modifier and Type | Method and Description |
|---|---|
AttributeInfo |
copy(ConstPool newCp,
Map<?,?> classnames)
Copies this attribute and returns a new copy.
|
MemberValue |
getDefaultValue()
Obtains the default value represented by this attribute.
|
void |
setDefaultValue(MemberValue value)
Changes the default value represented by this attribute.
|
String |
toString()
Returns a string representation of this object.
|
copyAll, get, getConstPool, getLength, getName, length, lookup, read, remove, renameClass, renameClass, set, writeAllpublic static final String tag
AnnotationDefault attribute.public AnnotationDefaultAttribute(ConstPool cp, byte[] info)
AnnotationDefault_attribute.cp - constant poolinfo - the contents of this attribute. It does not
include attribute_name_index or
attribute_length.public AnnotationDefaultAttribute(ConstPool cp)
AnnotationDefault_attribute.
The default value can be set by setDefaultValue().cp - constant pool#setDefaultValue(javassist.bytecode.annotation.MemberValue)public AnnotationDefaultAttribute(ConstPool cp, int n, DataInput in) throws IOException
n - the attribute name.IOExceptionpublic AttributeInfo copy(ConstPool newCp, Map<?,?> classnames)
copy in class AttributeInfonewCp - the constant pool table used by the new copy.classnames - pairs of replaced and substituted
class names.public MemberValue getDefaultValue()
public void setDefaultValue(MemberValue value)
value - the new value.javassist.bytecode.annotation.Annotation#createMemberValue(ConstPool, CtClass)Copyright © December 07, 2012–2015 The Internet Party. All rights reserved.