org.springframework.roo.classpath.details
Class AbstractInvocableMemberMetadata

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

public abstract class AbstractInvocableMemberMetadata
extends Object
implements InvocableMemberMetadata

Abstract implementation of InvocableMemberMetadata.

Since:
1.0
Author:
Ben Alex

Constructor Summary
AbstractInvocableMemberMetadata(String declaredByMetadataId, int modifier, List<AnnotatedJavaType> parameters, List<org.springframework.roo.model.JavaSymbolName> parameterNames, List<AnnotationMetadata> annotations, String body)
           
 
Method Summary
 List<AnnotationMetadata> getAnnotations()
           
 String getBody()
           
 String getDeclaredByMetadataId()
           
 int getModifier()
          Indicates the access modifier of the member.
 List<org.springframework.roo.model.JavaSymbolName> getParameterNames()
           
 List<AnnotatedJavaType> getParameterTypes()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AbstractInvocableMemberMetadata

public AbstractInvocableMemberMetadata(String declaredByMetadataId,
                                       int modifier,
                                       List<AnnotatedJavaType> parameters,
                                       List<org.springframework.roo.model.JavaSymbolName> parameterNames,
                                       List<AnnotationMetadata> annotations,
                                       String body)
Method Detail

getDeclaredByMetadataId

public String getDeclaredByMetadataId()
Specified by:
getDeclaredByMetadataId in interface IdentifiableMember
Returns:
the ID of the metadata that declared this member (never null)

getAnnotations

public List<AnnotationMetadata> getAnnotations()
Specified by:
getAnnotations in interface InvocableMemberMetadata
Returns:
annotations on this invocable member (never null, but may be empty)

getParameterNames

public List<org.springframework.roo.model.JavaSymbolName> getParameterNames()
Specified by:
getParameterNames in interface InvocableMemberMetadata
Returns:
the parameter names, if available (never null, but may be an empty)

getParameterTypes

public List<AnnotatedJavaType> getParameterTypes()
Specified by:
getParameterTypes in interface InvocableMemberMetadata
Returns:
the parameter types (never null, but may be an empty)

getModifier

public int getModifier()
Description copied from interface: IdentifiableMember
Indicates the access modifier of the member. The integer is formatted in accordance with Modifier.

Specified by:
getModifier in interface IdentifiableMember
Returns:
the modifier, if available (required)

getBody

public String getBody()
Specified by:
getBody in interface InvocableMemberMetadata
Returns:
the body of the method, if available (can be null if unavailable)


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