org.springframework.roo.classpath.details
Class DefaultMethodMetadata

java.lang.Object
  extended by org.springframework.roo.classpath.details.AbstractInvocableMemberMetadata
      extended by org.springframework.roo.classpath.details.DefaultMethodMetadata
All Implemented Interfaces:
IdentifiableMember, InvocableMemberMetadata, MethodMetadata

public class DefaultMethodMetadata
extends AbstractInvocableMemberMetadata
implements MethodMetadata

Default implementation of MethodMetadata.

Since:
1.0
Author:
Ben Alex

Constructor Summary
DefaultMethodMetadata(String declaredByMetadataId, int modifier, org.springframework.roo.model.JavaSymbolName methodName, org.springframework.roo.model.JavaType returnType, List<AnnotatedJavaType> parameters, List<org.springframework.roo.model.JavaSymbolName> parameterNames, List<AnnotationMetadata> annotations, List<org.springframework.roo.model.JavaType> throwsTypes, String body)
           
 
Method Summary
 org.springframework.roo.model.JavaSymbolName getMethodName()
           
 org.springframework.roo.model.JavaType getReturnType()
           
 List<org.springframework.roo.model.JavaType> getThrowsTypes()
           
 String toString()
           
 
Methods inherited from class org.springframework.roo.classpath.details.AbstractInvocableMemberMetadata
getAnnotations, getBody, getDeclaredByMetadataId, getModifier, getParameterNames, getParameterTypes
 
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
getAnnotations, getBody, getParameterNames, getParameterTypes
 
Methods inherited from interface org.springframework.roo.classpath.details.IdentifiableMember
getDeclaredByMetadataId, getModifier
 

Constructor Detail

DefaultMethodMetadata

public DefaultMethodMetadata(String declaredByMetadataId,
                             int modifier,
                             org.springframework.roo.model.JavaSymbolName methodName,
                             org.springframework.roo.model.JavaType returnType,
                             List<AnnotatedJavaType> parameters,
                             List<org.springframework.roo.model.JavaSymbolName> parameterNames,
                             List<AnnotationMetadata> annotations,
                             List<org.springframework.roo.model.JavaType> throwsTypes,
                             String body)
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 org.springframework.roo.model.JavaType getReturnType()
Specified by:
getReturnType in interface MethodMetadata
Returns:
the return type (never null, even if void)

getThrowsTypes

public List<org.springframework.roo.model.JavaType> getThrowsTypes()
Specified by:
getThrowsTypes in interface MethodMetadata
Returns:
a list of types the method can throw (never null)

toString

public String toString()
Overrides:
toString in class Object


Copyright © 2009-2010 VMware, Inc. All Rights Reserved.