public interface MethodMetadata extends InvocableMemberMetadata
| Modifier and Type | Field and Description |
|---|---|
static Comparator<MethodMetadata> |
COMPARATOR_BY_NAME |
| Modifier and Type | Method and Description |
|---|---|
org.springframework.roo.model.JavaSymbolName |
getMethodName() |
org.springframework.roo.model.JavaType |
getReturnType() |
boolean |
hasSameName(MethodMetadata... otherMethods)
Indicates whether this method has the same name (case-sensitive) as any
of the given methods
|
boolean |
isStatic()
Indicates whether this method is static
|
boolean |
matchSignature(MethodMetadata otherMethod)
Indicates if method signature matches (name, number of parameters,
type of parameters) with otherMethod
|
getBody, getParameterNames, getParameterTypes, getThrowsTypesgetAnnotation, getAnnotations, getTypeAnnotationgetDeclaredByMetadataId, getModifiergetCommentStructure, setCommentStructuregetGenericDefinition, setGenericDefinitionstatic final Comparator<MethodMetadata> COMPARATOR_BY_NAME
org.springframework.roo.model.JavaSymbolName getMethodName()
org.springframework.roo.model.JavaType getReturnType()
boolean hasSameName(MethodMetadata... otherMethods)
otherMethods - the methods to check against; can be empty or contain
null elements, which will be ignoredboolean isStatic()
boolean matchSignature(MethodMetadata otherMethod)
otherMethod - Copyright © 2009–2016. All rights reserved.