public class DefaultMethodMetadata extends AbstractInvocableMemberMetadata implements MethodMetadata, Comparable<DefaultMethodMetadata>
MethodMetadata.COMPARATOR_BY_NAME| Modifier and Type | Method and Description |
|---|---|
int |
compareTo(DefaultMethodMetadata method) |
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
|
String |
toString() |
getBody, getCommentStructure, getGenericDefinition, getParameterNames, getParameterTypes, getThrowsTypes, setCommentStructure, setGenericDefinitiongetAnnotation, getAnnotations, getTypeAnnotationgetDeclaredByMetadataId, getModifiergetCustomDataclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitgetBody, getParameterNames, getParameterTypes, getThrowsTypesgetAnnotation, getAnnotations, getTypeAnnotationgetDeclaredByMetadataId, getModifiergetCommentStructure, setCommentStructuregetGenericDefinition, setGenericDefinitionpublic org.springframework.roo.model.JavaSymbolName getMethodName()
getMethodName in interface MethodMetadatapublic final org.springframework.roo.model.JavaType getReturnType()
getReturnType in interface MethodMetadatapublic boolean hasSameName(MethodMetadata... otherMethods)
MethodMetadatahasSameName in interface MethodMetadataotherMethods - the methods to check against; can be empty or contain
null elements, which will be ignoredpublic boolean isStatic()
MethodMetadataisStatic in interface MethodMetadatapublic boolean matchSignature(MethodMetadata otherMethod)
MethodMetadatamatchSignature in interface MethodMetadatapublic int compareTo(DefaultMethodMetadata method)
compareTo in interface Comparable<DefaultMethodMetadata>Copyright © 2009–2018 Pivotal Software, Inc.. All rights reserved.