public abstract class AjAttribute
extends java.lang.Object
Each member or type can have a number of AjAttributes. Each such attribute is in 1-1 correspondence with an Unknown bcel attribute. Creating one of these does NOTHING to the underlying thing, so if you really want to add an attribute to a particular thing, well, you'd better actually do that.
Modifier and Type | Class and Description |
---|---|
static class |
AjAttribute.AdviceAttribute |
static class |
AjAttribute.AjSynthetic
Synthetic members should have NO advice put on them or on their contents.
|
static class |
AjAttribute.Aspect |
static class |
AjAttribute.DeclareAttribute |
static class |
AjAttribute.EffectiveSignatureAttribute |
static class |
AjAttribute.MethodDeclarationLineNumberAttribute |
static class |
AjAttribute.PointcutDeclarationAttribute |
static class |
AjAttribute.PrivilegedAttribute |
static class |
AjAttribute.SourceContextAttribute |
static class |
AjAttribute.TypeMunger |
static class |
AjAttribute.WeaverState |
static class |
AjAttribute.WeaverVersionInfo |
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
AttributePrefix |
Constructor and Description |
---|
AjAttribute() |
Modifier and Type | Method and Description |
---|---|
byte[] |
getAllBytes(short nameIndex,
ConstantPoolWriter dataCompressor)
Writes the full attribute, i.e.
|
byte[] |
getBytes(ConstantPoolWriter compressor)
Just writes the contents
|
char[] |
getNameChars() |
abstract java.lang.String |
getNameString() |
static AjAttribute |
read(AjAttribute.WeaverVersionInfo v,
java.lang.String name,
byte[] bytes,
ISourceContext context,
World w,
ConstantPoolReader dataDecompressor) |
protected abstract void |
write(CompressingDataOutputStream s) |
public static final java.lang.String AttributePrefix
protected abstract void write(CompressingDataOutputStream s) throws java.io.IOException
java.io.IOException
public abstract java.lang.String getNameString()
public char[] getNameChars()
public byte[] getBytes(ConstantPoolWriter compressor)
public byte[] getAllBytes(short nameIndex, ConstantPoolWriter dataCompressor)
constantPool
- public static AjAttribute read(AjAttribute.WeaverVersionInfo v, java.lang.String name, byte[] bytes, ISourceContext context, World w, ConstantPoolReader dataDecompressor)