org.springframework.roo.classpath.details
Class DefaultMethodMetadata

java.lang.Object
  extended by org.springframework.roo.model.AbstractCustomDataAccessorProvider
      extended by org.springframework.roo.classpath.details.AbstractIdentifiableJavaStructureProvider
          extended by org.springframework.roo.classpath.details.AbstractIdentifiableAnnotatedJavaStructureProvider
              extended by org.springframework.roo.classpath.details.AbstractInvocableMemberMetadata
                  extended by org.springframework.roo.classpath.details.DefaultMethodMetadata
All Implemented Interfaces:
CommentedJavaStructure, IdentifiableAnnotatedJavaStructure, IdentifiableJavaStructure, InvocableMemberMetadata, MethodMetadata, org.springframework.roo.model.CustomDataAccessor

public class DefaultMethodMetadata
extends AbstractInvocableMemberMetadata
implements MethodMetadata

Default implementation of MethodMetadata.

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
 String toString()
           
 
Methods inherited from class org.springframework.roo.classpath.details.AbstractInvocableMemberMetadata
getBody, getCommentStructure, getParameterNames, getParameterTypes, getThrowsTypes, setCommentStructure
 
Methods inherited from class org.springframework.roo.classpath.details.AbstractIdentifiableAnnotatedJavaStructureProvider
getAnnotation, getAnnotations, getTypeAnnotation
 
Methods inherited from class org.springframework.roo.classpath.details.AbstractIdentifiableJavaStructureProvider
getDeclaredByMetadataId, getModifier
 
Methods inherited from class org.springframework.roo.model.AbstractCustomDataAccessorProvider
getCustomData
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 
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

public org.springframework.roo.model.JavaSymbolName getMethodName()
Specified by:
getMethodName in interface MethodMetadata
Returns:
the name of the method (never null)

getReturnType

public final org.springframework.roo.model.JavaType getReturnType()
Specified by:
getReturnType in interface MethodMetadata
Returns:
the return type (never null, even if void)

hasSameName

public boolean hasSameName(MethodMetadata... otherMethods)
Description copied from interface: MethodMetadata
Indicates whether this method has the same name (case-sensitive) as any of the given methods

Specified by:
hasSameName in interface MethodMetadata
Parameters:
otherMethods - the methods to check against; can be empty or contain null elements, which will be ignored
Returns:
see above

isStatic

public boolean isStatic()
Description copied from interface: MethodMetadata
Indicates whether this method is static

Specified by:
isStatic in interface MethodMetadata
Returns:
see above

toString

public String toString()
Overrides:
toString in class Object


Copyright © 2009–2015. All rights reserved.