public class TypeAnnotation
extends java.lang.Object
TypeAnnotation represents a JSR 308 Java Type Annotation.| Modifier and Type | Class and Description |
|---|---|
static class |
TypeAnnotation.CatchTarget |
static class |
TypeAnnotation.EmptyTarget |
static class |
TypeAnnotation.FormalParameterTarget |
static class |
TypeAnnotation.LocalVarTarget |
static class |
TypeAnnotation.OffsetTarget |
static class |
TypeAnnotation.SuperTypeTarget |
static class |
TypeAnnotation.ThrowsTarget |
static class |
TypeAnnotation.TypeAnnotationTarget
A
TypeAnnotation.TypeAnnotationTarget represents the "target" of a Type Annotation. |
static interface |
TypeAnnotation.TypeAnnotationTargetConverter
A @{TypeAnnotationTargetConverter} takes "unresolved" instances of
TypeAnnotationsReader.TypeAnnotationTarget, resolves some byte-code
specific data, and returns instances of the corresponding TypeAnnotation.TypeAnnotationTarget
subclass. |
static class |
TypeAnnotation.TypeArgumentTarget |
static class |
TypeAnnotation.TypeParameterBoundTarget |
static class |
TypeAnnotation.TypeParameterTarget |
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(java.lang.Object obj) |
Annotation |
getAnnotation() |
com.ibm.wala.shrikeCT.TypeAnnotationsReader.TargetType |
getTargetType() |
static java.util.Collection<TypeAnnotation> |
getTypeAnnotationsFromReader(com.ibm.wala.shrikeCT.TypeAnnotationsReader r,
TypeAnnotation.TypeAnnotationTargetConverter converter,
ClassLoaderReference clRef) |
TypeAnnotation.TypeAnnotationTarget |
getTypeAnnotationTarget() |
java.util.List<com.ibm.wala.util.collections.Pair<com.ibm.wala.shrikeCT.TypeAnnotationsReader.TypePathKind,java.lang.Integer>> |
getTypePath() |
int |
hashCode() |
static TypeAnnotation |
make(Annotation annotation,
java.util.List<com.ibm.wala.util.collections.Pair<com.ibm.wala.shrikeCT.TypeAnnotationsReader.TypePathKind,java.lang.Integer>> typePath,
TypeAnnotation.TypeAnnotationTarget typeAnnotationTarget,
com.ibm.wala.shrikeCT.TypeAnnotationsReader.TargetType targetType)
This method is intended to be used in testing only.
|
static TypeAnnotation |
make(Annotation annotation,
TypeAnnotation.TypeAnnotationTarget typeAnnotationTarget,
com.ibm.wala.shrikeCT.TypeAnnotationsReader.TargetType targetType)
This method is intended to be used in testing only.
|
static TypeAnnotation.TypeAnnotationTargetConverter |
targetConverterAtClassFile(ClassLoaderReference clRef) |
static TypeAnnotation.TypeAnnotationTargetConverter |
targetConverterAtCode(ClassLoaderReference clRef,
IBytecodeMethod<?> method) |
static TypeAnnotation.TypeAnnotationTargetConverter |
targetConverterAtFieldInfo() |
static TypeAnnotation.TypeAnnotationTargetConverter |
targetConverterAtMethodInfo(ClassLoaderReference clRef) |
java.lang.String |
toString() |
public java.lang.String toString()
toString in class java.lang.Objectpublic int hashCode()
hashCode in class java.lang.Objectpublic boolean equals(java.lang.Object obj)
equals in class java.lang.Objectpublic static java.util.Collection<TypeAnnotation> getTypeAnnotationsFromReader(com.ibm.wala.shrikeCT.TypeAnnotationsReader r, TypeAnnotation.TypeAnnotationTargetConverter converter, ClassLoaderReference clRef) throws com.ibm.wala.shrikeCT.InvalidClassFileException
com.ibm.wala.shrikeCT.InvalidClassFileExceptionpublic static TypeAnnotation make(Annotation annotation, java.util.List<com.ibm.wala.util.collections.Pair<com.ibm.wala.shrikeCT.TypeAnnotationsReader.TypePathKind,java.lang.Integer>> typePath, TypeAnnotation.TypeAnnotationTarget typeAnnotationTarget, com.ibm.wala.shrikeCT.TypeAnnotationsReader.TargetType targetType)
Otherwise, obtain TypeAnnotations from
TypeAnnotation comprised of annotation, typePath and targetTypepublic static TypeAnnotation make(Annotation annotation, TypeAnnotation.TypeAnnotationTarget typeAnnotationTarget, com.ibm.wala.shrikeCT.TypeAnnotationsReader.TargetType targetType)
Otherwise, obtain TypeAnnotations from
TypeAnnotation comprised of annotation, an empty typePath, and targetTypepublic static TypeAnnotation.TypeAnnotationTargetConverter targetConverterAtCode(ClassLoaderReference clRef, IBytecodeMethod<?> method)
public static TypeAnnotation.TypeAnnotationTargetConverter targetConverterAtMethodInfo(ClassLoaderReference clRef)
public static TypeAnnotation.TypeAnnotationTargetConverter targetConverterAtClassFile(ClassLoaderReference clRef)
public static TypeAnnotation.TypeAnnotationTargetConverter targetConverterAtFieldInfo()
public Annotation getAnnotation()
Annotation of this TypeAnnotationpublic java.util.List<com.ibm.wala.util.collections.Pair<com.ibm.wala.shrikeCT.TypeAnnotationsReader.TypePathKind,java.lang.Integer>> getTypePath()
TypeAnnotationpublic TypeAnnotation.TypeAnnotationTarget getTypeAnnotationTarget()
TypeAnnotation.TypeAnnotationTarget of this TypeAnnotationpublic com.ibm.wala.shrikeCT.TypeAnnotationsReader.TargetType getTargetType()
TypeAnnotationsReader.TargetType of this TypeAnnotation