Package com.ibm.wala.shrike.shrikeCT
Class AnnotationsReader.AnnotationAttribute
- java.lang.Object
-
- com.ibm.wala.shrike.shrikeCT.AnnotationsReader.AnnotationAttribute
-
- All Implemented Interfaces:
AnnotationsReader.ElementValue
- Enclosing class:
- AnnotationsReader
public static class AnnotationsReader.AnnotationAttribute extends java.lang.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 implements
AnnotationsReader.ElementValueto handle nested annotations.
-
-
Field Summary
Fields Modifier and Type Field Description java.util.Map<java.lang.String,AnnotationsReader.ElementValue>elementValuesthe arguments to the annotationjava.lang.Stringtypethe type of the annotation
-
Constructor Summary
Constructors Constructor Description AnnotationAttribute(java.lang.String type, java.util.Map<java.lang.String,AnnotationsReader.ElementValue> elementValues)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.StringtoString()
-
-
-
Field Detail
-
type
public final java.lang.String type
the type of the annotation
-
elementValues
public final java.util.Map<java.lang.String,AnnotationsReader.ElementValue> elementValues
the arguments to the annotation
-
-
Constructor Detail
-
AnnotationAttribute
public AnnotationAttribute(java.lang.String type, java.util.Map<java.lang.String,AnnotationsReader.ElementValue> elementValues)
-
-