public class MethodList extends DynamicArray<IMethodInfo>
| Modifier and Type | Field and Description |
|---|---|
static MethodList |
EMPTY |
data, sizemodCount| Modifier | Constructor and Description |
|---|---|
|
MethodList() |
|
MethodList(int size) |
|
MethodList(List<IMethodInfo> methods) |
protected |
MethodList(MethodList source) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
add(IMethodInfo method)
Appends the specified element to the end of this list.
|
void |
add(int index,
IMethodInfo method)
Inserts the specified element at the specified position in this
list.
|
boolean |
addAll(Collection<? extends IMethodInfo> c)
Appends all of the elements in the specified collection to the end of
this list, in the order that they are returned by the
specified collection's Iterator.
|
boolean |
addAll(int index,
Collection<? extends IMethodInfo> c)
Inserts all of the elements in the specified collection into this
list, starting at the specified position.
|
void |
clear()
Removes all of the elements from this list.
|
MethodList |
copy()
Returns a shallow copy of this ArrayList instance.
|
MethodList |
filterMethods(IRelativeTypeInfo.Accessibility accessibility) |
IMethodInfo |
findAssignableMethod(IMethodInfo miTo,
boolean bStatic,
TypeVarToTypeMap inferenceMap) |
Collection<DynamicArray<IMethodInfo>> |
getMethodBuckets() |
DynamicArray<? extends IMethodInfo> |
getMethods(String name) |
int |
indexOf(Object o)
Returns the index of the first occurrence of the specified element
in this list, or -1 if this list does not contain the element.
|
static IType |
maybeInferParamType(TypeVarToTypeMap inferenceMap,
IType ownersType,
IType fromParamType,
IType toParamType) |
static IType |
maybeInferReturnType(TypeVarToTypeMap inferenceMap,
IType ownersType,
IType fromReturnType,
IType toReturnType) |
IMethodInfo |
remove(int index)
Removes the element at the specified position in this list.
|
boolean |
remove(Object o)
Removes the first occurrence of the specified element from this list,
if it is present.
|
boolean |
removeAll(Collection<?> c) |
protected void |
removeRange(int fromIndex,
int toIndex)
Removes from this list all of the elements whose index is between
fromIndex, inclusive, and toIndex, exclusive.
|
boolean |
retainAll(Collection<?> c) |
IMethodInfo |
set(int index,
IMethodInfo method)
Replaces the element at the specified position in this list with
the specified element.
|
static MethodList |
singleton(IMethodInfo theOneMethod) |
contains, ensureCapacity, get, isEmpty, lastIndexOf, size, toArray, toArray, trimToSizeequals, hashCode, iterator, listIterator, listIterator, subListcontainsAll, toStringclone, finalize, getClass, notify, notifyAll, wait, wait, waitcontainsAll, equals, hashCode, iterator, listIterator, listIterator, replaceAll, sort, spliterator, subListparallelStream, removeIf, streampublic static final MethodList EMPTY
public MethodList()
public MethodList(List<IMethodInfo> methods)
public MethodList(int size)
protected MethodList(MethodList source)
public MethodList copy()
DynamicArraycopy in class DynamicArray<IMethodInfo>public MethodList filterMethods(IRelativeTypeInfo.Accessibility accessibility)
public boolean add(IMethodInfo method)
DynamicArrayadd in interface Collection<IMethodInfo>add in interface List<IMethodInfo>add in class DynamicArray<IMethodInfo>method - element to be appended to this listCollection.add(E))public boolean addAll(Collection<? extends IMethodInfo> c)
DynamicArrayaddAll in interface Collection<IMethodInfo>addAll in interface List<IMethodInfo>addAll in class DynamicArray<IMethodInfo>c - collection containing elements to be added to this listpublic IMethodInfo remove(int index)
DynamicArrayremove in interface List<IMethodInfo>remove in class DynamicArray<IMethodInfo>index - the index of the element to be removedpublic IMethodInfo set(int index, IMethodInfo method)
DynamicArrayset in interface List<IMethodInfo>set in class DynamicArray<IMethodInfo>index - index of the element to replacemethod - element to be stored at the specified positionpublic int indexOf(Object o)
DynamicArrayindexOf in interface List<IMethodInfo>indexOf in class DynamicArray<IMethodInfo>public DynamicArray<? extends IMethodInfo> getMethods(String name)
public static MethodList singleton(IMethodInfo theOneMethod)
public void add(int index,
IMethodInfo method)
DynamicArrayadd in interface List<IMethodInfo>add in class DynamicArray<IMethodInfo>index - index at which the specified element is to be insertedmethod - element to be insertedpublic boolean addAll(int index,
Collection<? extends IMethodInfo> c)
DynamicArrayaddAll in interface List<IMethodInfo>addAll in class DynamicArray<IMethodInfo>index - index at which to insert the first element from the
specified collectionc - collection containing elements to be added to this listpublic boolean remove(Object o)
DynamicArrayremove in interface Collection<IMethodInfo>remove in interface List<IMethodInfo>remove in class DynamicArray<IMethodInfo>o - element to be removed from this list, if presentprotected void removeRange(int fromIndex,
int toIndex)
DynamicArrayremoveRange in class DynamicArray<IMethodInfo>fromIndex - index of first element to be removedtoIndex - index after last element to be removedpublic void clear()
DynamicArrayclear in interface Collection<IMethodInfo>clear in interface List<IMethodInfo>clear in class DynamicArray<IMethodInfo>public boolean removeAll(Collection<?> c)
removeAll in interface Collection<IMethodInfo>removeAll in interface List<IMethodInfo>removeAll in class AbstractCollection<IMethodInfo>public boolean retainAll(Collection<?> c)
retainAll in interface Collection<IMethodInfo>retainAll in interface List<IMethodInfo>retainAll in class AbstractCollection<IMethodInfo>public IMethodInfo findAssignableMethod(IMethodInfo miTo, boolean bStatic, TypeVarToTypeMap inferenceMap)
public Collection<DynamicArray<IMethodInfo>> getMethodBuckets()
public static IType maybeInferParamType(TypeVarToTypeMap inferenceMap, IType ownersType, IType fromParamType, IType toParamType)
public static IType maybeInferReturnType(TypeVarToTypeMap inferenceMap, IType ownersType, IType fromReturnType, IType toReturnType)
Copyright © 2017. All rights reserved.