本文整理汇总了Java中org.jf.dexlib2.builder.SwitchLabelElement类的典型用法代码示例。如果您正苦于以下问题:Java SwitchLabelElement类的具体用法?Java SwitchLabelElement怎么用?Java SwitchLabelElement使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。
SwitchLabelElement类属于org.jf.dexlib2.builder包,在下文中一共展示了SwitchLabelElement类的8个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于我们的系统推荐出更棒的Java代码示例。
示例1: BuilderSparseSwitchPayload
import org.jf.dexlib2.builder.SwitchLabelElement; //导入依赖的package包/类
public BuilderSparseSwitchPayload(@Nullable List<? extends SwitchLabelElement> switchElements) {
super(OPCODE);
if (switchElements == null) {
this.switchElements = ImmutableList.of();
} else {
this.switchElements = Lists.transform(switchElements, new Function<SwitchLabelElement, BuilderSwitchElement>() {
@Nullable @Override public BuilderSwitchElement apply(@Nullable SwitchLabelElement element) {
assert element != null;
return new BuilderSwitchElement(BuilderSparseSwitchPayload.this, element.key, element.target);
}
});
}
}
开发者ID:CvvT,项目名称:andbg,代码行数:14,代码来源:BuilderSparseSwitchPayload.java
示例2: insn_sparse_switch_directive
import org.jf.dexlib2.builder.SwitchLabelElement; //导入依赖的package包/类
public final void insn_sparse_switch_directive() throws RecognitionException {
List<SwitchLabelElement> sparse_switch_elements180 =null;
try {
// D:\\decomplier_tools\\smali\\smali\\smali\\src\\main\\antlr3\\smaliTreeWalker.g:1131:3: ( ^( I_STATEMENT_SPARSE_SWITCH sparse_switch_elements ) )
// D:\\decomplier_tools\\smali\\smali\\smali\\src\\main\\antlr3\\smaliTreeWalker.g:1132:5: ^( I_STATEMENT_SPARSE_SWITCH sparse_switch_elements )
{
match(input,I_STATEMENT_SPARSE_SWITCH,FOLLOW_I_STATEMENT_SPARSE_SWITCH_in_insn_sparse_switch_directive3041);
match(input, Token.DOWN, null);
pushFollow(FOLLOW_sparse_switch_elements_in_insn_sparse_switch_directive3043);
sparse_switch_elements180=sparse_switch_elements();
state._fsp--;
match(input, Token.UP, null);
method_stack.peek().methodBuilder.addInstruction(new BuilderSparseSwitchPayload(sparse_switch_elements180));
}
}
catch (RecognitionException re) {
reportError(re);
recover(input,re);
}
finally {
// do for sure before leaving
}
}
开发者ID:Miracle963,项目名称:zjdroid,代码行数:30,代码来源:smaliTreeWalker.java
示例3: getRealInsn0
import org.jf.dexlib2.builder.SwitchLabelElement; //导入依赖的package包/类
@Override
protected BuilderInstruction getRealInsn0(LabelAssigner assigner) {
List<SwitchLabelElement> elements = new ArrayList<SwitchLabelElement>();
for (int i = 0; i < keys.length; i++)
elements.add(new SwitchLabelElement(keys[i],
assigner.getOrCreateLabel((Stmt) targets.get(i))));
return new BuilderSparseSwitchPayload(elements);
}
开发者ID:flankerhqd,项目名称:JAADAS,代码行数:9,代码来源:SparseSwitchPayload.java
示例4: BuilderSparseSwitchPayload
import org.jf.dexlib2.builder.SwitchLabelElement; //导入依赖的package包/类
public BuilderSparseSwitchPayload( List<? extends SwitchLabelElement> switchElements) {
super(OPCODE);
if (switchElements == null) {
this.switchElements = ImmutableList.of();
} else {
this.switchElements = Lists.transform(switchElements, new Function<SwitchLabelElement, BuilderSwitchElement>() {
@Override public BuilderSwitchElement apply( SwitchLabelElement element) {
assert element != null;
return new BuilderSwitchElement(BuilderSparseSwitchPayload.this, element.key, element.target);
}
});
}
}
开发者ID:AndreJCL,项目名称:JCL,代码行数:14,代码来源:BuilderSparseSwitchPayload.java
示例5: BuilderSparseSwitchPayload
import org.jf.dexlib2.builder.SwitchLabelElement; //导入依赖的package包/类
public BuilderSparseSwitchPayload(@Nullable List<? extends SwitchLabelElement> switchElements) {
super(OPCODE);
if (switchElements == null) {
this.switchElements = ImmutableList.of();
} else {
this.switchElements = Lists.transform(switchElements, new Function<SwitchLabelElement, BuilderSwitchElement>() {
@Nullable
@Override
public BuilderSwitchElement apply(@Nullable SwitchLabelElement element) {
assert element != null;
return new BuilderSwitchElement(BuilderSparseSwitchPayload.this, element.key, element.target);
}
});
}
}
开发者ID:niranjan94,项目名称:show-java,代码行数:16,代码来源:BuilderSparseSwitchPayload.java
示例6: insn_sparse_switch_directive
import org.jf.dexlib2.builder.SwitchLabelElement; //导入依赖的package包/类
public final void insn_sparse_switch_directive() throws RecognitionException {
List<SwitchLabelElement> sparse_switch_elements180 =null;
try {
// /usr/local/google/home/bgruv/android/aosp-master/external/smali/smali/src/main/antlr3/smaliTreeWalker.g:1131:3: ( ^( I_STATEMENT_SPARSE_SWITCH sparse_switch_elements ) )
// /usr/local/google/home/bgruv/android/aosp-master/external/smali/smali/src/main/antlr3/smaliTreeWalker.g:1132:5: ^( I_STATEMENT_SPARSE_SWITCH sparse_switch_elements )
{
match(input,I_STATEMENT_SPARSE_SWITCH,FOLLOW_I_STATEMENT_SPARSE_SWITCH_in_insn_sparse_switch_directive3041);
match(input, Token.DOWN, null);
pushFollow(FOLLOW_sparse_switch_elements_in_insn_sparse_switch_directive3043);
sparse_switch_elements180=sparse_switch_elements();
state._fsp--;
match(input, Token.UP, null);
method_stack.peek().methodBuilder.addInstruction(new BuilderSparseSwitchPayload(sparse_switch_elements180));
}
}
catch (RecognitionException re) {
reportError(re);
recover(input,re);
}
finally {
// do for sure before leaving
}
}
开发者ID:Sukelluskello,项目名称:VectorAttackScanner,代码行数:30,代码来源:smaliTreeWalker.java
示例7: sparse_switch_elements
import org.jf.dexlib2.builder.SwitchLabelElement; //导入依赖的package包/类
public final List<SwitchLabelElement> sparse_switch_elements() throws RecognitionException {
List<SwitchLabelElement> elements = null;
int fixed_32bit_literal64 =0;
Label label_ref65 =null;
elements = Lists.newArrayList();
try {
// D:\\decomplier_tools\\smali\\smali\\smali\\src\\main\\antlr3\\smaliTreeWalker.g:338:3: ( ^( I_SPARSE_SWITCH_ELEMENTS ( fixed_32bit_literal label_ref )* ) )
// D:\\decomplier_tools\\smali\\smali\\smali\\src\\main\\antlr3\\smaliTreeWalker.g:339:5: ^( I_SPARSE_SWITCH_ELEMENTS ( fixed_32bit_literal label_ref )* )
{
match(input,I_SPARSE_SWITCH_ELEMENTS,FOLLOW_I_SPARSE_SWITCH_ELEMENTS_in_sparse_switch_elements881);
if ( input.LA(1)==Token.DOWN ) {
match(input, Token.DOWN, null);
// D:\\decomplier_tools\\smali\\smali\\smali\\src\\main\\antlr3\\smaliTreeWalker.g:340:8: ( fixed_32bit_literal label_ref )*
loop15:
while (true) {
int alt15=2;
int LA15_0 = input.LA(1);
if ( ((LA15_0 >= BOOL_LITERAL && LA15_0 <= BYTE_LITERAL)||LA15_0==CHAR_LITERAL||LA15_0==FLOAT_LITERAL||LA15_0==INTEGER_LITERAL||LA15_0==LONG_LITERAL||LA15_0==SHORT_LITERAL) ) {
alt15=1;
}
switch (alt15) {
case 1 :
// D:\\decomplier_tools\\smali\\smali\\smali\\src\\main\\antlr3\\smaliTreeWalker.g:340:9: fixed_32bit_literal label_ref
{
pushFollow(FOLLOW_fixed_32bit_literal_in_sparse_switch_elements891);
fixed_32bit_literal64=fixed_32bit_literal();
state._fsp--;
pushFollow(FOLLOW_label_ref_in_sparse_switch_elements893);
label_ref65=label_ref();
state._fsp--;
elements.add(new SwitchLabelElement(fixed_32bit_literal64, label_ref65));
}
break;
default :
break loop15;
}
}
match(input, Token.UP, null);
}
}
}
catch (RecognitionException re) {
reportError(re);
recover(input,re);
}
finally {
// do for sure before leaving
}
return elements;
}
开发者ID:Miracle963,项目名称:zjdroid,代码行数:63,代码来源:smaliTreeWalker.java
示例8: sparse_switch_elements
import org.jf.dexlib2.builder.SwitchLabelElement; //导入依赖的package包/类
public final List<SwitchLabelElement> sparse_switch_elements() throws RecognitionException {
List<SwitchLabelElement> elements = null;
int fixed_32bit_literal64 =0;
Label label_ref65 =null;
elements = Lists.newArrayList();
try {
// /usr/local/google/home/bgruv/android/aosp-master/external/smali/smali/src/main/antlr3/smaliTreeWalker.g:338:3: ( ^( I_SPARSE_SWITCH_ELEMENTS ( fixed_32bit_literal label_ref )* ) )
// /usr/local/google/home/bgruv/android/aosp-master/external/smali/smali/src/main/antlr3/smaliTreeWalker.g:339:5: ^( I_SPARSE_SWITCH_ELEMENTS ( fixed_32bit_literal label_ref )* )
{
match(input,I_SPARSE_SWITCH_ELEMENTS,FOLLOW_I_SPARSE_SWITCH_ELEMENTS_in_sparse_switch_elements881);
if ( input.LA(1)==Token.DOWN ) {
match(input, Token.DOWN, null);
// /usr/local/google/home/bgruv/android/aosp-master/external/smali/smali/src/main/antlr3/smaliTreeWalker.g:340:8: ( fixed_32bit_literal label_ref )*
loop15:
while (true) {
int alt15=2;
int LA15_0 = input.LA(1);
if ( ((LA15_0 >= BOOL_LITERAL && LA15_0 <= BYTE_LITERAL)||LA15_0==CHAR_LITERAL||LA15_0==FLOAT_LITERAL||LA15_0==INTEGER_LITERAL||LA15_0==LONG_LITERAL||LA15_0==SHORT_LITERAL) ) {
alt15=1;
}
switch (alt15) {
case 1 :
// /usr/local/google/home/bgruv/android/aosp-master/external/smali/smali/src/main/antlr3/smaliTreeWalker.g:340:9: fixed_32bit_literal label_ref
{
pushFollow(FOLLOW_fixed_32bit_literal_in_sparse_switch_elements891);
fixed_32bit_literal64=fixed_32bit_literal();
state._fsp--;
pushFollow(FOLLOW_label_ref_in_sparse_switch_elements893);
label_ref65=label_ref();
state._fsp--;
elements.add(new SwitchLabelElement(fixed_32bit_literal64, label_ref65));
}
break;
default :
break loop15;
}
}
match(input, Token.UP, null);
}
}
}
catch (RecognitionException re) {
reportError(re);
recover(input,re);
}
finally {
// do for sure before leaving
}
return elements;
}
开发者ID:Sukelluskello,项目名称:VectorAttackScanner,代码行数:63,代码来源:smaliTreeWalker.java
注:本文中的org.jf.dexlib2.builder.SwitchLabelElement类示例整理自Github/MSDocs等源码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。 |
请发表评论