public class TypeAnnotationsReader extends AnnotationsReader
AnnotationsReader.AnnotationAttribute, AnnotationsReader.ArrayElementValue, AnnotationsReader.ConstantElementValue, AnnotationsReader.ElementValue, AnnotationsReader.EnumElementValue| Modifier and Type | Field and Description |
|---|---|
static java.util.List<com.ibm.wala.util.collections.Pair<TypeAnnotationsReader.TypePathKind,java.lang.Integer>> |
TYPEPATH_EMPTY |
beginOffsetattr, cr, length| Modifier | Constructor and Description |
|---|---|
protected |
TypeAnnotationsReader(ClassReader.AttrIterator iter,
java.lang.String label,
ExceptionsReader exceptionReader,
CodeReader codeReader,
SignatureReader signatureReader,
TypeAnnotationsReader.TypeAnnotationLocation location) |
getAllAnnotations, getAllParameterAnnotations, getAnnotationCount, getAttributeAndSize, getAttributeSize, getReaderForAnnotation, getUtf8ConstantPoolValue, readElementValueAndSizecheckSize, checkSizeEquals, getClassReader, getRawOffset, getRawSizepublic static final java.util.List<com.ibm.wala.util.collections.Pair<TypeAnnotationsReader.TypePathKind,java.lang.Integer>> TYPEPATH_EMPTY
protected TypeAnnotationsReader(ClassReader.AttrIterator iter, java.lang.String label, ExceptionsReader exceptionReader, CodeReader codeReader, SignatureReader signatureReader, TypeAnnotationsReader.TypeAnnotationLocation location) throws InvalidClassFileException
InvalidClassFileExceptionpublic static TypeAnnotationsReader getTypeAnnotationReaderAtClassfile(ClassReader.AttrIterator iter, java.lang.String label, SignatureReader signatureReader) throws InvalidClassFileException
InvalidClassFileExceptionpublic static TypeAnnotationsReader getTypeAnnotationReaderAtMethodInfo(ClassReader.AttrIterator iter, java.lang.String label, ExceptionsReader exceptionReader, SignatureReader signatureReader) throws InvalidClassFileException
InvalidClassFileExceptionpublic static TypeAnnotationsReader getTypeAnnotationReaderAtFieldInfo(ClassReader.AttrIterator iter, java.lang.String label) throws InvalidClassFileException
InvalidClassFileExceptionpublic static TypeAnnotationsReader getTypeAnnotationReaderAtCode(ClassReader.AttrIterator iter, java.lang.String label, CodeReader codeReader) throws InvalidClassFileException
InvalidClassFileExceptionpublic TypeAnnotationsReader.TypeAnnotationAttribute[] getAllTypeAnnotations() throws InvalidClassFileException
RuntimeVisibleTypeAnnotations_attribute {
u2 attribute_name_index;
u4 attribute_length;
u2 num_annotations;
type_annotation annotations[num_annotations];
}
InvalidClassFileExceptionpublic static boolean isKnownAnnotation(java.lang.String name)
public static TypeAnnotationsReader getReaderForAnnotationAtClassfile(TypeAnnotationsReader.AnnotationType type, ClassReader.AttrIterator iter, SignatureReader signatureReader)
public static TypeAnnotationsReader getReaderForAnnotationAtMethodInfo(TypeAnnotationsReader.AnnotationType type, ClassReader.AttrIterator iter, ExceptionsReader exceptionReader, SignatureReader signatureReader)
public static TypeAnnotationsReader getReaderForAnnotationAtFieldInfo(TypeAnnotationsReader.AnnotationType type, ClassReader.AttrIterator iter)
public static TypeAnnotationsReader getReaderForAnnotationAtCode(TypeAnnotationsReader.AnnotationType type, ClassReader.AttrIterator iter, CodeReader codereader)