MethodInfo objects.
| Modifier and Type | Class and Description |
|---|---|
| public static interface | MethodInfoList.
Filter an |
| Modifier and Type | Field and Description |
|---|---|
| pack-priv static final MethodInfoList | EMPTY_LIST
An unmodifiable empty |
| private static final long | serialVersionUID
serialVersionUID
|
| Access | Constructor and Description |
|---|---|
| public | |
| public | MethodInfoList(final int
the size hint sizeHint)Construct a new modifiable empty list of |
| public | MethodInfoList(final Collection<MethodInfo>
the collection of methodInfoCollection)MethodInfo objects.Construct a new modifiable empty |
| Modifier and Type | Method and Description |
|---|---|
| public Map | Returns: ThisMethodInfoList as a map from method name to a MethodInfoList of methods with
that name.Get this |
| public boolean | Returns: true if the list contains a method with the given name.The name of a class. methodName)Check whether the list contains a method with the given name. |
| public static MethodInfoList | Returns: the unmodifiable emptyMethodInfoList.Return an unmodifiable empty |
| public MethodInfoList | Returns: The subset of theMethodInfo objects in this list for which the given filter predicate is
true.The filterMethodInfoFilter to apply.Find the subset of the |
| protected void | |
| public MethodInfoList | Returns: AMethodInfoList of MethodInfo objects from this list that have the given name (there
may be more than one method with a given name, due to overloading, so this returns a
MethodInfoList rather than a single MethodInfo). Returns the empty list if no method
had a matching name.The name of a method. methodName)Returns a list of all methods matching a given name. |
| public MethodInfo | Returns: TheMethodInfo object from the list with the given name, if there is exactly one method with
the given name. Returns null if there were no methods with the given name.The name of a method. methodName)Returns a single method with the given name, or null if not found. |
| EMPTY_LIST | back to summary |
|---|---|
| pack-priv static final MethodInfoList EMPTY_LIST An unmodifiable empty | |
| serialVersionUID | back to summary |
|---|---|
| private static final long serialVersionUID Hides io. serialVersionUID | |
| MethodInfoList | back to summary |
|---|---|
| public MethodInfoList() Construct a new modifiable empty list of | |
| MethodInfoList | back to summary |
|---|---|
| public MethodInfoList(final int sizeHint) Construct a new modifiable empty list of
| |
| MethodInfoList | back to summary |
|---|---|
| public MethodInfoList(final Collection<MethodInfo> methodInfoCollection) Construct a new modifiable empty
| |
| asMap | back to summary |
|---|---|
| public Map Get this
| |
| containsName | back to summary |
|---|---|
| public boolean containsName(final String methodName) Check whether the list contains a method with the given name.
| |
| emptyList | back to summary |
|---|---|
| public static MethodInfoList emptyList() Return an unmodifiable empty
| |
| filter | back to summary |
|---|---|
| public MethodInfoList filter(final MethodInfoList. Find the subset of the
| |
| findReferencedClassInfo | back to summary |
|---|---|
| protected void findReferencedClassInfo(final Map<String, ClassInfo> classNameToClassInfo, final Set<ClassInfo> refdClassInfo, final LogNode log) Get | |
| get | back to summary |
|---|---|
| public MethodInfoList get(final String methodName) Returns a list of all methods matching a given name. (There may be more than one method with a given name,
due to overloading, so this returns a
| |
| getSingleMethod | back to summary |
|---|---|
| public MethodInfo getSingleMethod(final String methodName) Returns a single method with the given name, or null if not found. Throws
| |
MethodInfoList using a predicate mapping an MethodInfo object to a boolean,
producing another MethodInfoList for all items in the list for which the predicate is true.
| Modifier and Type | Method and Description |
|---|---|
| public boolean | Returns: Whether or not to allow the item through the filter. If true, the item is copied to the output list; if false, it is excluded.The methodInfo)MethodInfo item to filter.Whether or not to allow an |
| accept | back to summary |
|---|---|
| public boolean accept(MethodInfo methodInfo) Whether or not to allow an
| |