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 Annotatable
public List<Annotation> getAnnotations()
getAnnotations
in interface Annotatable
Copyright © 2021 Pivotal Software, Inc.. All rights reserved.