@@ -51,7 +51,10 @@ public class AttributeInfo {
5151 public const string StackMapTable = "StackMapTable" ;
5252 public const string RuntimeVisibleAnnotations = "RuntimeVisibleAnnotations" ;
5353 public const string RuntimeInvisibleAnnotations = "RuntimeInvisibleAnnotations" ;
54+ public const string RuntimeVisibleParameterAnnotations = "RuntimeVisibleParameterAnnotations" ;
5455 public const string RuntimeInvisibleParameterAnnotations = "RuntimeInvisibleParameterAnnotations" ;
56+ public const string RuntimeVisibleTypeAnnotations = "RuntimeVisibleTypeAnnotations" ;
57+ public const string RuntimeInvisibleTypeAnnotations = "RuntimeInvisibleTypeAnnotations" ;
5558
5659 ushort nameIndex ;
5760
@@ -85,6 +88,10 @@ public string Name {
8588 { typeof ( ModulePackagesAttribute ) , ModulePackages } ,
8689 { typeof ( RuntimeVisibleAnnotationsAttribute ) , RuntimeVisibleAnnotations } ,
8790 { typeof ( RuntimeInvisibleAnnotationsAttribute ) , RuntimeInvisibleAnnotations } ,
91+ { typeof ( RuntimeVisibleParameterAnnotationsAttribute ) , RuntimeVisibleParameterAnnotations } ,
92+ { typeof ( RuntimeInvisibleParameterAnnotationsAttribute ) , RuntimeInvisibleParameterAnnotations } ,
93+ { typeof ( RuntimeVisibleTypeAnnotationsAttribute ) , RuntimeVisibleTypeAnnotations } ,
94+ { typeof ( RuntimeInvisibleTypeAnnotationsAttribute ) , RuntimeInvisibleTypeAnnotations } ,
8895 { typeof ( SignatureAttribute ) , Signature } ,
8996 { typeof ( SourceFileAttribute ) , SourceFile } ,
9097 { typeof ( StackMapTableAttribute ) , StackMapTable } ,
@@ -123,7 +130,10 @@ static AttributeInfo CreateAttribute (string name, ConstantPool constantPool, us
123130 case ModulePackages : return new ModulePackagesAttribute ( constantPool , nameIndex , stream ) ;
124131 case RuntimeVisibleAnnotations : return new RuntimeVisibleAnnotationsAttribute ( constantPool , nameIndex , stream ) ;
125132 case RuntimeInvisibleAnnotations : return new RuntimeInvisibleAnnotationsAttribute ( constantPool , nameIndex , stream ) ;
133+ case RuntimeVisibleParameterAnnotations : return new RuntimeVisibleParameterAnnotationsAttribute ( constantPool , nameIndex , stream ) ;
126134 case RuntimeInvisibleParameterAnnotations : return new RuntimeInvisibleParameterAnnotationsAttribute ( constantPool , nameIndex , stream ) ;
135+ case RuntimeVisibleTypeAnnotations : return new RuntimeVisibleTypeAnnotationsAttribute ( constantPool , nameIndex , stream ) ;
136+ case RuntimeInvisibleTypeAnnotations : return new RuntimeInvisibleTypeAnnotationsAttribute ( constantPool , nameIndex , stream ) ;
127137 case Signature : return new SignatureAttribute ( constantPool , nameIndex , stream ) ;
128138 case SourceFile : return new SourceFileAttribute ( constantPool , nameIndex , stream ) ;
129139 case StackMapTable : return new StackMapTableAttribute ( constantPool , nameIndex , stream ) ;
@@ -671,6 +681,31 @@ public override string ToString ()
671681 }
672682
673683
684+ // https://docs.oracle.com/javase/specs/jvms/se8/html/jvms-4.html#jvms-4.7.18
685+ public sealed class RuntimeVisibleParameterAnnotationsAttribute : AttributeInfo
686+ {
687+ public IList < ParameterAnnotation > Annotations { get ; } = new List < ParameterAnnotation > ( ) ;
688+
689+ public RuntimeVisibleParameterAnnotationsAttribute ( ConstantPool constantPool , ushort nameIndex , Stream stream )
690+ : base ( constantPool , nameIndex , stream )
691+ {
692+ var length = stream . ReadNetworkUInt32 ( ) ;
693+ var param_count = stream . ReadNetworkByte ( ) ;
694+
695+ for ( var i = 0 ; i < param_count ; ++ i ) {
696+ var a = new ParameterAnnotation ( constantPool , stream , i ) ;
697+ Annotations . Add ( a ) ;
698+ }
699+ }
700+
701+ public override string ToString ( )
702+ {
703+ var annotations = string . Join ( ", " , Annotations . Select ( v => v . ToString ( ) ) ) ;
704+ return $ "RuntimeVisibleParameterAnnotationsAttribute({ annotations } )";
705+ }
706+ }
707+
708+
674709 // https://docs.oracle.com/javase/specs/jvms/se7/html/jvms-4.html#jvms-4.7.19
675710 public sealed class RuntimeInvisibleParameterAnnotationsAttribute : AttributeInfo
676711 {
@@ -695,6 +730,52 @@ public override string ToString ()
695730 }
696731 }
697732
733+ // https://docs.oracle.com/javase/specs/jvms/se8/html/jvms-4.html#jvms-4.7.20
734+ public sealed class RuntimeVisibleTypeAnnotationsAttribute : AttributeInfo
735+ {
736+ public IList < TypeAnnotation > Annotations { get ; } = new List < TypeAnnotation > ( ) ;
737+
738+ public RuntimeVisibleTypeAnnotationsAttribute ( ConstantPool constantPool , ushort nameIndex , Stream stream )
739+ : base ( constantPool , nameIndex , stream )
740+ {
741+ var length = stream . ReadNetworkUInt32 ( ) ;
742+ var count = stream . ReadNetworkUInt16 ( ) ;
743+
744+ for ( int i = 0 ; i < count ; ++ i ) {
745+ Annotations . Add ( new TypeAnnotation ( constantPool , stream ) ) ;
746+ }
747+ }
748+
749+ public override string ToString ( )
750+ {
751+ var annotations = string . Join ( ", " , Annotations . Select ( v => v . ToString ( ) ) ) ;
752+ return $ "RuntimeVisibleTypeAnnotations({ annotations } )";
753+ }
754+ }
755+
756+ // https://docs.oracle.com/javase/specs/jvms/se8/html/jvms-4.html#jvms-4.7.21
757+ public sealed class RuntimeInvisibleTypeAnnotationsAttribute : AttributeInfo
758+ {
759+ public IList < TypeAnnotation > Annotations { get ; } = new List < TypeAnnotation > ( ) ;
760+
761+ public RuntimeInvisibleTypeAnnotationsAttribute ( ConstantPool constantPool , ushort nameIndex , Stream stream )
762+ : base ( constantPool , nameIndex , stream )
763+ {
764+ var length = stream . ReadNetworkUInt32 ( ) ;
765+ var count = stream . ReadNetworkUInt16 ( ) ;
766+
767+ for ( int i = 0 ; i < count ; ++ i ) {
768+ Annotations . Add ( new TypeAnnotation ( constantPool , stream ) ) ;
769+ }
770+ }
771+
772+ public override string ToString ( )
773+ {
774+ var annotations = string . Join ( ", " , Annotations . Select ( v => v . ToString ( ) ) ) ;
775+ return $ "RuntimeInvisibleTypeAnnotations({ annotations } )";
776+ }
777+ }
778+
698779 // http://docs.oracle.com/javase/specs/jvms/se7/html/jvms-4.html#jvms-4.7.9
699780 public sealed class SignatureAttribute : AttributeInfo {
700781
0 commit comments