org.codehaus.groovy.runtime
Class GroovyCategorySupport.CategoryMethod

java.lang.Object
  extended by org.codehaus.groovy.reflection.ParameterTypes
      extended by groovy.lang.MetaMethod
          extended by org.codehaus.groovy.runtime.metaclass.ReflectionMetaMethod
              extended by org.codehaus.groovy.runtime.metaclass.NewMetaMethod
                  extended by org.codehaus.groovy.runtime.metaclass.NewInstanceMetaMethod
                      extended by org.codehaus.groovy.runtime.GroovyCategorySupport.CategoryMethod
All Implemented Interfaces:
java.lang.Cloneable, java.lang.Comparable
Enclosing class:
GroovyCategorySupport

private static class GroovyCategorySupport.CategoryMethod
extends NewInstanceMetaMethod
implements java.lang.Comparable


Field Summary
private  java.lang.Class metaClass
           
 
Fields inherited from class org.codehaus.groovy.runtime.metaclass.NewMetaMethod
bytecodeParameterTypes, EMPTY_TYPE_ARRAY
 
Fields inherited from class org.codehaus.groovy.runtime.metaclass.ReflectionMetaMethod
method
 
Fields inherited from class org.codehaus.groovy.reflection.ParameterTypes
isVargsMethod, nativeParamTypes, parameterTypes
 
Constructor Summary
GroovyCategorySupport.CategoryMethod(CachedMethod metaMethod, java.lang.Class metaClass)
           
 
Method Summary
 int compareTo(java.lang.Object o)
          Sort by most specific to least specific.
 boolean isCacheable()
           
private  boolean isChildOfParent(java.lang.Class candidateChild, java.lang.Class candidateParent)
           
 
Methods inherited from class org.codehaus.groovy.runtime.metaclass.NewInstanceMetaMethod
getModifiers, invoke, isStatic
 
Methods inherited from class org.codehaus.groovy.runtime.metaclass.NewMetaMethod
getBytecodeParameterTypes, getDeclaringClass, getOwnerClass
 
Methods inherited from class org.codehaus.groovy.runtime.metaclass.ReflectionMetaMethod
getName, getPT, getReturnType, toString
 
Methods inherited from class groovy.lang.MetaMethod
checkParameters, clone, doMethodInvoke, equal, equal, getDescriptor, getMopName, getSignature, isAbstract, isMethod, isPrivate, isProtected, isPublic, isSame, processDoMethodInvokeException
 
Methods inherited from class org.codehaus.groovy.reflection.ParameterTypes
coerceArgumentsToClasses, getNativeParameterTypes, getParameterTypes, isValidMethod, isValidMethod, isVargsMethod, setParametersTypes
 
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

metaClass

private final java.lang.Class metaClass
Constructor Detail

GroovyCategorySupport.CategoryMethod

public GroovyCategorySupport.CategoryMethod(CachedMethod metaMethod,
                                            java.lang.Class metaClass)
Method Detail

isCacheable

public boolean isCacheable()
Overrides:
isCacheable in class MetaMethod

compareTo

public int compareTo(java.lang.Object o)
Sort by most specific to least specific.

Specified by:
compareTo in interface java.lang.Comparable
Parameters:
o - the object to compare against

isChildOfParent

private boolean isChildOfParent(java.lang.Class candidateChild,
                                java.lang.Class candidateParent)


Copyright © ${year} The Codehaus. All Rights Reserved.