public class AnnotationEntry extends Object implements Constants
ACC_ABSTRACT, ACC_ANNOTATION, ACC_FINAL, ACC_INTERFACE, APPEND_FRAME, APPEND_FRAME_MAX, ATTR_ANNOTATION_DEFAULT, ATTR_BOOTSTRAP_METHODS, ATTR_CODE, ATTR_CONSTANT_VALUE, ATTR_DEPRECATED, ATTR_ENCLOSING_METHOD, ATTR_EXCEPTIONS, ATTR_INNER_CLASSES, ATTR_LINE_NUMBER_TABLE, ATTR_LOCAL_VARIABLE_TABLE, ATTR_LOCAL_VARIABLE_TYPE_TABLE, ATTR_METHOD_PARAMETERS, ATTR_PMG, ATTR_RUNTIME_INVISIBLE_ANNOTATIONS, ATTR_RUNTIME_INVISIBLE_PARAMETER_ANNOTATIONS, ATTR_RUNTIME_VISIBLE_ANNOTATIONS, ATTR_RUNTIME_VISIBLE_PARAMETER_ANNOTATIONS, ATTR_SIGNATURE, ATTR_SOURCE_FILE, ATTR_STACK_MAP, ATTR_STACK_MAP_TABLE, ATTR_SYNTHETIC, ATTR_UNKNOWN, ATTRIBUTE_NAMES, CHOP_FRAME, CHOP_FRAME_MAX, CONSTANT_Class, CONSTANT_Double, CONSTANT_Fieldref, CONSTANT_Float, CONSTANT_Integer, CONSTANT_InterfaceMethodref, CONSTANT_InvokeDynamic, CONSTANT_Long, CONSTANT_MethodHandle, CONSTANT_Methodref, CONSTANT_MethodType, CONSTANT_NameAndType, CONSTANT_NAMES, CONSTANT_String, CONSTANT_Utf8, FULL_FRAME, ITEM_Bogus, ITEM_NewObject, ITEM_Object, KNOWN_ATTRIBUTES, SAME_FRAME, SAME_FRAME_EXTENDED, SAME_FRAME_MAX, SAME_LOCALS_1_STACK_ITEM_FRAME, SAME_LOCALS_1_STACK_ITEM_FRAME_EXTENDED, SAME_LOCALS_1_STACK_ITEM_FRAME_MAX
Constructor and Description |
---|
AnnotationEntry(int type_index,
ConstantPool constant_pool) |
Modifier and Type | Method and Description |
---|---|
String |
getAnnotationType() |
ElementValuePair[] |
getElementValuePairs() |
static AnnotationEntry |
read(DataInputStream file,
ConstantPool constant_pool)
Factory method to create an AnnotionEntry from a DataInputStream
|
public AnnotationEntry(int type_index, ConstantPool constant_pool)
public static AnnotationEntry read(DataInputStream file, ConstantPool constant_pool) throws IOException
file
- constant_pool
- IOException
public String getAnnotationType()
public ElementValuePair[] getElementValuePairs()
Copyright © 2000-2014 Apache Software Foundation. All Rights Reserved.