public static class GroovyCategorySupport.CategoryMethod
extends NewInstanceMetaMethod
implements Comparable
A public static category method seen as an instance method of its first parameter type. Ordering places a more specific receiver type ahead of a less specific one. The method is not cached, because the active category set changes with the scope.
| Fields inherited from class | Fields |
|---|---|
class NewMetaMethod |
EMPTY_TYPE_ARRAY, bytecodeParameterTypes |
class ReflectionMetaMethod |
method |
class MetaMethod |
EMPTY_ARRAY |
| Constructor and description |
|---|
CategoryMethod(CachedMethod metaMethod, Class metaClass)Wraps metaMethod and records metaClass as the
receiver type used when category methods are ordered. |
| Type Params | Return Type | Name and description |
|---|---|---|
|
public int |
compareTo(Object that)Sort by most specific to least specific. |
|
public boolean |
isCacheable() |
| Methods inherited from class | Name |
|---|---|
class NewInstanceMetaMethod |
getModifiers, invoke, isStatic |
class NewMetaMethod |
getBytecodeParameterTypes, getDeclaringClass, getOwnerClass |
class ReflectionMetaMethod |
getCachedMethod, getDeclaringClass, getModifiers, getName, getPT, getReturnType, invoke, toString |
class MetaMethod |
checkParameters, clone, doMethodInvoke, equal, equal, getDeclaringClass, getDescriptor, getModifiers, getMopName, getName, getReturnType, getSignature, invoke, isAbstract, isCacheable, isDefault, isMethod, isSame, processDoMethodInvokeException, toString |
class ParameterTypes |
coerceArgumentsToClasses, correctArguments, getNativeParameterTypes, getPT, getParameterTypes, isValidExactMethod, isValidExactMethod, isValidMethod, isValidMethod, isVargsMethod, isVargsMethod, setParametersTypes |
Wraps metaMethod and records metaClass as the
receiver type used when category methods are ordered.
metaMethod - static category methodmetaClass - class of that method's first parameter, the receiver typeSort by most specific to least specific.
that - the object to compare againstCopyright © 2003-2026 The Apache Software Foundation. All rights reserved.