org.milyn.javabean.pojogen
Class JMethod
java.lang.Object
org.milyn.javabean.pojogen.JMethod
public class JMethod
- extends Object
Method model.
- Author:
- bardl, tom.fennelly@jboss.com
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
JMethod
public JMethod(String methodName)
JMethod
public JMethod(JType returnType,
String methodName)
getReturnType
public JType getReturnType()
getMethodName
public String getMethodName()
addParameter
public JMethod addParameter(JType type,
String parameterName)
addParameter
public JMethod addParameter(JNamedType parameter)
getParameters
public List<JNamedType> getParameters()
appendToBody
public JMethod appendToBody(String codeString)
bodyLength
public int bodyLength()
getBody
public String getBody()
getBodyBuilder
public StringBuilder getBodyBuilder()
getExceptions
public Set<JType> getExceptions()
finalizeMethod
public void finalizeMethod()
getParamSignature
public String getParamSignature()
Copyright © 2018. All rights reserved.