public static class GroovyCategorySupport.CategoryMethodList
extends ArrayList
Category methods that share one name at a single use
nesting level. A deeper level copies the methods from the
previous level and shares its usage counter. Adding a method
increments that counter.
| Modifiers | Name | Description |
|---|---|---|
int |
level |
Nesting depth of the use scope that installed this list. |
| Constructor and description |
|---|
CategoryMethodList(String name, int level, GroovyCategorySupport.CategoryMethodList previous)Builds the list for name at level. |
| Type Params | Return Type | Name and description |
|---|---|---|
|
public boolean |
add(GroovyCategorySupport.CategoryMethod o) |
| Methods inherited from class | Name |
|---|---|
class ArrayList |
add, add, addAll, addAll, clear, clone, contains, containsAll, ensureCapacity, equals, forEach, get, getClass, hashCode, indexOf, isEmpty, iterator, lastIndexOf, listIterator, listIterator, notify, notifyAll, parallelStream, remove, remove, removeAll, removeIf, replaceAll, retainAll, set, size, sort, spliterator, stream, subList, toArray, toArray, toArray, toString, trimToSize, wait, wait, wait |
Builds the list for name at level. When
previous is present its methods are copied and its
usage counter is shared; otherwise a counter is taken for
name.
name - method name, used to find the usage counter when previous is nulllevel - scope depth that owns this listprevious - list from the surrounding scope, or null for the outermost scopeCopyright © 2003-2026 The Apache Software Foundation. All rights reserved.