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

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

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

BCClass.setSuperclass介绍

[英]Set the superclass of this class.
[中]设置这个类的超类。

代码示例

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

/**
 * Set the superclass of this class.
 */
public void setSuperclass(Class type) {
  if (type == null)
    setSuperclass((String) null);
  else
    setSuperclass(type.getName());
}

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

/**
 * Set the superclass of this class.
 */
public void setSuperclass(Class type) {
  if (type == null)
    setSuperclass((String) null);
  else
    setSuperclass(type.getName());
}

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

/**
 * Set the superclass of this class.
 */
public void setSuperclass(BCClass type) {
  if (type == null)
    setSuperclass((String) null);
  else
    setSuperclass(type.getName());
}

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

/**
 * Set the superclass of this class.
 */
public void setSuperclass(BCClass type) {
  if (type == null)
    setSuperclass((String) null);
  else
    setSuperclass(type.getName());
}

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

protected void declareClasses(BCClass bc) {
  super.declareClasses(bc);
  bc.declareInterface(DynamicPCData.class);
  bc.setSuperclass(AbstractPCData.class);
}

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

protected void declareClasses(BCClass bc) {
  super.declareClasses(bc);
  bc.declareInterface(DynamicPCData.class);
  bc.setSuperclass(AbstractPCData.class);
}

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

protected void declareClasses(BCClass bc) {
  super.declareClasses(bc);
  bc.declareInterface(DynamicPCData.class);
  bc.setSuperclass(AbstractPCData.class);
}

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

protected void declareClasses(BCClass bc) {
  super.declareClasses(bc);
  bc.declareInterface(DynamicPCData.class);
  bc.setSuperclass(AbstractPCData.class);
}

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

protected void declareClasses(BCClass bc) {
  super.declareClasses(bc);
  bc.declareInterface(DynamicPCData.class);
  bc.setSuperclass(AbstractPCData.class);
}

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

/**
 * Generate a new class with the given name. If a non-null parent class
 * is given, it will be set as the superclass.
 */
public Class generateClass(String name, Class parent) {
  BCClass bc = _project.loadClass(name, null);
  if (parent != null)
    bc.setSuperclass(parent);
  bc.addDefaultConstructor();
  try {
    return Class.forName(name, false, _loader);
  } catch (ClassNotFoundException cnfe) {
    throw new InternalException(cnfe.toString(), cnfe);
  }
}

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

/**
 * Generate a new class with the given name. If a non-null parent class
 * is given, it will be set as the superclass.
 */
public Class generateClass(String name, Class parent) {
  BCClass bc = _project.loadClass(name, null);
  if (parent != null)
    bc.setSuperclass(parent);
  bc.addDefaultConstructor();
  try {
    return Class.forName(name, false, _loader);
  } catch (ClassNotFoundException cnfe) {
    throw new InternalException(cnfe.toString(), cnfe);
  }
}

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

/**
 * Generate a new class with the given name. If a non-null parent class
 * is given, it will be set as the superclass.
 */
public Class generateClass(String name, Class parent) {
  BCClass bc = _project.loadClass(name, null);
  if (parent != null)
    bc.setSuperclass(parent);
  bc.addDefaultConstructor();
  try {
    return Class.forName(name, false, _loader);
  } catch (ClassNotFoundException cnfe) {
    throw new InternalException(cnfe.toString(), cnfe);
  }
}

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

/**
 * Generate a new class with the given name. If a non-null parent class
 * is given, it will be set as the superclass.
 */
public Class generateClass(String name, Class parent) {
  BCClass bc = _project.loadClass(name, null);
  if (parent != null)
    bc.setSuperclass(parent);
  bc.addDefaultConstructor();
  try {
    return Class.forName(name, false, _loader);
  } catch (ClassNotFoundException cnfe) {
    throw new InternalException(cnfe.toString(), cnfe);
  }
}

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

/**
 * Generate a new class with the given name. If a non-null parent class
 * is given, it will be set as the superclass.
 */
public Class generateClass(String name, Class parent) {
  BCClass bc = _project.loadClass(name, null);
  if (parent != null)
    bc.setSuperclass(parent);
  bc.addDefaultConstructor();
  try {
    return Class.forName(name, false, _loader);
  } catch (ClassNotFoundException cnfe) {
    throw new InternalException(cnfe.toString(), cnfe);
  }
}

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

