public class JMethod extends Object
Constructor and Description |
---|
JMethod(JType returnType,
String methodName) |
JMethod(String methodName) |
Modifier and Type | Method and Description |
---|---|
JMethod |
addParameter(JNamedType parameter) |
JMethod |
addParameter(JType type,
String parameterName) |
JMethod |
appendToBody(String codeString) |
int |
bodyLength() |
void |
finalizeMethod() |
String |
getBody() |
StringBuilder |
getBodyBuilder() |
Set<JType> |
getExceptions() |
String |
getMethodName() |
List<JNamedType> |
getParameters() |
String |
getParamSignature() |
JType |
getReturnType() |
public JMethod(String methodName)
public JType getReturnType()
public String getMethodName()
public JMethod addParameter(JNamedType parameter)
public List<JNamedType> getParameters()
public int bodyLength()
public String getBody()
public StringBuilder getBodyBuilder()
public void finalizeMethod()
public String getParamSignature()
Copyright © 2020. All rights reserved.