當前位置: 首頁>>代碼示例>>Java>>正文


Java MapMaker類代碼示例

本文整理匯總了Java中scouter.javassist.bytecode.stackmap.MapMaker的典型用法代碼示例。如果您正苦於以下問題:Java MapMaker類的具體用法?Java MapMaker怎麽用?Java MapMaker使用的例子?那麽, 這裏精選的類代碼示例或許可以為您提供幫助。


MapMaker類屬於scouter.javassist.bytecode.stackmap包,在下文中一共展示了MapMaker類的2個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的Java代碼示例。

示例1: rebuildStackMap

import scouter.javassist.bytecode.stackmap.MapMaker; //導入依賴的package包/類
/**
 * 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);
    }
}
 
開發者ID:scouter-project,項目名稱:bytescope,代碼行數:17,代碼來源:MethodInfo.java

示例2: rebuildStackMapForME

import scouter.javassist.bytecode.stackmap.MapMaker; //導入依賴的package包/類
/**
 * 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);
    }
}
 
開發者ID:scouter-project,項目名稱:bytescope,代碼行數:17,代碼來源:MethodInfo.java


注:本文中的scouter.javassist.bytecode.stackmap.MapMaker類示例由純淨天空整理自Github/MSDocs等開源代碼及文檔管理平台,相關代碼片段篩選自各路編程大神貢獻的開源項目,源碼版權歸原作者所有,傳播和使用請參考對應項目的License;未經允許,請勿轉載。