org.springframework.roo.classpath.details
Class AbstractInvocableMemberMetadata

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
All Implemented Interfaces:
CommentedJavaStructure, IdentifiableAnnotatedJavaStructure, IdentifiableJavaStructure, InvocableMemberMetadata, org.springframework.roo.model.CustomDataAccessor
Direct Known Subclasses:
DefaultConstructorMetadata, DefaultMethodMetadata

public abstract class AbstractInvocableMemberMetadata
extends AbstractIdentifiableAnnotatedJavaStructureProvider
implements InvocableMemberMetadata

Abstract implementation of InvocableMemberMetadata.

Since:
1.0
Author:
Ben Alex

Constructor Summary
protected AbstractInvocableMemberMetadata(org.springframework.roo.model.CustomData customData, String declaredByMetadataId, int modifier, List<AnnotationMetadata> annotations, List<AnnotatedJavaType> parameterTypes, List<org.springframework.roo.model.JavaSymbolName> parameterNames, List<org.springframework.roo.model.JavaType> throwsTypes, String body)
          Constructor
 
Method Summary
 String getBody()
           
 CommentStructure getCommentStructure()
           
 List<org.springframework.roo.model.JavaSymbolName> getParameterNames()
           
 List<AnnotatedJavaType> getParameterTypes()
           
 List<org.springframework.roo.model.JavaType> getThrowsTypes()
           
 void setCommentStructure(CommentStructure commentStructure)
           
 
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, toString, wait, wait, wait
 
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
 

Constructor Detail

AbstractInvocableMemberMetadata

protected AbstractInvocableMemberMetadata(org.springframework.roo.model.CustomData customData,
                                          String declaredByMetadataId,
                                          int modifier,
                                          List<AnnotationMetadata> annotations,
                                          List<AnnotatedJavaType> parameterTypes,
                                          List<org.springframework.roo.model.JavaSymbolName> parameterNames,
                                          List<org.springframework.roo.model.JavaType> throwsTypes,
                                          String body)
Constructor

Parameters:
customData -
declaredByMetadataId -
modifier -
annotations -
parameterTypes -
parameterNames -
throwsTypes -
body -
Method Detail

getBody

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

getParameterNames

public final 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 final List<AnnotatedJavaType> getParameterTypes()
Specified by:
getParameterTypes in interface InvocableMemberMetadata
Returns:
the parameter types (never null, but may be an empty)

getThrowsTypes

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

getCommentStructure

public CommentStructure getCommentStructure()
Specified by:
getCommentStructure in interface CommentedJavaStructure

setCommentStructure

public void setCommentStructure(CommentStructure commentStructure)
Specified by:
setCommentStructure in interface CommentedJavaStructure


Copyright © 2009–2015. All rights reserved.