Class TypeAnnotation
java.lang.Object
com.ibm.wala.types.annotations.TypeAnnotation
A
TypeAnnotation
represents a JSR 308 Java Type Annotation.- Author:
- Martin Hecker martin.hecker@kit.edu
- See Also:
-
Nested Class Summary
Modifier and TypeClassDescriptionstatic class
static class
static class
static class
static class
static class
static class
static class
ATypeAnnotation.TypeAnnotationTarget
represents the "target" of a Type Annotation.static interface
A @{TypeAnnotationTargetConverter} takes "unresolved" instances ofTypeAnnotationsReader.TypeAnnotationTarget
, resolves some byte-code specific data, and returns instances of the correspondingTypeAnnotation.TypeAnnotationTarget
subclass.static class
static class
static class
-
Method Summary
Modifier and TypeMethodDescriptionboolean
static Collection
<TypeAnnotation> getTypeAnnotationsFromReader
(TypeAnnotationsReader r, TypeAnnotation.TypeAnnotationTargetConverter converter, ClassLoaderReference clRef) int
hashCode()
static TypeAnnotation
make
(Annotation annotation, TypeAnnotation.TypeAnnotationTarget typeAnnotationTarget, TypeAnnotationsReader.TargetType targetType) This method is intended to be used in testing only.static TypeAnnotation
make
(Annotation annotation, List<Pair<TypeAnnotationsReader.TypePathKind, Integer>> typePath, TypeAnnotation.TypeAnnotationTarget typeAnnotationTarget, TypeAnnotationsReader.TargetType targetType) This method is intended to be used in testing only.targetConverterAtCode
(ClassLoaderReference clRef, IBytecodeMethod<?> method) toString()
-
Method Details
-
toString
-
hashCode
-
equals
-
getTypeAnnotationsFromReader
public static Collection<TypeAnnotation> getTypeAnnotationsFromReader(TypeAnnotationsReader r, TypeAnnotation.TypeAnnotationTargetConverter converter, ClassLoaderReference clRef) throws InvalidClassFileException - Throws:
InvalidClassFileException
-
make
public static TypeAnnotation make(Annotation annotation, List<Pair<TypeAnnotationsReader.TypePathKind, Integer>> typePath, TypeAnnotation.TypeAnnotationTarget typeAnnotationTarget, TypeAnnotationsReader.TargetType targetType) This method is intended to be used in testing only.Otherwise, obtain TypeAnnotations from
- Returns:
- A
TypeAnnotation
comprised of annotation, typePath and targetType
-
make
public static TypeAnnotation make(Annotation annotation, TypeAnnotation.TypeAnnotationTarget typeAnnotationTarget, TypeAnnotationsReader.TargetType targetType) This method is intended to be used in testing only.Otherwise, obtain TypeAnnotations from
- Returns:
- A
TypeAnnotation
comprised of annotation, an empty typePath, and targetType
-
targetConverterAtCode
public static TypeAnnotation.TypeAnnotationTargetConverter targetConverterAtCode(ClassLoaderReference clRef, IBytecodeMethod<?> method) -
targetConverterAtMethodInfo
public static TypeAnnotation.TypeAnnotationTargetConverter targetConverterAtMethodInfo(ClassLoaderReference clRef) -
targetConverterAtClassFile
public static TypeAnnotation.TypeAnnotationTargetConverter targetConverterAtClassFile(ClassLoaderReference clRef) -
targetConverterAtFieldInfo
-
getAnnotation
- Returns:
- the
Annotation
of thisTypeAnnotation
-
getTypePath
- Returns:
- the typePath of this
TypeAnnotation
- See Also:
-
getTypeAnnotationTarget
- Returns:
- the
TypeAnnotation.TypeAnnotationTarget
of thisTypeAnnotation
-
getTargetType
- Returns:
- the
TypeAnnotationsReader.TargetType
of thisTypeAnnotation
-