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 MethodDefinition
public String getReturnType()
getReturnType
in interface MethodDefinition
public String getBody()
getBody
in interface MethodDefinition
public boolean isStatic()
isStatic
in interface MethodDefinition
public boolean isPublic()
isPublic
in interface MethodDefinition
public MethodWithStringBody addParameter(String key, String value)
public List<MethodParameter> parameters()
parameters
in interface MethodDefinition
public MethodWithStringBody addAnnotation(String name)
public List<AnnotationDefinition> getAnnotations()
getAnnotations
in interface MethodDefinition
Copyright © 2001–2020 JBoss by Red Hat. All rights reserved.