public class AnnotationParameterValueList extends MappableInfoList<AnnotationParameterValue>
AnnotationParameterValue objects.| Constructor and Description |
|---|
AnnotationParameterValueList()
Construct a new modifiable empty list of
AnnotationParameterValue objects. |
AnnotationParameterValueList(java.util.Collection<AnnotationParameterValue> annotationParameterValueCollection)
Construct a new modifiable empty
AnnotationParameterValueList, given an initial list of
AnnotationParameterValue objects. |
AnnotationParameterValueList(int sizeHint)
Construct a new modifiable empty list of
AnnotationParameterValue objects, given a size hint. |
| Modifier and Type | Method and Description |
|---|---|
void |
add(int index,
T element) |
boolean |
add(T element) |
boolean |
addAll(java.util.Collection<? extends T> c) |
boolean |
addAll(int index,
java.util.Collection<? extends T> c) |
void |
clear() |
static AnnotationParameterValueList |
emptyList()
Return an unmodifiable empty
AnnotationParameterValueList. |
protected void |
findReferencedClassInfo(java.util.Map<java.lang.String,ClassInfo> classNameToClassInfo,
java.util.Set<ClassInfo> refdClassInfo,
LogNode log)
Get
ClassInfo objects for any classes referenced in the methods in this list. |
java.lang.Object |
getValue(java.lang.String parameterName)
Get the annotation parameter value, by calling
AnnotationParameterValue.getValue() on the result of
MappableInfoList.get(String), if non-null. |
java.util.Iterator<T> |
iterator() |
java.util.ListIterator<T> |
listIterator() |
T |
remove(int index) |
boolean |
remove(java.lang.Object o) |
boolean |
removeAll(java.util.Collection<?> c) |
boolean |
retainAll(java.util.Collection<?> c) |
T |
set(int index,
T element) |
asMap, containsName, getequals, getAsStrings, getAsStringsWithSimpleNames, getNames, hashCodeclone, contains, ensureCapacity, forEach, get, indexOf, isEmpty, lastIndexOf, listIterator, removeIf, removeRange, replaceAll, size, sort, spliterator, subList, toArray, toArray, trimToSizepublic AnnotationParameterValueList()
AnnotationParameterValue objects.public AnnotationParameterValueList(int sizeHint)
AnnotationParameterValue objects, given a size hint.sizeHint - the size hintpublic AnnotationParameterValueList(java.util.Collection<AnnotationParameterValue> annotationParameterValueCollection)
AnnotationParameterValueList, given an initial list of
AnnotationParameterValue objects.annotationParameterValueCollection - the collection of AnnotationParameterValue objects.public static AnnotationParameterValueList emptyList()
AnnotationParameterValueList.AnnotationParameterValueList.protected void findReferencedClassInfo(java.util.Map<java.lang.String,ClassInfo> classNameToClassInfo, java.util.Set<ClassInfo> refdClassInfo, LogNode log)
ClassInfo objects for any classes referenced in the methods in this list.classNameToClassInfo - the map from class name to ClassInfo.refdClassInfo - the referenced class infolog - the logpublic java.lang.Object getValue(java.lang.String parameterName)
AnnotationParameterValue.getValue() on the result of
MappableInfoList.get(String), if non-null.parameterName - The name of an annotation parameter.AnnotationParameterValue object in the list with the given name, by calling
AnnotationParameterValue.getValue() on that object, or null if not found.
The annotation parameter value may be one of the following types:
Object[] array for array types (and then the array element type may be
one of the types in this list)
AnnotationEnumValue, for enum constants (this wraps the enum class and the string name of
the constant)
AnnotationClassRef, for Class references within annotations (this wraps the name of the
referenced class)
AnnotationInfo, for nested annotations
public boolean add(T element)
add in interface java.util.Collection<T>add in interface java.util.List<T>add in class java.util.ArrayList<T>public void add(int index,
T element)
add in interface java.util.List<T>add in class java.util.ArrayList<T>public boolean remove(java.lang.Object o)
remove in interface java.util.Collection<T>remove in interface java.util.List<T>remove in class java.util.ArrayList<T>public T remove(int index)
remove in interface java.util.List<T>remove in class java.util.ArrayList<T>public boolean addAll(java.util.Collection<? extends T> c)
addAll in interface java.util.Collection<T>addAll in interface java.util.List<T>addAll in class java.util.ArrayList<T>public boolean addAll(int index,
java.util.Collection<? extends T> c)
addAll in interface java.util.List<T>addAll in class java.util.ArrayList<T>public boolean removeAll(java.util.Collection<?> c)
removeAll in interface java.util.Collection<T>removeAll in interface java.util.List<T>removeAll in class java.util.ArrayList<T>public boolean retainAll(java.util.Collection<?> c)
retainAll in interface java.util.Collection<T>retainAll in interface java.util.List<T>retainAll in class java.util.ArrayList<T>public void clear()
clear in interface java.util.Collection<T>clear in interface java.util.List<T>clear in class java.util.ArrayList<T>public T set(int index,
T element)
set in interface java.util.List<T>set in class java.util.ArrayList<T>public java.util.Iterator<T> iterator()
iterator in interface java.lang.Iterable<T>iterator in interface java.util.Collection<T>iterator in interface java.util.List<T>iterator in class java.util.ArrayList<T>public java.util.ListIterator<T> listIterator()
listIterator in interface java.util.List<T>listIterator in class java.util.ArrayList<T>