org.jruby.RubyClass.reify()方法的使用及代码示例

x33g5p2x  于2022-01-29 转载在 其他  
字(6.1k)|赞(0)|评价(0)|浏览(71)

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

RubyClass.reify介绍

[英]Stand up a real Java class for the backing store of this object
[中]为这个对象的备份存储建立一个真正的Java类

代码示例

代码示例来源:origin: com.ning.billing/killbill-osgi-bundles-jruby

public synchronized void reify() {
  reify(null, true);
}
public synchronized void reify(String classDumpDir) {

代码示例来源:origin: com.ning.billing/killbill-osgi-bundles-jruby

/**
 * Reify this class, first reifying all its ancestors. This causes the
 * reified class and all ancestors' reified classes to come into existence,
 * so any future changes will not be reflected.
 *
 * This form also accepts a string argument indicating a path in which to dump
 * the intermediate reified class bytes.
 *
 * @param classDumpDir the path in which to dump reified class bytes
 * @param useChildLoader whether to load the class into its own child classloader
 */
public void reifyWithAncestors(String classDumpDir, boolean useChildLoader) {
  if (isReifiable()) {
    RubyClass realSuper = getSuperClass().getRealClass();
    if (realSuper.reifiedClass == null) realSuper.reifyWithAncestors(classDumpDir, useChildLoader);
    reify(classDumpDir, useChildLoader);
  }
}

代码示例来源:origin: org.kill-bill.billing/killbill-osgi-bundles-jruby

public synchronized void reify() {
  reify(null, true);
}
public synchronized void reify(String classDumpDir) {

代码示例来源:origin: org.jruby/jruby-complete

/**
 * Reify this class, first reifying all its ancestors. This causes the
 * reified class and all ancestors' reified classes to come into existence,
 * so any future changes will not be reflected.
 *
 * This form also accepts a string argument indicating a path in which to dump
 * the intermediate reified class bytes.
 *
 * @param classDumpDir the path in which to dump reified class bytes
 * @param useChildLoader whether to load the class into its own child classloader
 */
public void reifyWithAncestors(String classDumpDir, boolean useChildLoader) {
  if (isReifiable()) {
    RubyClass realSuper = getSuperClass().getRealClass();
    if (realSuper.reifiedClass == null) realSuper.reifyWithAncestors(classDumpDir, useChildLoader);
    reify(classDumpDir, useChildLoader);
  }
}

代码示例来源:origin: org.jruby/jruby-complete

public final void reify() {
  reify(null, true);
}
public final void reify(String classDumpDir) {

代码示例来源:origin: org.jruby/jruby-core

/**
 * Reify this class, first reifying all its ancestors. This causes the
 * reified class and all ancestors' reified classes to come into existence,
 * so any future changes will not be reflected.
 *
 * This form also accepts a string argument indicating a path in which to dump
 * the intermediate reified class bytes.
 *
 * @param classDumpDir the path in which to dump reified class bytes
 * @param useChildLoader whether to load the class into its own child classloader
 */
public void reifyWithAncestors(String classDumpDir, boolean useChildLoader) {
  if (isReifiable()) {
    RubyClass realSuper = getSuperClass().getRealClass();
    if (realSuper.reifiedClass == null) realSuper.reifyWithAncestors(classDumpDir, useChildLoader);
    reify(classDumpDir, useChildLoader);
  }
}

代码示例来源:origin: org.jruby/jruby-complete

public final void reify(String classDumpDir) {
  reify(classDumpDir, true);
}
public final void reify(boolean useChildLoader) {

代码示例来源:origin: org.kill-bill.billing/killbill-osgi-bundles-jruby

/**
 * Reify this class, first reifying all its ancestors. This causes the
 * reified class and all ancestors' reified classes to come into existence,
 * so any future changes will not be reflected.
 *
 * This form also accepts a string argument indicating a path in which to dump
 * the intermediate reified class bytes.
 *
 * @param classDumpDir the path in which to dump reified class bytes
 * @param useChildLoader whether to load the class into its own child classloader
 */
public void reifyWithAncestors(String classDumpDir, boolean useChildLoader) {
  if (isReifiable()) {
    RubyClass realSuper = getSuperClass().getRealClass();
    if (realSuper.reifiedClass == null) realSuper.reifyWithAncestors(classDumpDir, useChildLoader);
    reify(classDumpDir, useChildLoader);
  }
}

代码示例来源:origin: org.jruby/jruby-core

public final void reify(boolean useChildLoader) {
  reify(null, useChildLoader);
}

代码示例来源:origin: org.kill-bill.billing/killbill-osgi-bundles-jruby

public synchronized void reify(String classDumpDir) {
  reify(classDumpDir, true);
}
public synchronized void reify(boolean useChildLoader) {

代码示例来源:origin: org.jruby/jruby-core

public final void reify() {
  reify(null, true);
}
public final void reify(String classDumpDir) {

代码示例来源:origin: org.jruby/jruby-core

public final void reify(String classDumpDir) {
  reify(classDumpDir, true);
}
public final void reify(boolean useChildLoader) {

代码示例来源:origin: com.ning.billing/killbill-osgi-bundles-jruby

public synchronized void reify(String classDumpDir) {
  reify(classDumpDir, true);
}
public synchronized void reify(boolean useChildLoader) {

代码示例来源:origin: org.jruby/jruby-complete

public final void reify(boolean useChildLoader) {
  reify(null, useChildLoader);
}

代码示例来源:origin: com.ning.billing/killbill-osgi-bundles-jruby

public synchronized void reify(boolean useChildLoader) {
  reify(null, useChildLoader);
}

代码示例来源:origin: org.kill-bill.billing/killbill-osgi-bundles-jruby

public synchronized void reify(boolean useChildLoader) {
  reify(null, useChildLoader);
}

代码示例来源:origin: com.ning.billing/killbill-osgi-bundles-jruby

private static void reifyWithAncestors(RubyClass klazz) {
    
    RubyClass realSuper = klazz.getSuperClass().getRealClass();

    if (realSuper.getReifiedClass() == null) reifyWithAncestors(realSuper);
    synchronized (klazz) {
      klazz.reify();
      klazz.setAllocator(new ReifyingAllocator(klazz.getReifiedClass()));
    }
  }
}

代码示例来源:origin: org.kill-bill.billing/killbill-osgi-bundles-jruby

private static void reifyWithAncestors(RubyClass klazz) {
    
    RubyClass realSuper = klazz.getSuperClass().getRealClass();

    if (realSuper.getReifiedClass() == null) reifyWithAncestors(realSuper);
    synchronized (klazz) {
      klazz.reify();
      klazz.setAllocator(new ReifyingAllocator(klazz.getReifiedClass()));
    }
  }
}

代码示例来源:origin: org.jruby/jruby-complete

private static void reifyWithAncestors(RubyClass klazz) {
    
    RubyClass realSuper = klazz.getSuperClass().getRealClass();

    if (realSuper.getReifiedClass() == null) reifyWithAncestors(realSuper);
    synchronized (klazz) {
      klazz.reify();
      klazz.setAllocator(new ReifyingAllocator(klazz.getReifiedClass()));
    }
  }
}

代码示例来源:origin: org.jruby/jruby-core

private static void reifyWithAncestors(RubyClass klazz) {
    
    RubyClass realSuper = klazz.getSuperClass().getRealClass();

    if (realSuper.getReifiedClass() == null) reifyWithAncestors(realSuper);
    synchronized (klazz) {
      klazz.reify();
      klazz.setAllocator(new ReifyingAllocator(klazz.getReifiedClass()));
    }
  }
}

相关文章

微信公众号

最新文章

更多

RubyClass类方法