Package org.aspectj.weaver
Klasse AjAttribute
java.lang.Object
org.aspectj.weaver.AjAttribute
- Bekannte direkte Unterklassen:
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.
- Autor:
- Erik Hilsdale, Jim Hugunin
-
Verschachtelte Klassen - Übersicht
Verschachtelte KlassenModifizierer und TypKlasseBeschreibungstatic classstatic classSynthetic members should have NO advice put on them or on their contents.static classstatic classstatic classstatic classstatic classstatic classstatic classstatic classstatic classstatic class -
Feldübersicht
Felder -
Konstruktorübersicht
Konstruktoren -
Methodenübersicht
Modifizierer und TypMethodeBeschreibungbyte[]getAllBytes(short nameIndex, ConstantPoolWriter dataCompressor) Writes the full attribute, i.e. name_index, length, and contentsbyte[]getBytes(ConstantPoolWriter compressor) Just writes the contentschar[]abstract Stringstatic AjAttributeread(AjAttribute.WeaverVersionInfo v, String name, byte[] bytes, ISourceContext context, World w, ConstantPoolReader dataDecompressor) protected abstract void
-
Felddetails
-
AttributePrefix
- Siehe auch:
-
-
Konstruktordetails
-
AjAttribute
public AjAttribute()
-
-
Methodendetails
-
write
- Löst aus:
IOException
-
getNameString
-
getNameChars
public char[] getNameChars() -
getBytes
Just writes the contents -
getAllBytes
Writes the full attribute, i.e. name_index, length, and contents- Parameter:
dataCompressor-
-
read
public static AjAttribute read(AjAttribute.WeaverVersionInfo v, String name, byte[] bytes, ISourceContext context, World w, ConstantPoolReader dataDecompressor)
-