Beispiel #1
0
 public override AnnotationVisitor VisitTypeAnnotation(int typeRef, TypePath typePath
                                                       , string descriptor, bool visible)
 {
     if (visible)
     {
         return(lastRuntimeVisibleTypeAnnotation = AnnotationWriter.Create(symbolTable, typeRef
                                                                           , typePath, descriptor, lastRuntimeVisibleTypeAnnotation));
     }
     return(lastRuntimeInvisibleTypeAnnotation = AnnotationWriter.Create(symbolTable,
                                                                         typeRef, typePath, descriptor, lastRuntimeInvisibleTypeAnnotation));
 }
Beispiel #2
0
 // -----------------------------------------------------------------------------------------------
 // Implementation of the FieldVisitor abstract class
 // -----------------------------------------------------------------------------------------------
 public override AnnotationVisitor VisitAnnotation(string descriptor, bool visible
                                                   )
 {
     if (visible)
     {
         return(lastRuntimeVisibleAnnotation = AnnotationWriter.Create(symbolTable, descriptor
                                                                       , lastRuntimeVisibleAnnotation));
     }
     return(lastRuntimeInvisibleAnnotation = AnnotationWriter.Create(symbolTable, descriptor
                                                                     , lastRuntimeInvisibleAnnotation));
 }