java.lang.reflect.Constructor.getSignature()方法的使用及代码示例

x33g5p2x  于2022-01-17 转载在 其他  
字(4.2k)|赞(0)|评价(0)|浏览(149)

本文整理了Java中java.lang.reflect.Constructor.getSignature()方法的一些代码示例,展示了Constructor.getSignature()的具体用法。这些代码示例主要来源于Github/Stackoverflow/Maven等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Constructor.getSignature()方法的具体详情如下:
包路径:java.lang.reflect.Constructor
类名称:Constructor
方法名:getSignature

Constructor.getSignature介绍

[英]Returns the constructor's signature in non-printable form. This is called (only) from IO native code and needed for deriving the serialVersionUID of the class
[中]以不可打印的形式返回构造函数的签名。这是(仅)从IO本机代码调用的,用于派生类的serialVersionUID

代码示例

代码示例来源:origin: robovm/robovm

/**
 * Returns the constructor's signature in non-printable form. This is called
 * (only) from IO native code and needed for deriving the serialVersionUID
 * of the class
 *
 * @return the constructor's signature
 */
@SuppressWarnings("unused")
private String getSignature() {
  Class<?>[] parameterTypes = getParameterTypes(false);
  StringBuilder result = new StringBuilder();
  result.append('(');
  for (int i = 0; i < parameterTypes.length; i++) {
    result.append(getSignature(parameterTypes[i]));
  }
  result.append(")V");
  return result.toString();
}

代码示例来源:origin: com.gluonhq/robovm-rt

/**
 * Returns the constructor's signature in non-printable form. This is called
 * (only) from IO native code and needed for deriving the serialVersionUID
 * of the class
 *
 * @return the constructor's signature
 */
@SuppressWarnings("unused")
private String getSignature() {
  Class<?>[] parameterTypes = getParameterTypes(false);
  StringBuilder result = new StringBuilder();
  result.append('(');
  for (int i = 0; i < parameterTypes.length; i++) {
    result.append(getSignature(parameterTypes[i]));
  }
  result.append(")V");
  return result.toString();
}

代码示例来源:origin: com.mobidevelop.robovm/robovm-rt

/**
 * Returns the constructor's signature in non-printable form. This is called
 * (only) from IO native code and needed for deriving the serialVersionUID
 * of the class
 *
 * @return the constructor's signature
 */
@SuppressWarnings("unused")
private String getSignature() {
  Class<?>[] parameterTypes = getParameterTypes(false);
  StringBuilder result = new StringBuilder();
  result.append('(');
  for (int i = 0; i < parameterTypes.length; i++) {
    result.append(getSignature(parameterTypes[i]));
  }
  result.append(")V");
  return result.toString();
}

代码示例来源:origin: MobiVM/robovm

/**
 * Returns the constructor's signature in non-printable form. This is called
 * (only) from IO native code and needed for deriving the serialVersionUID
 * of the class
 *
 * @return the constructor's signature
 */
@SuppressWarnings("unused")
private String getSignature() {
  Class<?>[] parameterTypes = getParameterTypes(false);
  StringBuilder result = new StringBuilder();
  result.append('(');
  for (int i = 0; i < parameterTypes.length; i++) {
    result.append(getSignature(parameterTypes[i]));
  }
  result.append(")V");
  return result.toString();
}

代码示例来源:origin: ibinti/bugvm

/**
 * Returns the constructor's signature in non-printable form. This is called
 * (only) from IO native code and needed for deriving the serialVersionUID
 * of the class
 *
 * @return the constructor's signature
 */
@SuppressWarnings("unused")
private String getSignature() {
  Class<?>[] parameterTypes = getParameterTypes(false);
  StringBuilder result = new StringBuilder();
  result.append('(');
  for (int i = 0; i < parameterTypes.length; i++) {
    result.append(getSignature(parameterTypes[i]));
  }
  result.append(")V");
  return result.toString();
}

代码示例来源:origin: com.bugvm/bugvm-rt

/**
 * Returns the constructor's signature in non-printable form. This is called
 * (only) from IO native code and needed for deriving the serialVersionUID
 * of the class
 *
 * @return the constructor's signature
 */
@SuppressWarnings("unused")
private String getSignature() {
  Class<?>[] parameterTypes = getParameterTypes(false);
  StringBuilder result = new StringBuilder();
  result.append('(');
  for (int i = 0; i < parameterTypes.length; i++) {
    result.append(getSignature(parameterTypes[i]));
  }
  result.append(")V");
  return result.toString();
}

代码示例来源:origin: FlexoVM/flexovm

/**
 * Returns the constructor's signature in non-printable form. This is called
 * (only) from IO native code and needed for deriving the serialVersionUID
 * of the class
 *
 * @return the constructor's signature
 */
@SuppressWarnings("unused")
private String getSignature() {
  Class<?>[] parameterTypes = getParameterTypes(false);
  StringBuilder result = new StringBuilder();
  result.append('(');
  for (int i = 0; i < parameterTypes.length; i++) {
    result.append(getSignature(parameterTypes[i]));
  }
  result.append(")V");
  return result.toString();
}

相关文章