org.springframework.roo.classpath.details
Class DefaultMethodMetadata
java.lang.Object
org.springframework.roo.model.AbstractCustomDataAccessorProvider
org.springframework.roo.classpath.details.AbstractIdentifiableJavaStructureProvider
org.springframework.roo.classpath.details.AbstractIdentifiableAnnotatedJavaStructureProvider
org.springframework.roo.classpath.details.AbstractInvocableMemberMetadata
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
| Methods inherited from class org.springframework.roo.model.AbstractCustomDataAccessorProvider |
getCustomData |
| Methods inherited from interface org.springframework.roo.model.CustomDataAccessor |
getCustomData |
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.