public final class JavaMethodDeclaration extends Object implements Annotatable
| Modifier and Type | Class and Description |
|---|---|
static class |
JavaMethodDeclaration.Builder
Builder for creating a
JavaMethodDeclaration. |
| Modifier and Type | Method and Description |
|---|---|
void |
annotate(Annotation annotation) |
List<Annotation> |
getAnnotations() |
List<JavaStatement> |
getStatements() |
static JavaMethodDeclaration.Builder |
method(String name) |
public static JavaMethodDeclaration.Builder method(String name)
public List<JavaStatement> getStatements()
public void annotate(Annotation annotation)
annotate in interface Annotatablepublic List<Annotation> getAnnotations()
getAnnotations in interface AnnotatableCopyright © 2020 Pivotal Software, Inc.. All rights reserved.