コード例 #1
0
 /**
  * Rebuilds a stack map table. If no stack map table is included, a new one is created. If this
  * <code>MethodInfo</code> does not include a code attribute, nothing happens.
  *
  * @param pool used for making type hierarchy.
  * @see StackMapTable
  * @since 3.6
  */
 public void rebuildStackMap(ClassPool pool) throws BadBytecode {
   CodeAttribute ca = getCodeAttribute();
   if (ca != null) {
     StackMapTable smt = MapMaker.make(pool, this);
     ca.setAttribute(smt);
   }
 }
コード例 #2
0
ファイル: MethodInfo.java プロジェクト: JimoLucy/javassist
 /**
  * Rebuilds a stack map table for J2ME (CLDC). If no stack map table is included, a new one is
  * created. If this <code>MethodInfo</code> does not include a code attribute, nothing happens.
  *
  * @param pool used for making type hierarchy.
  * @see StackMap
  * @since 3.12
  */
 public void rebuildStackMapForME(ClassPool pool) throws BadBytecode {
   CodeAttribute ca = getCodeAttribute();
   if (ca != null) {
     StackMap sm = MapMaker.make2(pool, this);
     ca.setAttribute(sm);
   }
 }