javassist.bytecode.Bytecode.addExceptionHandler()方法的使用及代码示例

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

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

Bytecode.addExceptionHandler介绍

[英]Adds a new entry of exception_table.
[中]添加一个新条目exception_table

代码示例

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

/**
 * Adds a new entry of <code>exception_table</code>.
 */
public void addExceptionHandler(int start, int end,
                int handler, CtClass type) {
  addExceptionHandler(start, end, handler,
            constPool.addClassInfo(type));
}

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

/**
 * Adds a new entry of <code>exception_table</code>.
 *
 * @param type      the fully-qualified name of a throwable class.
 */
public void addExceptionHandler(int start, int end,
                int handler, String type) {
  addExceptionHandler(start, end, handler,
            constPool.addClassInfo(type));
}

代码示例来源:origin: org.javassist/javassist

/**
 * Adds a new entry of <code>exception_table</code>.
 */
public void addExceptionHandler(int start, int end,
                int handler, CtClass type) {
  addExceptionHandler(start, end, handler,
            constPool.addClassInfo(type));
}

代码示例来源:origin: org.javassist/javassist

/**
 * Adds a new entry of <code>exception_table</code>.
 *
 * @param type      the fully-qualified name of a throwable class.
 */
public void addExceptionHandler(int start, int end,
                int handler, String type) {
  addExceptionHandler(start, end, handler,
            constPool.addClassInfo(type));
}

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

bc.addExceptionHandler(start, end, bc.currentPc(), type);
bc.growStack(1);
bc.addAstore(var);
bc.addExceptionHandler(start, pcAnyCatch, pcAnyCatch, 0);
bc.growStack(1);
bc.addAstore(var);

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

bytecode.addIndex(0);   // correct later
bytecode.addExceptionHandler(start, end, bytecode.currentPc(),
               "java.lang.ClassNotFoundException");

代码示例来源:origin: hibernate/hibernate-orm

code.addExceptionHandler( start, end, handlerPc, throwableTypeIndex );

代码示例来源:origin: org.javassist/javassist

bytecode.addIndex(0);   // correct later
bytecode.addExceptionHandler(start, end, bytecode.currentPc(),
               "java.lang.ClassNotFoundException");

代码示例来源:origin: org.javassist/javassist

bc.addExceptionHandler(start, end, bc.currentPc(), type);
bc.growStack(1);
bc.addAstore(var);
bc.addExceptionHandler(start, pcAnyCatch, pcAnyCatch, 0);
bc.growStack(1);
bc.addAstore(var);

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

rh.doit(bc, 0);         // the 2nd arg is ignored.
bc.addOpcode(ATHROW);
bc.addExceptionHandler(pc, pc2, pc4, 0);

代码示例来源:origin: org.javassist/javassist

rh.doit(bc, 0);         // the 2nd arg is ignored.
bc.addOpcode(ATHROW);
bc.addExceptionHandler(pc, pc2, pc4, 0);

代码示例来源:origin: org.jboss.javassist/com.springsource.javassist

/**
 * Adds a new entry of <code>exception_table</code>.
 *
 * @param type      the fully-qualified name of a throwable class.
 */
public void addExceptionHandler(int start, int end,
                int handler, String type) {
  addExceptionHandler(start, end, handler,
            constPool.addClassInfo(type));
}

代码示例来源:origin: org.jboss/javassist

/**
 * Adds a new entry of <code>exception_table</code>.
 */
public void addExceptionHandler(int start, int end,
                int handler, CtClass type) {
  addExceptionHandler(start, end, handler,
            constPool.addClassInfo(type));
}

代码示例来源:origin: com.eclipsesource.jaxrs/jersey-all

/**
 * Adds a new entry of <code>exception_table</code>.
 */
public void addExceptionHandler(int start, int end,
                int handler, CtClass type) {
  addExceptionHandler(start, end, handler,
            constPool.addClassInfo(type));
}

代码示例来源:origin: hstaudacher/osgi-jax-rs-connector

/**
 * Adds a new entry of <code>exception_table</code>.
 *
 * @param type      the fully-qualified name of a throwable class.
 */
public void addExceptionHandler(int start, int end,
                int handler, String type) {
  addExceptionHandler(start, end, handler,
            constPool.addClassInfo(type));
}

代码示例来源:origin: com.eclipsesource.jaxrs/jersey-all

/**
 * Adds a new entry of <code>exception_table</code>.
 *
 * @param type      the fully-qualified name of a throwable class.
 */
public void addExceptionHandler(int start, int end,
                int handler, String type) {
  addExceptionHandler(start, end, handler,
            constPool.addClassInfo(type));
}

代码示例来源:origin: hstaudacher/osgi-jax-rs-connector

/**
 * Adds a new entry of <code>exception_table</code>.
 *
 * @param type      the fully-qualified name of a throwable class.
 */
public void addExceptionHandler(int start, int end,
                int handler, String type) {
  addExceptionHandler(start, end, handler,
            constPool.addClassInfo(type));
}

代码示例来源:origin: org.jboss/javassist

/**
 * Adds a new entry of <code>exception_table</code>.
 *
 * @param type      the fully-qualified name of a throwable class.
 */
public void addExceptionHandler(int start, int end,
                int handler, String type) {
  addExceptionHandler(start, end, handler,
            constPool.addClassInfo(type));
}

代码示例来源:origin: org.jboss.javassist/com.springsource.javassist

/**
 * Adds a new entry of <code>exception_table</code>.
 */
public void addExceptionHandler(int start, int end,
                int handler, CtClass type) {
  addExceptionHandler(start, end, handler,
            constPool.addClassInfo(type));
}

代码示例来源:origin: hstaudacher/osgi-jax-rs-connector

/**
 * Adds a new entry of <code>exception_table</code>.
 */
public void addExceptionHandler(int start, int end,
                int handler, CtClass type) {
  addExceptionHandler(start, end, handler,
            constPool.addClassInfo(type));
}

相关文章