Package | Description |
---|---|
griffon.util |
Groovy specific utility classes
|
org.codehaus.griffon.runtime.core.event |
Event publishing implementation [INTERNAL USE].
|
Modifier and Type | Method and Description |
---|---|
static MethodDescriptor |
MethodDescriptor.forMethod(Method method) |
static MethodDescriptor |
MethodDescriptor.forMethod(Method method,
boolean removeAbstractModifier) |
Modifier and Type | Method and Description |
---|---|
int |
MethodDescriptor.compareTo(MethodDescriptor md) |
static boolean |
GriffonClassUtils.isArtifactMethod(MethodDescriptor method)
Finds out if the given
MethodDescriptor belongs to the set of
predefined Artifact methods by convention. |
static boolean |
GriffonClassUtils.isBasicMethod(MethodDescriptor method)
Finds out if the given
MethodDescriptor belongs either to the
Object class or the GroovyObject class. |
static boolean |
GriffonClassUtils.isContributionMethod(MethodDescriptor method)
Finds out if the given Method represents a contribution method
by matching its name against the following pattern:
"^with[A-Z][a-z0-9_]*[\w]*$"
|
static boolean |
GriffonClassUtils.isEventHandler(MethodDescriptor method)
Finds out if the given Method represents an event handler
by matching its name against the following pattern:
"^on[A-Z][\\w]*$"
|
static boolean |
GriffonClassUtils.isEventPublisherMethod(MethodDescriptor method)
Finds out if the given
MethodDescriptor belongs to the set of
predefined event publisher methods by convention. |
static boolean |
GriffonClassUtils.isGetterMethod(MethodDescriptor method)
Finds out if the given
MetaMethod is a getter method. |
static boolean |
GriffonClassUtils.isGroovyInjectedMethod(MethodDescriptor method)
Finds out if the given
MethodDescriptor was injected by the Groovy
compiler. |
static boolean |
GriffonClassUtils.isInstanceMethod(MethodDescriptor method)
Finds out if the given
MethodDescriptor is an instance method, i.e,
it is public and non-static. |
static boolean |
GriffonClassUtils.isMessageSourceMethod(MethodDescriptor method)
Finds out if the given
MethodDescriptor belongs to the set of
predefined message source methods by convention. |
static boolean |
GriffonClassUtils.isMvcMethod(MethodDescriptor method)
Finds out if the given
MethodDescriptor belongs to the set of
predefined MVC methods by convention. |
static boolean |
GriffonClassUtils.isObservableMethod(MethodDescriptor method)
Finds out if the given
MethodDescriptor belongs to the set of
predefined observable methods by convention. |
static boolean |
GriffonClassUtils.isPlainMethod(MethodDescriptor method)
Finds out if the given
MethodDescriptor matches the following criteria:
isInstanceMethod(method)
! isBasicMethod(method)
! isGroovyInjectedMethod(method)
! isThreadingMethod(method)
! isArtifactMethod(method)
! isMvcMethod(method)
! isServiceMethod(method)
! isEventPublisherMethod(method)
! isObservableMethod(method)
! isResourceHandlerMethod(method)
! isGetterMethod(method)
! isSetterMethod(method)
! isContributionMethod(method)
|
static boolean |
GriffonClassUtils.isResourceHandlerMethod(MethodDescriptor method)
Finds out if the given
MethodDescriptor belongs to the set of
predefined resources methods by convention. |
static boolean |
GriffonClassUtils.isResourceResolverMethod(MethodDescriptor method)
Finds out if the given
MethodDescriptor belongs to the set of
predefined resource resolver methods by convention. |
static boolean |
GriffonClassUtils.isSetterMethod(MethodDescriptor method)
Finds out if the given
MethodDescriptor is a setter method. |
static boolean |
GriffonClassUtils.isThreadingMethod(MethodDescriptor method)
Finds out if the given
MethodDescriptor belongs to the set of
predefined threading methods by convention. |
boolean |
MethodDescriptor.matches(MethodDescriptor md) |
Modifier and Type | Method and Description |
---|---|
MethodDescriptor |
AbstractEventRouter.MethodInfo.getDescriptor() |
Modifier and Type | Method and Description |
---|---|
Method |
AbstractEventRouter.MethodCache.findMatchingMethodFor(Class<?> klass,
MethodDescriptor target) |
Constructor and Description |
---|
MethodInfo(MethodDescriptor descriptor,
Method method) |