/**
 * Generate the bytecode for a calendar proxy for the given type.
 */
protected BCClass generateProxyCalendarBytecode(Class type, 
  boolean runtime) {
  assertNotFinal(type);
  Project project = new Project(); 
  BCClass bc = AccessController.doPrivileged(J2DoPrivHelper
    .loadProjectClassAction(project, getProxyClassName(type, runtime)));
  bc.setSuperclass(type);
  bc.declareInterface(ProxyCalendar.class);
  delegateConstructors(bc, type);
  addProxyMethods(bc, true);
  addProxyCalendarMethods(bc, type);
  proxySetters(bc, type);
  addWriteReplaceMethod(bc, runtime);
  return bc;
}

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

/**
 * Generate the bytecode for a date proxy for the given type.
 */
protected BCClass generateProxyDateBytecode(Class type, boolean runtime) {
  assertNotFinal(type);
  Project project = new Project(); 
  BCClass bc = AccessController.doPrivileged(J2DoPrivHelper
    .loadProjectClassAction(project, getProxyClassName(type, runtime)));
  bc.setSuperclass(type);
  bc.declareInterface(ProxyDate.class);
  delegateConstructors(bc, type);
  addProxyMethods(bc, true);
  addProxyDateMethods(bc, type);
  proxySetters(bc, type);
  addWriteReplaceMethod(bc, runtime);
  return bc;
}

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

/**
 * Generate the bytecode for a calendar proxy for the given type.
 */
protected BCClass generateProxyCalendarBytecode(Class type, 
  boolean runtime) {
  assertNotFinal(type);
  Project project = new Project(); 
  BCClass bc = AccessController.doPrivileged(J2DoPrivHelper
    .loadProjectClassAction(project, getProxyClassName(type, runtime)));
  bc.setSuperclass(type);
  bc.declareInterface(ProxyCalendar.class);
  delegateConstructors(bc, type);
  addProxyMethods(bc, true);
  addProxyCalendarMethods(bc, type);
  proxySetters(bc, type);
  addWriteReplaceMethod(bc, runtime);
  return bc;
}

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

/**
 * Generate the bytecode for a date proxy for the given type.
 */
protected BCClass generateProxyDateBytecode(Class type, boolean runtime) {
  assertNotFinal(type);
  Project project = new Project(); 
  BCClass bc = AccessController.doPrivileged(J2DoPrivHelper
    .loadProjectClassAction(project, getProxyClassName(type, runtime)));
  bc.setSuperclass(type);
  bc.declareInterface(ProxyDate.class);
  delegateConstructors(bc, type);
  addProxyMethods(bc, true);
  addProxyDateMethods(bc, type);
  proxySetters(bc, type);
  addWriteReplaceMethod(bc, runtime);
  return bc;
}

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

/**
 * Generate the bytecode for a calendar proxy for the given type.
 */
protected BCClass generateProxyCalendarBytecode(Class type, 
  boolean runtime) {
  assertNotFinal(type);
  Project project = new Project(); 
  BCClass bc = (BCClass) AccessController.doPrivileged(J2DoPrivHelper
    .loadProjectClassAction(project, getProxyClassName(type, runtime))); 
  bc.setSuperclass(type);
  bc.declareInterface(ProxyCalendar.class);
  delegateConstructors(bc, type);
  addProxyMethods(bc, true);
  addProxyCalendarMethods(bc, type);
  proxySetters(bc, type);
  addWriteReplaceMethod(bc, runtime);
  return bc;
}

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

/**
 * Generate the bytecode for a map proxy for the given type.
 */
protected BCClass generateProxyMapBytecode(Class type, boolean runtime) {
  assertNotFinal(type);
  Project project = new Project(); 
  BCClass bc = AccessController.doPrivileged(J2DoPrivHelper
    .loadProjectClassAction(project, getProxyClassName(type, runtime)));
  bc.setSuperclass(type);
  bc.declareInterface(ProxyMap.class);
  delegateConstructors(bc, type);
  addProxyMethods(bc, false);
  addProxyMapMethods(bc, type);
  Class<? extends ProxyMaps> mapProxyClassType = ProxyConcurrentMaps.class;
  proxyRecognizedMethods(bc, type, mapProxyClassType, ProxyMap.class);
  proxySetters(bc, type);
  addWriteReplaceMethod(bc, runtime);
  return bc;
}

相关文章

微信公众号

最新文章

更多