类 MethodCode

java.lang.Object
com.baidu.bjf.remoting.protobuf.code.MethodCode

public class MethodCode extends Object
Java method code creator.
从以下版本开始:
1.10.3
作者:
xiemalin
  • 构造器详细资料

    • MethodCode

      public MethodCode()
  • 方法详细资料

    • toCode

      public String toCode()
      To code.
      返回:
      the string
    • setScope

      public void setScope(String scope)
      Sets the scope.
      参数:
      scope - the new scope
    • setName

      public void setName(String name)
      Sets the name.
      参数:
      name - the new name
    • setReturnType

      public void setReturnType(String returnType)
      Sets the return type.
      参数:
      returnType - the new return type
    • addParameter

      public void addParameter(String type, String name)
      Adds the parameter.
      参数:
      type - the type
      name - the name
    • addException

      public void addException(String exception)
      Adds the exception.
      参数:
      exception - the exception
    • appendLineCode0

      public void appendLineCode0(String line)
      append a new line code to method without need to append ";" to the end.
      参数:
      line - the line
    • appendLineCode1

      public void appendLineCode1(String line)
      append a new line code to method with end with ";" .
      参数:
      line - the line