public class Annotation
extends java.lang.Object
| Modifier and Type | Method and Description |
|---|---|
protected static java.util.Collection<Annotation> |
convertToAnnotations(ClassLoaderReference clRef,
com.ibm.wala.shrikeCT.AnnotationsReader.AnnotationAttribute[] allAnnotations) |
boolean |
equals(java.lang.Object obj) |
static java.util.Collection<Annotation> |
getAnnotationsFromReader(com.ibm.wala.shrikeCT.AnnotationsReader r,
ClassLoaderReference clRef) |
java.util.Map<java.lang.String,com.ibm.wala.shrikeCT.AnnotationsReader.ElementValue> |
getNamedArguments()
Get the named arguments to the annotation, represented as a mapping from name to value
|
static java.util.Collection<Annotation>[] |
getParameterAnnotationsFromReader(com.ibm.wala.shrikeCT.AnnotationsReader r,
ClassLoaderReference clRef)
If r != null, return parameter annotations as an array with length equal to number of
annotatable parameters.
|
TypeReference |
getType()
Get the type of the annotation
|
com.ibm.wala.util.collections.Pair<TypeReference,java.lang.Object>[] |
getUnnamedArguments()
Get the unnamed arguments to the annotation (e.g., constructor arguments for C# attributes),
represented as an array of pairs (T,V), where T is the argument type and V is the value.
|
int |
hashCode() |
static Annotation |
make(TypeReference t) |
static Annotation |
makeUnnamedAndNamed(TypeReference t,
java.util.Map<java.lang.String,com.ibm.wala.shrikeCT.AnnotationsReader.ElementValue> namedArguments,
com.ibm.wala.util.collections.Pair<TypeReference,java.lang.Object>[] unnamedArguments) |
static Annotation |
makeWithNamed(TypeReference t,
java.util.Map<java.lang.String,com.ibm.wala.shrikeCT.AnnotationsReader.ElementValue> namedArguments) |
static Annotation |
makeWithUnnamed(TypeReference t,
com.ibm.wala.util.collections.Pair<TypeReference,java.lang.Object>[] unnamedArguments) |
java.lang.String |
toString() |
public static Annotation makeUnnamedAndNamed(TypeReference t, java.util.Map<java.lang.String,com.ibm.wala.shrikeCT.AnnotationsReader.ElementValue> namedArguments, com.ibm.wala.util.collections.Pair<TypeReference,java.lang.Object>[] unnamedArguments)
public static Annotation makeWithUnnamed(TypeReference t, com.ibm.wala.util.collections.Pair<TypeReference,java.lang.Object>[] unnamedArguments)
public static Annotation make(TypeReference t)
public static Annotation makeWithNamed(TypeReference t, java.util.Map<java.lang.String,com.ibm.wala.shrikeCT.AnnotationsReader.ElementValue> namedArguments)
public static java.util.Collection<Annotation> getAnnotationsFromReader(com.ibm.wala.shrikeCT.AnnotationsReader r, ClassLoaderReference clRef) throws com.ibm.wala.shrikeCT.InvalidClassFileException
com.ibm.wala.shrikeCT.InvalidClassFileExceptionpublic static java.util.Collection<Annotation>[] getParameterAnnotationsFromReader(com.ibm.wala.shrikeCT.AnnotationsReader r, ClassLoaderReference clRef) throws com.ibm.wala.shrikeCT.InvalidClassFileException
com.ibm.wala.shrikeCT.InvalidClassFileExceptionprotected static java.util.Collection<Annotation> convertToAnnotations(ClassLoaderReference clRef, com.ibm.wala.shrikeCT.AnnotationsReader.AnnotationAttribute[] allAnnotations)
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 com.ibm.wala.util.collections.Pair<TypeReference,java.lang.Object>[] getUnnamedArguments()
public java.util.Map<java.lang.String,com.ibm.wala.shrikeCT.AnnotationsReader.ElementValue> getNamedArguments()
public TypeReference getType()