本文整理汇总了Java中org.jf.dexlib2.iface.debug.PrologueEnd类的典型用法代码示例。如果您正苦于以下问题:Java PrologueEnd类的具体用法?Java PrologueEnd怎么用?Java PrologueEnd使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。
PrologueEnd类属于org.jf.dexlib2.iface.debug包,在下文中一共展示了PrologueEnd类的4个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。
示例1: of
import org.jf.dexlib2.iface.debug.PrologueEnd; //导入依赖的package包/类
@Nonnull
public static ImmutableDebugItem of(DebugItem debugItem) {
if (debugItem instanceof ImmutableDebugItem) {
return (ImmutableDebugItem) debugItem;
}
switch (debugItem.getDebugItemType()) {
case DebugItemType.START_LOCAL:
return ImmutableStartLocal.of((StartLocal) debugItem);
case DebugItemType.END_LOCAL:
return ImmutableEndLocal.of((EndLocal) debugItem);
case DebugItemType.RESTART_LOCAL:
return ImmutableRestartLocal.of((RestartLocal) debugItem);
case DebugItemType.PROLOGUE_END:
return ImmutablePrologueEnd.of((PrologueEnd) debugItem);
case DebugItemType.EPILOGUE_BEGIN:
return ImmutableEpilogueBegin.of((EpilogueBegin) debugItem);
case DebugItemType.SET_SOURCE_FILE:
return ImmutableSetSourceFile.of((SetSourceFile) debugItem);
case DebugItemType.LINE_NUMBER:
return ImmutableLineNumber.of((LineNumber) debugItem);
default:
throw new ExceptionWithContext("Invalid debug item type: %d", debugItem.getDebugItemType());
}
}
示例2: of
import org.jf.dexlib2.iface.debug.PrologueEnd; //导入依赖的package包/类
@Nonnull
public static ImmutablePrologueEnd of(@Nonnull PrologueEnd prologueEnd) {
if (prologueEnd instanceof ImmutablePrologueEnd) {
return (ImmutablePrologueEnd)prologueEnd;
}
return new ImmutablePrologueEnd(prologueEnd.getCodeAddress());
}
示例3: of
import org.jf.dexlib2.iface.debug.PrologueEnd; //导入依赖的package包/类
@Nonnull
public static ImmutablePrologueEnd of(@Nonnull PrologueEnd prologueEnd) {
if (prologueEnd instanceof ImmutablePrologueEnd) {
return (ImmutablePrologueEnd) prologueEnd;
}
return new ImmutablePrologueEnd(prologueEnd.getCodeAddress());
}
示例4: of
import org.jf.dexlib2.iface.debug.PrologueEnd; //导入依赖的package包/类
public static ImmutablePrologueEnd of( PrologueEnd prologueEnd) {
if (prologueEnd instanceof ImmutablePrologueEnd) {
return (ImmutablePrologueEnd)prologueEnd;
}
return new ImmutablePrologueEnd(prologueEnd.getCodeAddress());
}