< prev index next >

test/langtools/lib/annotations/annotations/classfile/ClassfileInspector.java

Print this page




1344 
1345         @Override
1346         public Void visitSourceID(SourceID_attribute attr, T p) {
1347             return null;
1348         }
1349 
1350         @Override
1351         public Void visitStackMap(StackMap_attribute attr, T p) {
1352             return null;
1353         }
1354 
1355         @Override
1356         public Void visitStackMapTable(StackMapTable_attribute attr, T p) {
1357             return null;
1358         }
1359 
1360         @Override
1361         public Void visitSynthetic(Synthetic_attribute attr, T p) {
1362             return null;
1363         }










1364     }
1365 
1366     private static final Attribute.Visitor<Void, ExpectedTypeAnnotation> typeAnnoMatcher
1367             = new AbstractAttributeVisitor<ExpectedTypeAnnotation>() {
1368 
1369                 @Override
1370                 public Void visitRuntimeVisibleTypeAnnotations(RuntimeVisibleTypeAnnotations_attribute attr,
1371                         ExpectedTypeAnnotation expected) {
1372                     if (expected.matchVisibility(true)) {
1373                         for (TypeAnnotation anno : attr.annotations) {
1374                             expected.matchAnnotation(anno);
1375                         }
1376                     }
1377 
1378                     return null;
1379                 }
1380 
1381                 @Override
1382                 public Void visitRuntimeInvisibleTypeAnnotations(RuntimeInvisibleTypeAnnotations_attribute attr,
1383                         ExpectedTypeAnnotation expected) {




1344 
1345         @Override
1346         public Void visitSourceID(SourceID_attribute attr, T p) {
1347             return null;
1348         }
1349 
1350         @Override
1351         public Void visitStackMap(StackMap_attribute attr, T p) {
1352             return null;
1353         }
1354 
1355         @Override
1356         public Void visitStackMapTable(StackMapTable_attribute attr, T p) {
1357             return null;
1358         }
1359 
1360         @Override
1361         public Void visitSynthetic(Synthetic_attribute attr, T p) {
1362             return null;
1363         }
1364 
1365         @Override
1366         public Void visitPermittedSubtypes(PermittedSubtypes_attribute attr, T p) {
1367             return null;
1368         }
1369 
1370         @Override
1371         public Void visitRecord(Record_attribute attr, T p) {
1372             return null;
1373         }
1374     }
1375 
1376     private static final Attribute.Visitor<Void, ExpectedTypeAnnotation> typeAnnoMatcher
1377             = new AbstractAttributeVisitor<ExpectedTypeAnnotation>() {
1378 
1379                 @Override
1380                 public Void visitRuntimeVisibleTypeAnnotations(RuntimeVisibleTypeAnnotations_attribute attr,
1381                         ExpectedTypeAnnotation expected) {
1382                     if (expected.matchVisibility(true)) {
1383                         for (TypeAnnotation anno : attr.annotations) {
1384                             expected.matchAnnotation(anno);
1385                         }
1386                     }
1387 
1388                     return null;
1389                 }
1390 
1391                 @Override
1392                 public Void visitRuntimeInvisibleTypeAnnotations(RuntimeInvisibleTypeAnnotations_attribute attr,
1393                         ExpectedTypeAnnotation expected) {


< prev index next >