Package org.aspectj.weaver
Class AjAttribute
java.lang.Object
org.aspectj.weaver.AjAttribute
- Direct Known Subclasses:
AjAttribute.AdviceAttribute
,AjAttribute.AjSynthetic
,AjAttribute.Aspect
,AjAttribute.DeclareAttribute
,AjAttribute.EffectiveSignatureAttribute
,AjAttribute.MethodDeclarationLineNumberAttribute
,AjAttribute.PointcutDeclarationAttribute
,AjAttribute.PrivilegedAttribute
,AjAttribute.SourceContextAttribute
,AjAttribute.TypeMunger
,AjAttribute.WeaverState
,AjAttribute.WeaverVersionInfo
These attributes are written to and read from .class files (see the JVM spec).
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.
- Author:
- Erik Hilsdale, Jim Hugunin
-
Nested Class Summary
Modifier and TypeClassDescriptionstatic class
static class
Synthetic members should have NO advice put on them or on their contents.static class
static class
static class
static class
static class
static class
static class
static class
static class
static class
-
Field Summary
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionbyte[]
getAllBytes
(short nameIndex, ConstantPoolWriter dataCompressor) Writes the full attribute, i.e.byte[]
getBytes
(ConstantPoolWriter compressor) Just writes the contentschar[]
abstract String
static AjAttribute
read
(AjAttribute.WeaverVersionInfo v, String name, byte[] bytes, ISourceContext context, World w, ConstantPoolReader dataDecompressor) protected abstract void
-
Field Details
-
AttributePrefix
- See Also:
-
-
Constructor Details
-
AjAttribute
public AjAttribute()
-
-
Method Details
-
write
- Throws:
IOException
-
getNameString
-
getNameChars
public char[] getNameChars() -
getBytes
Just writes the contents -
getAllBytes
Writes the full attribute, i.e. name_index, length, and contents- Parameters:
dataCompressor
-
-
read
public static AjAttribute read(AjAttribute.WeaverVersionInfo v, String name, byte[] bytes, ISourceContext context, World w, ConstantPoolReader dataDecompressor)
-