Package com.ibm.wala.shrikeCT
Class AnnotationsReader.AnnotationAttribute
- java.lang.Object
-
- com.ibm.wala.shrikeCT.AnnotationsReader.AnnotationAttribute
-
- All Implemented Interfaces:
AnnotationsReader.ElementValue
- Enclosing class:
- AnnotationsReader
public static class AnnotationsReader.AnnotationAttribute extends Object implements AnnotationsReader.ElementValue
Representation of an annotation attribute. An annotation has the following format in the bytecode:annotation { u2 type_index; u2 num_element_value_pairs; { u2 element_name_index; element_value value; } element_value_pairs[num_element_value_pairs];
See the JVM specification section 4.7.16 for details. This class implementsAnnotationsReader.ElementValue
to handle nested annotations.
-
-
Field Summary
Fields Modifier and Type Field Description Map<String,AnnotationsReader.ElementValue>
elementValues
the arguments to the annotationString
type
the type of the annotation
-
Constructor Summary
Constructors Constructor Description AnnotationAttribute(String type, Map<String,AnnotationsReader.ElementValue> elementValues)
-
-
-
Field Detail
-
type
public final String type
the type of the annotation
-
elementValues
public final Map<String,AnnotationsReader.ElementValue> elementValues
the arguments to the annotation
-
-
Constructor Detail
-
AnnotationAttribute
public AnnotationAttribute(String type, Map<String,AnnotationsReader.ElementValue> elementValues)
-
-