forked from amosshi/binaryinternals
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
FormatCLASS - JVM 8 Runtime Type Annotations
- Loading branch information
Showing
50 changed files
with
847 additions
and
184 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
46 changes: 46 additions & 0 deletions
46
...LASS/src/org/freeinternals/format/classfile/AttributeRuntimeInvisibleTypeAnnotations.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,46 @@ | ||
/* | ||
* To change this license header, choose License Headers in Project Properties. | ||
* To change this template file, choose Tools | Templates | ||
* and open the template in the editor. | ||
*/ | ||
package org.freeinternals.format.classfile; | ||
|
||
import java.io.IOException; | ||
import org.freeinternals.commonlib.core.PosDataInputStream; | ||
import org.freeinternals.format.FileFormatException; | ||
|
||
/** | ||
* The RuntimeInvisibleTypeAnnotations attribute records run-time invisible | ||
* annotations on types used in the corresponding declaration of a class, field, | ||
* or method, or in an expression in the corresponding method body. The | ||
* RuntimeInvisibleTypeAnnotations attribute also records annotations on type | ||
* parameter declarations of generic classes, interfaces, methods, and | ||
* constructors. | ||
* | ||
* The RuntimeInvisibleTypeAnnotations attribute has the following format: | ||
* <pre> | ||
* RuntimeInvisibleTypeAnnotations_attribute { | ||
* u2 attribute_name_index; | ||
* u4 attribute_length; | ||
* u2 num_annotations; | ||
* type_annotation annotations[num_annotations]; | ||
* } | ||
* </pre> | ||
* | ||
* @author Amos Shi | ||
* @since JDK 8.0 | ||
* @see <a | ||
* href="https://docs.oracle.com/javase/specs/jvms/se8/html/jvms-4.html#jvms-4.7.21"> | ||
* VM Spec: The RuntimeInvisibleTypeAnnotations Attribute | ||
* </a> | ||
*/ | ||
public class AttributeRuntimeInvisibleTypeAnnotations extends AttributeRuntimeTypeAnnotations { | ||
|
||
public AttributeRuntimeInvisibleTypeAnnotations( | ||
u2 nameIndex, | ||
String name, | ||
PosDataInputStream posDataInputStream) | ||
throws IOException, FileFormatException { | ||
super(nameIndex, name, posDataInputStream); | ||
} | ||
} |
Oops, something went wrong.