serp.bytecode.BCClass.getSuperclassName()方法的使用及代码示例

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

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

BCClass.getSuperclassName介绍

[英]Return the name of the superclass for this class, including package name. The name will be in a form suitable for a Class#forName call, or null for types without superclasses.
[中]

代码示例

代码示例来源:origin: org.apache.openjpa/openjpa-all

/**
 * Return the {@link Class} object for the superclass of this class, if it
 * is loadable. Returns null for types without superclasses.
 */
public Class getSuperclassType() {
  String name = getSuperclassName();
  if (name == null)
    return null;
  return Strings.toClass(name, getClassLoader());
}

代码示例来源:origin: net.sourceforge.serp/serp

/**
 * Return the {@link Class} object for the superclass of this class, if it
 * is loadable. Returns null for types without superclasses.
 */
public Class getSuperclassType() {
  String name = getSuperclassName();
  if (name == null)
    return null;
  return Strings.toClass(name, getClassLoader());
}

代码示例来源:origin: org.apache.openjpa/openjpa-all

/**
 * Return the bytecode of the superclass of this class, or
 * null for types without superclasses.
 */
public BCClass getSuperclassBC() {
  String name = getSuperclassName();
  if (name == null)
    return null;
  return getProject().loadClass(name, getClassLoader());
}

代码示例来源:origin: net.sourceforge.serp/serp

/**
 * Return the bytecode of the superclass of this class, or
 * null for types without superclasses.
 */
public BCClass getSuperclassBC() {
  String name = getSuperclassName();
  if (name == null)
    return null;
  return getProject().loadClass(name, getClassLoader());
}

代码示例来源:origin: org.apache.openjpa/openjpa-all

/**
 * Convenience method to add a default constructor to this class.
 * If a default constructor already exists, this method will return it
 * without modification.
 * This method can only be called if the superclass has been set.
 *
 * @return the default constructor
 */
public BCMethod addDefaultConstructor() {
  BCMethod method = getDeclaredMethod("<init>", (String[]) null);
  if (method != null)
    return method;
  method = declareMethod("<init>", void.class, null);
  Code code = method.getCode(true);
  code.setMaxStack(1);
  code.setMaxLocals(1);
  code.xload().setThis();
  code.invokespecial()
    .setMethod(getSuperclassName(), "<init>", "void", null);
  code.vreturn();
  return method;
}

代码示例来源:origin: net.sourceforge.serp/serp

/**
 * Convenience method to add a default constructor to this class.
 * If a default constructor already exists, this method will return it
 * without modification.
 * This method can only be called if the superclass has been set.
 *
 * @return the default constructor
 */
public BCMethod addDefaultConstructor() {
  BCMethod method = getDeclaredMethod("<init>", (String[]) null);
  if (method != null)
    return method;
  method = declareMethod("<init>", void.class, null);
  Code code = method.getCode(true);
  code.setMaxStack(1);
  code.setMaxLocals(1);
  code.xload().setThis();
  code.invokespecial()
    .setMethod(getSuperclassName(), "<init>", "void", null);
  code.vreturn();
  return method;
}

代码示例来源:origin: org.apache.openjpa/openjpa-all

String superName = _managedType.getSuperclassName();
Code code = null;
if (clone == null) {

代码示例来源:origin: org.apache.openjpa/com.springsource.org.apache.openjpa

String superName = _managedType.getSuperclassName();
Code code = null;
if (clone == null) {

代码示例来源:origin: org.apache.openejb.patch/openjpa

String superName = _managedType.getSuperclassName();
Code code = null;
if (clone == null) {

代码示例来源:origin: net.sourceforge.serp/serp

public void enterBCClass(BCClass obj) {
  openBlock("Class");
  println("magic=" + obj.getMagic());
  println("minor=" + obj.getMinorVersion());
  println("major=" + obj.getMajorVersion());
  println("access=" + obj.getAccessFlags());
  println("name=" + obj.getIndex() + " <" + obj.getName() + ">");
  println("super=" + obj.getSuperclassIndex() + " <" +
    obj.getSuperclassName() + ">");
  int[] indexes = obj.getDeclaredInterfaceIndexes();
  String[] names = obj.getDeclaredInterfaceNames();
  for (int i = 0; i < indexes.length; i++)
    println("interface=" + indexes[i] + " <" + names[i] + ">");
}

代码示例来源:origin: org.apache.openjpa/openjpa-kernel

String superName = _managedType.getSuperclassName();
Code code = null;
if (clone == null) {

代码示例来源:origin: org.apache.openejb.patch/openjpa-kernel

String superName = _managedType.getSuperclassName();
Code code = null;
if (clone == null) {

代码示例来源:origin: org.apache.openjpa/openjpa-all

public void enterBCClass(BCClass obj) {
  openBlock("Class");
  println("magic=" + obj.getMagic());
  println("minor=" + obj.getMinorVersion());
  println("major=" + obj.getMajorVersion());
  println("access=" + obj.getAccessFlags());
  println("name=" + obj.getIndex() + " <" + obj.getName() + ">");
  println("super=" + obj.getSuperclassIndex() + " <" +
    obj.getSuperclassName() + ">");
  int[] indexes = obj.getDeclaredInterfaceIndexes();
  String[] names = obj.getDeclaredInterfaceNames();
  for (int i = 0; i < indexes.length; i++)
    println("interface=" + indexes[i] + " <" + names[i] + ">");
}

相关文章

微信公众号

最新文章

更多