| java.lang.Object org.codehaus.groovy.runtime.GroovyCategorySupport
GroovyCategorySupport | public class GroovyCategorySupport (Code) | | author: sam author: Paul King |
Method Summary | |
public static List | getCategoryMethods(Class categorizedClass, String name) This method is used to pull all the new methods out of the local thread context with a particular name. | public static List | getCategoryMethods(Class categorizedClass) This method is used to pull all the new methods out of the local thread context. | public static boolean | hasCategoryInAnyThread() | public static void | use(Class categoryClass, Closure closure) Create a scope based on given categoryClass and invoke closure within that scope. | public static void | use(List categoryClasses, Closure closure) Create a scope based on given categoryClasses and invoke closure within that scope. |
getCategoryMethods | public static List getCategoryMethods(Class categorizedClass, String name)(Code) | | This method is used to pull all the new methods out of the local thread context with a particular name.
Parameters: categorizedClass - a class subject to the category methods in the thread context Parameters: name - the method name of interest the list of methods |
getCategoryMethods | public static List getCategoryMethods(Class categorizedClass)(Code) | | This method is used to pull all the new methods out of the local thread context.
Parameters: categorizedClass - a class subject to the category methods in the thread context the list of methods |
hasCategoryInAnyThread | public static boolean hasCategoryInAnyThread()(Code) | | |
use | public static void use(Class categoryClass, Closure closure)(Code) | | Create a scope based on given categoryClass and invoke closure within that scope.
Parameters: categoryClass - the class containing category methods Parameters: closure - the closure during which to make the category class methods available |
use | public static void use(List categoryClasses, Closure closure)(Code) | | Create a scope based on given categoryClasses and invoke closure within that scope.
Parameters: categoryClasses - the list of classes containing category methods Parameters: closure - the closure during which to make the category class methods available |
|
|