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
-
Methodenübersicht
Modifizierer und TypMethodeBeschreibungvoid
void
dump
(DataOutputStream dos) int
boolean
protected void
setIsRuntimeVisible
(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:
getTypeName
in KlasseAnnotationGen
-
getTypeSignature
- Setzt außer Kraft:
getTypeSignature
in KlasseAnnotationGen
-
addElementNameValuePair
- Setzt außer Kraft:
addElementNameValuePair
in KlasseAnnotationGen
-
dump
- Setzt außer Kraft:
dump
in KlasseAnnotationGen
- Löst aus:
IOException
-
getTypeIndex
public int getTypeIndex()- Setzt außer Kraft:
getTypeIndex
in KlasseAnnotationGen
-
getValues
- Setzt außer Kraft:
getValues
in KlasseAnnotationGen
-
isRuntimeVisible
public boolean isRuntimeVisible()- Setzt außer Kraft:
isRuntimeVisible
in KlasseAnnotationGen
-
setIsRuntimeVisible
protected void setIsRuntimeVisible(boolean b) -
toShortString
- Setzt außer Kraft:
toShortString
in KlasseAnnotationGen
-
toString
- Setzt außer Kraft:
toString
in KlasseAnnotationGen
-