• 设为首页
  • 点击收藏
  • 手机版
    手机扫一扫访问
    迪恩网络手机版
  • 关注官方公众号
    微信扫一扫关注
    公众号

Java SwitchLabelElement类代码示例

原作者: [db:作者] 来自: [db:来源] 收藏 邀请

本文整理汇总了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;未经允许,请勿转载。


鲜花

握手

雷人

路过

鸡蛋
该文章已有0人参与评论

请发表评论

全部评论

专题导读
上一篇:
Java HttpHeaders类代码示例发布时间:2022-05-22
下一篇:
Java ToHeader类代码示例发布时间:2022-05-22
热门推荐
阅读排行榜

扫描微信二维码

查看手机版网站

随时了解更新最新资讯

139-2527-9053

在线客服(服务时间 9:00~18:00)

在线QQ客服
地址:深圳市南山区西丽大学城创智工业园
电邮:jeky_zhao#qq.com
移动电话:139-2527-9053

Powered by 互联科技 X3.4© 2001-2213 极客世界.|Sitemap