|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.codehaus.groovy.runtime.GroovyCategorySupport
Constructor Summary | |
GroovyCategorySupport()
|
Method Summary | |
static List |
getCategoryMethods(Class categorizedClass)
This method is used to pull all the new methods out of the local thread context. |
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. |
static boolean |
hasCategoryInAnyThread()
|
static void |
use(Class categoryClass,
Closure closure)
Create a scope based on given categoryClass and invoke closure within that scope. |
static void |
use(List categoryClasses,
Closure closure)
Create a scope based on given categoryClasses and invoke closure within that scope. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public GroovyCategorySupport()
Method Detail |
public static List getCategoryMethods(Class categorizedClass, String name)
categorizedClass
- a class subject to the category methods in the thread contextname
- the method name of interest
public static List getCategoryMethods(Class categorizedClass)
categorizedClass
- a class subject to the category methods in the thread context
public static void use(Class categoryClass, Closure closure)
categoryClass
- the class containing category methodsclosure
- the closure during which to make the category class methods availablepublic static void use(List categoryClasses, Closure closure)
categoryClasses
- the list of classes containing category methodsclosure
- the closure during which to make the category class methods availablepublic static boolean hasCategoryInAnyThread()
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |