org.springframework.roo.classpath.details
Interface MethodMetadata

All Superinterfaces:
CommentedJavaStructure, org.springframework.roo.model.CustomDataAccessor, IdentifiableAnnotatedJavaStructure, IdentifiableJavaStructure, InvocableMemberMetadata
All Known Implementing Classes:
DefaultMethodMetadata

public interface MethodMetadata
extends InvocableMemberMetadata

Metadata concerning a particular method.

Since:
1.0
Author:
Ben Alex

Method Summary
 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
 
Methods inherited from interface org.springframework.roo.classpath.details.InvocableMemberMetadata
getBody, getParameterNames, getParameterTypes, getThrowsTypes
 
Methods inherited from interface org.springframework.roo.classpath.details.IdentifiableAnnotatedJavaStructure
getAnnotation, getAnnotations, getTypeAnnotation
 
Methods inherited from interface org.springframework.roo.classpath.details.IdentifiableJavaStructure
getDeclaredByMetadataId, getModifier
 
Methods inherited from interface org.springframework.roo.model.CustomDataAccessor
getCustomData
 
Methods inherited from interface org.springframework.roo.classpath.details.comments.CommentedJavaStructure
getCommentStructure, setCommentStructure
 

Method Detail

getMethodName

org.springframework.roo.model.JavaSymbolName getMethodName()
Returns:
the name of the method (never null)

getReturnType

org.springframework.roo.model.JavaType getReturnType()
Returns:
the return type (never null, even if void)

hasSameName

boolean hasSameName(MethodMetadata... otherMethods)
Indicates whether this method has the same name (case-sensitive) as any of the given methods

Parameters:
otherMethods - the methods to check against; can be empty or contain null elements, which will be ignored
Returns:
see above
Since:
1.2.0

isStatic

boolean isStatic()
Indicates whether this method is static

Returns:
see above
Since:
1.2.0


Copyright © 2009–2015. All rights reserved.