org.milyn.javabean.pojogen
Class JMethod

java.lang.Object
  extended by org.milyn.javabean.pojogen.JMethod

public class JMethod
extends Object

Method model.

Author:
bardl, tom.fennelly@jboss.com

Constructor Summary
JMethod(JType returnType, String methodName)
           
JMethod(String methodName)
           
 
Method Summary
 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()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

JMethod

public JMethod(String methodName)

JMethod

public JMethod(JType returnType,
               String methodName)
Method Detail

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.