public class MethodWithStringBody extends Object implements MethodDefinition
| Constructor and Description |
|---|
MethodWithStringBody(String methodName,
String returnType,
String body) |
| Modifier and Type | Method and Description |
|---|---|
MethodWithStringBody |
addAnnotation(String name) |
MethodWithStringBody |
addParameter(String key,
String value) |
List<AnnotationDefinition> |
getAnnotations() |
String |
getBody() |
String |
getMethodName() |
String |
getReturnType() |
boolean |
isPublic() |
boolean |
isStatic() |
List<MethodParameter> |
parameters() |
public String getMethodName()
getMethodName in interface MethodDefinitionpublic String getReturnType()
getReturnType in interface MethodDefinitionpublic String getBody()
getBody in interface MethodDefinitionpublic boolean isStatic()
isStatic in interface MethodDefinitionpublic boolean isPublic()
isPublic in interface MethodDefinitionpublic MethodWithStringBody addParameter(String key, String value)
public List<MethodParameter> parameters()
parameters in interface MethodDefinitionpublic MethodWithStringBody addAnnotation(String name)
public List<AnnotationDefinition> getAnnotations()
getAnnotations in interface MethodDefinitionCopyright © 2001–2021 JBoss by Red Hat. All rights reserved.