org.springframework.roo.classpath.javaparser.details
Class JavaParserMethodMetadata

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

public class JavaParserMethodMetadata
extends Object
implements org.springframework.roo.classpath.details.MethodMetadata

Java Parser implementation of MethodMetadata.

Since:
1.0
Author:
Ben Alex

Constructor Summary
JavaParserMethodMetadata(String declaredByMetadataId, japa.parser.ast.body.MethodDeclaration methodDeclaration, CompilationUnitServices compilationUnitServices, Set<org.springframework.roo.model.JavaSymbolName> typeParameters)
           
 
Method Summary
static void addMethod(CompilationUnitServices compilationUnitServices, List<japa.parser.ast.body.BodyDeclaration> members, org.springframework.roo.classpath.details.MethodMetadata method, boolean permitFlush, Set<org.springframework.roo.model.JavaSymbolName> typeParameters)
           
 List<org.springframework.roo.classpath.details.annotations.AnnotationMetadata> getAnnotations()
           
 String getBody()
           
 String getDeclaredByMetadataId()
           
 org.springframework.roo.model.JavaSymbolName getMethodName()
           
 int getModifier()
           
 List<org.springframework.roo.model.JavaSymbolName> getParameterNames()
           
 List<org.springframework.roo.classpath.details.annotations.AnnotatedJavaType> getParameterTypes()
           
 org.springframework.roo.model.JavaType getReturnType()
           
 List<org.springframework.roo.model.JavaType> getThrowsTypes()
           
 String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

JavaParserMethodMetadata

public JavaParserMethodMetadata(String declaredByMetadataId,
                                japa.parser.ast.body.MethodDeclaration methodDeclaration,
                                CompilationUnitServices compilationUnitServices,
                                Set<org.springframework.roo.model.JavaSymbolName> typeParameters)
Method Detail

getModifier

public int getModifier()
Specified by:
getModifier in interface org.springframework.roo.classpath.details.IdentifiableMember

getDeclaredByMetadataId

public String getDeclaredByMetadataId()
Specified by:
getDeclaredByMetadataId in interface org.springframework.roo.classpath.details.IdentifiableMember

getAnnotations

public List<org.springframework.roo.classpath.details.annotations.AnnotationMetadata> getAnnotations()
Specified by:
getAnnotations in interface org.springframework.roo.classpath.details.InvocableMemberMetadata

getParameterNames

public List<org.springframework.roo.model.JavaSymbolName> getParameterNames()
Specified by:
getParameterNames in interface org.springframework.roo.classpath.details.InvocableMemberMetadata

getParameterTypes

public List<org.springframework.roo.classpath.details.annotations.AnnotatedJavaType> getParameterTypes()
Specified by:
getParameterTypes in interface org.springframework.roo.classpath.details.InvocableMemberMetadata

getReturnType

public org.springframework.roo.model.JavaType getReturnType()
Specified by:
getReturnType in interface org.springframework.roo.classpath.details.MethodMetadata

getMethodName

public org.springframework.roo.model.JavaSymbolName getMethodName()
Specified by:
getMethodName in interface org.springframework.roo.classpath.details.MethodMetadata

getThrowsTypes

public List<org.springframework.roo.model.JavaType> getThrowsTypes()
Specified by:
getThrowsTypes in interface org.springframework.roo.classpath.details.MethodMetadata

getBody

public String getBody()
Specified by:
getBody in interface org.springframework.roo.classpath.details.InvocableMemberMetadata

toString

public String toString()
Overrides:
toString in class Object

addMethod

public static void addMethod(CompilationUnitServices compilationUnitServices,
                             List<japa.parser.ast.body.BodyDeclaration> members,
                             org.springframework.roo.classpath.details.MethodMetadata method,
                             boolean permitFlush,
                             Set<org.springframework.roo.model.JavaSymbolName> typeParameters)


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