org.springframework.roo.classpath.javaparser.details
Class JavaParserMethodMetadata
java.lang.Object
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
JavaParserMethodMetadata
public JavaParserMethodMetadata(String declaredByMetadataId,
japa.parser.ast.body.MethodDeclaration methodDeclaration,
CompilationUnitServices compilationUnitServices,
Set<org.springframework.roo.model.JavaSymbolName> typeParameters)
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.