Class Annotations
java.lang.Object
de.inetsoftware.classparser.Annotations
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionread(DataInputStream input, ConstantPool constantPool) Read the annotations structure.private static ObjectreadElementValue(DataInputStream input, ConstantPool constantPool) Read a single element value
-
Constructor Details
-
Annotations
public Annotations()
-
-
Method Details
-
read
static Map<String, Map<String,Object>> read(DataInputStream input, ConstantPool constantPool) throws IOException Read the annotations structure. http://docs.oracle.com/javase/specs/jvms/se7/html/jvms-4.html#jvms-4.7.17- Parameters:
input- the stream of the RuntimeInvisibleAnnotations attributeconstantPool- the ConstantPool of the class- Returns:
- the map of the annotation names to its attributes
- Throws:
IOException- if an I/O error occurs
-
readElementValue
private static Object readElementValue(DataInputStream input, ConstantPool constantPool) throws IOException Read a single element value- Parameters:
input- the stream of the RuntimeInvisibleAnnotations attributeconstantPool- the ConstantPool of the class- Returns:
- the value
- Throws:
IOException- if an I/O error occurs
-