Package org.aspectj.weaver.bcel
Klasse FakeAnnotation
java.lang.Object
org.aspectj.apache.bcel.classfile.annotation.AnnotationGen
org.aspectj.weaver.bcel.FakeAnnotation
For implementing declare @type interacting with declare @parents during compilation - we need to be able to add an annotation to
'binary type binding' (this is how types are seen during incremental compilation). Unlike a SourceTypeBinding - a
BinaryTypeBinding does not allow easy interaction with its annotations - so what we do is take the eclipse annotation, suck out
the name/signature and visibility and put that information in a 'FakeAnnotation'. The FakeAnnotation is attached to the BCEL
delegate for the binary type binding - this will allow type resolution to succeed correctly. The FakeAnnotation never makes it to
disk, since the weaver does the job properly, attaching a real annotation.
-
Feldübersicht
Von Klasse geerbte Felder org.aspectj.apache.bcel.classfile.annotation.AnnotationGen
NO_ANNOTATIONS -
Konstruktorübersicht
Konstruktoren -
Methodenübersicht
Modifizierer und TypMethodeBeschreibungvoidvoiddump(DataOutputStream dos) intbooleanprotected voidsetIsRuntimeVisible(boolean b) toString()Von Klasse geerbte Methoden org.aspectj.apache.bcel.classfile.annotation.AnnotationGen
hasNamedValue, hasNameValuePair, read
-
Konstruktordetails
-
FakeAnnotation
-
-
Methodendetails
-
getTypeName
- Setzt außer Kraft:
getTypeNamein KlasseAnnotationGen
-
getTypeSignature
- Setzt außer Kraft:
getTypeSignaturein KlasseAnnotationGen
-
addElementNameValuePair
- Setzt außer Kraft:
addElementNameValuePairin KlasseAnnotationGen
-
dump
- Setzt außer Kraft:
dumpin KlasseAnnotationGen- Löst aus:
IOException
-
getTypeIndex
public int getTypeIndex()- Setzt außer Kraft:
getTypeIndexin KlasseAnnotationGen
-
getValues
- Setzt außer Kraft:
getValuesin KlasseAnnotationGen
-
isRuntimeVisible
public boolean isRuntimeVisible()- Setzt außer Kraft:
isRuntimeVisiblein KlasseAnnotationGen
-
setIsRuntimeVisible
protected void setIsRuntimeVisible(boolean b) -
toShortString
- Setzt außer Kraft:
toShortStringin KlasseAnnotationGen
-
toString
- Setzt außer Kraft:
toStringin KlasseAnnotationGen
-