当前位置: 首页>>代码示例>>Java>>正文


Java Label类代码示例

本文整理汇总了Java中org.jf.dexlib2.builder.Label的典型用法代码示例。如果您正苦于以下问题:Java Label类的具体用法?Java Label怎么用?Java Label使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。


Label类属于org.jf.dexlib2.builder包,在下文中一共展示了Label类的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。

示例1: label_ref

import org.jf.dexlib2.builder.Label; //导入依赖的package包/类
public final Label label_ref() throws RecognitionException {
	Label label = null;


	CommonTree SIMPLE_NAME96=null;

	try {
		// D:\\decomplier_tools\\smali\\smali\\smali\\src\\main\\antlr3\\smaliTreeWalker.g:647:3: ( SIMPLE_NAME )
		// D:\\decomplier_tools\\smali\\smali\\smali\\src\\main\\antlr3\\smaliTreeWalker.g:647:5: SIMPLE_NAME
		{
		SIMPLE_NAME96=(CommonTree)match(input,SIMPLE_NAME,FOLLOW_SIMPLE_NAME_in_label_ref1662); 
		 label = method_stack.peek().methodBuilder.getLabel((SIMPLE_NAME96!=null?SIMPLE_NAME96.getText():null)); 
		}

	}
	catch (RecognitionException re) {
		reportError(re);
		recover(input,re);
	}
	finally {
		// do for sure before leaving
	}
	return label;
}
 
开发者ID:Miracle963,项目名称:zjdroid,代码行数:25,代码来源:smaliTreeWalker.java

示例2: label_ref

import org.jf.dexlib2.builder.Label; //导入依赖的package包/类
public final Label label_ref() throws RecognitionException {
	Label label = null;


	CommonTree SIMPLE_NAME96=null;

	try {
		// /usr/local/google/home/bgruv/android/aosp-master/external/smali/smali/src/main/antlr3/smaliTreeWalker.g:647:3: ( SIMPLE_NAME )
		// /usr/local/google/home/bgruv/android/aosp-master/external/smali/smali/src/main/antlr3/smaliTreeWalker.g:647:5: SIMPLE_NAME
		{
		SIMPLE_NAME96=(CommonTree)match(input,SIMPLE_NAME,FOLLOW_SIMPLE_NAME_in_label_ref1662); 
		 label = method_stack.peek().methodBuilder.getLabel((SIMPLE_NAME96!=null?SIMPLE_NAME96.getText():null)); 
		}

	}
	catch (RecognitionException re) {
		reportError(re);
		recover(input,re);
	}
	finally {
		// do for sure before leaving
	}
	return label;
}
 
开发者ID:Sukelluskello,项目名称:VectorAttackScanner,代码行数:25,代码来源:smaliTreeWalker.java

示例3: BuilderInstruction22t

import org.jf.dexlib2.builder.Label; //导入依赖的package包/类
public BuilderInstruction22t(@Nonnull Opcode opcode,
                             int registerA,
                             int registerB,
                             @Nonnull Label target) {
    super(opcode, target);
    this.registerA = Preconditions.checkNibbleRegister(registerA);
    this.registerB = Preconditions.checkNibbleRegister(registerB);
}
 
开发者ID:CvvT,项目名称:andbg,代码行数:9,代码来源:BuilderInstruction22t.java

示例4: BuilderPackedSwitchPayload

import org.jf.dexlib2.builder.Label; //导入依赖的package包/类
public BuilderPackedSwitchPayload(final int startKey,
                                  @Nullable List<? extends Label> switchElements) {
    super(OPCODE);
    if (switchElements == null) {
        this.switchElements = ImmutableList.of();
    } else {
        this.switchElements = Lists.newArrayList();
        int key = startKey;
        for (Label target: switchElements) {
            this.switchElements.add(new BuilderSwitchElement(this, key++, target));
        }
    }
}
 
开发者ID:CvvT,项目名称:andbg,代码行数:14,代码来源:BuilderPackedSwitchPayload.java

示例5: BuilderSwitchElement

import org.jf.dexlib2.builder.Label; //导入依赖的package包/类
public BuilderSwitchElement(@Nonnull BuilderSwitchPayload parent,
                            int key,
                            @Nonnull Label target) {
    this.parent = parent;
    this.key = key;
    this.target = target;
}
 
开发者ID:CvvT,项目名称:andbg,代码行数:8,代码来源:BuilderSwitchElement.java

示例6: catchall_directive

import org.jf.dexlib2.builder.Label; //导入依赖的package包/类
public final void catchall_directive() throws RecognitionException {
	Label from =null;
	Label to =null;
	Label using =null;

	try {
		// D:\\decomplier_tools\\smali\\smali\\smali\\src\\main\\antlr3\\smaliTreeWalker.g:544:3: ( ^( I_CATCHALL from= label_ref to= label_ref using= label_ref ) )
		// D:\\decomplier_tools\\smali\\smali\\smali\\src\\main\\antlr3\\smaliTreeWalker.g:544:5: ^( I_CATCHALL from= label_ref to= label_ref using= label_ref )
		{
		match(input,I_CATCHALL,FOLLOW_I_CATCHALL_in_catchall_directive1362); 
		match(input, Token.DOWN, null); 
		pushFollow(FOLLOW_label_ref_in_catchall_directive1366);
		from=label_ref();
		state._fsp--;

		pushFollow(FOLLOW_label_ref_in_catchall_directive1370);
		to=label_ref();
		state._fsp--;

		pushFollow(FOLLOW_label_ref_in_catchall_directive1374);
		using=label_ref();
		state._fsp--;

		match(input, Token.UP, null); 


		    method_stack.peek().methodBuilder.addCatch(from, to, using);
		  
		}

	}
	catch (RecognitionException re) {
		reportError(re);
		recover(input,re);
	}
	finally {
		// do for sure before leaving
	}
}
 
开发者ID:Miracle963,项目名称:zjdroid,代码行数:40,代码来源:smaliTreeWalker.java

示例7: insn_format10t

import org.jf.dexlib2.builder.Label; //导入依赖的package包/类
public final void insn_format10t() throws RecognitionException {
	CommonTree INSTRUCTION_FORMAT10t104=null;
	Label label_ref105 =null;

	try {
		// D:\\decomplier_tools\\smali\\smali\\smali\\src\\main\\antlr3\\smaliTreeWalker.g:747:3: ( ^( I_STATEMENT_FORMAT10t INSTRUCTION_FORMAT10t label_ref ) )
		// D:\\decomplier_tools\\smali\\smali\\smali\\src\\main\\antlr3\\smaliTreeWalker.g:748:5: ^( I_STATEMENT_FORMAT10t INSTRUCTION_FORMAT10t label_ref )
		{
		match(input,I_STATEMENT_FORMAT10t,FOLLOW_I_STATEMENT_FORMAT10t_in_insn_format10t2026); 
		match(input, Token.DOWN, null); 
		INSTRUCTION_FORMAT10t104=(CommonTree)match(input,INSTRUCTION_FORMAT10t,FOLLOW_INSTRUCTION_FORMAT10t_in_insn_format10t2028); 
		pushFollow(FOLLOW_label_ref_in_insn_format10t2030);
		label_ref105=label_ref();
		state._fsp--;

		match(input, Token.UP, null); 


		      Opcode opcode = opcodes.getOpcodeByName((INSTRUCTION_FORMAT10t104!=null?INSTRUCTION_FORMAT10t104.getText():null));
		      method_stack.peek().methodBuilder.addInstruction(new BuilderInstruction10t(opcode, label_ref105));
		    
		}

	}
	catch (RecognitionException re) {
		reportError(re);
		recover(input,re);
	}
	finally {
		// do for sure before leaving
	}
}
 
开发者ID:Miracle963,项目名称:zjdroid,代码行数:33,代码来源:smaliTreeWalker.java

示例8: insn_format20t

import org.jf.dexlib2.builder.Label; //导入依赖的package包/类
public final void insn_format20t() throws RecognitionException {
	CommonTree INSTRUCTION_FORMAT20t116=null;
	Label label_ref117 =null;

	try {
		// D:\\decomplier_tools\\smali\\smali\\smali\\src\\main\\antlr3\\smaliTreeWalker.g:810:3: ( ^( I_STATEMENT_FORMAT20t INSTRUCTION_FORMAT20t label_ref ) )
		// D:\\decomplier_tools\\smali\\smali\\smali\\src\\main\\antlr3\\smaliTreeWalker.g:811:5: ^( I_STATEMENT_FORMAT20t INSTRUCTION_FORMAT20t label_ref )
		{
		match(input,I_STATEMENT_FORMAT20t,FOLLOW_I_STATEMENT_FORMAT20t_in_insn_format20t2196); 
		match(input, Token.DOWN, null); 
		INSTRUCTION_FORMAT20t116=(CommonTree)match(input,INSTRUCTION_FORMAT20t,FOLLOW_INSTRUCTION_FORMAT20t_in_insn_format20t2198); 
		pushFollow(FOLLOW_label_ref_in_insn_format20t2200);
		label_ref117=label_ref();
		state._fsp--;

		match(input, Token.UP, null); 


		      Opcode opcode = opcodes.getOpcodeByName((INSTRUCTION_FORMAT20t116!=null?INSTRUCTION_FORMAT20t116.getText():null));
		      method_stack.peek().methodBuilder.addInstruction(new BuilderInstruction20t(opcode, label_ref117));
		    
		}

	}
	catch (RecognitionException re) {
		reportError(re);
		recover(input,re);
	}
	finally {
		// do for sure before leaving
	}
}
 
开发者ID:Miracle963,项目名称:zjdroid,代码行数:33,代码来源:smaliTreeWalker.java

示例9: insn_format21t

import org.jf.dexlib2.builder.Label; //导入依赖的package包/类
public final void insn_format21t() throws RecognitionException {
	CommonTree INSTRUCTION_FORMAT21t135=null;
	CommonTree REGISTER136=null;
	Label label_ref137 =null;

	try {
		// D:\\decomplier_tools\\smali\\smali\\smali\\src\\main\\antlr3\\smaliTreeWalker.g:889:3: ( ^( I_STATEMENT_FORMAT21t INSTRUCTION_FORMAT21t REGISTER label_ref ) )
		// D:\\decomplier_tools\\smali\\smali\\smali\\src\\main\\antlr3\\smaliTreeWalker.g:890:5: ^( I_STATEMENT_FORMAT21t INSTRUCTION_FORMAT21t REGISTER label_ref )
		{
		match(input,I_STATEMENT_FORMAT21t,FOLLOW_I_STATEMENT_FORMAT21t_in_insn_format21t2405); 
		match(input, Token.DOWN, null); 
		INSTRUCTION_FORMAT21t135=(CommonTree)match(input,INSTRUCTION_FORMAT21t,FOLLOW_INSTRUCTION_FORMAT21t_in_insn_format21t2407); 
		REGISTER136=(CommonTree)match(input,REGISTER,FOLLOW_REGISTER_in_insn_format21t2409); 
		pushFollow(FOLLOW_label_ref_in_insn_format21t2411);
		label_ref137=label_ref();
		state._fsp--;

		match(input, Token.UP, null); 


		      Opcode opcode = opcodes.getOpcodeByName((INSTRUCTION_FORMAT21t135!=null?INSTRUCTION_FORMAT21t135.getText():null));
		      short regA = parseRegister_byte((REGISTER136!=null?REGISTER136.getText():null));

		      method_stack.peek().methodBuilder.addInstruction(new BuilderInstruction21t(opcode, regA, label_ref137));
		    
		}

	}
	catch (RecognitionException re) {
		reportError(re);
		recover(input,re);
	}
	finally {
		// do for sure before leaving
	}
}
 
开发者ID:Miracle963,项目名称:zjdroid,代码行数:37,代码来源:smaliTreeWalker.java

示例10: insn_format22t

import org.jf.dexlib2.builder.Label; //导入依赖的package包/类
public final void insn_format22t() throws RecognitionException {
	CommonTree registerA=null;
	CommonTree registerB=null;
	CommonTree INSTRUCTION_FORMAT22t145=null;
	Label label_ref146 =null;

	try {
		// D:\\decomplier_tools\\smali\\smali\\smali\\src\\main\\antlr3\\smaliTreeWalker.g:952:3: ( ^( I_STATEMENT_FORMAT22t INSTRUCTION_FORMAT22t registerA= REGISTER registerB= REGISTER label_ref ) )
		// D:\\decomplier_tools\\smali\\smali\\smali\\src\\main\\antlr3\\smaliTreeWalker.g:953:5: ^( I_STATEMENT_FORMAT22t INSTRUCTION_FORMAT22t registerA= REGISTER registerB= REGISTER label_ref )
		{
		match(input,I_STATEMENT_FORMAT22t,FOLLOW_I_STATEMENT_FORMAT22t_in_insn_format22t2582); 
		match(input, Token.DOWN, null); 
		INSTRUCTION_FORMAT22t145=(CommonTree)match(input,INSTRUCTION_FORMAT22t,FOLLOW_INSTRUCTION_FORMAT22t_in_insn_format22t2584); 
		registerA=(CommonTree)match(input,REGISTER,FOLLOW_REGISTER_in_insn_format22t2588); 
		registerB=(CommonTree)match(input,REGISTER,FOLLOW_REGISTER_in_insn_format22t2592); 
		pushFollow(FOLLOW_label_ref_in_insn_format22t2594);
		label_ref146=label_ref();
		state._fsp--;

		match(input, Token.UP, null); 


		      Opcode opcode = opcodes.getOpcodeByName((INSTRUCTION_FORMAT22t145!=null?INSTRUCTION_FORMAT22t145.getText():null));
		      byte regA = parseRegister_nibble((registerA!=null?registerA.getText():null));
		      byte regB = parseRegister_nibble((registerB!=null?registerB.getText():null));

		      method_stack.peek().methodBuilder.addInstruction(new BuilderInstruction22t(opcode, regA, regB, label_ref146));
		    
		}

	}
	catch (RecognitionException re) {
		reportError(re);
		recover(input,re);
	}
	finally {
		// do for sure before leaving
	}
}
 
开发者ID:Miracle963,项目名称:zjdroid,代码行数:40,代码来源:smaliTreeWalker.java

示例11: insn_format30t

import org.jf.dexlib2.builder.Label; //导入依赖的package包/类
public final void insn_format30t() throws RecognitionException {
	CommonTree INSTRUCTION_FORMAT30t149=null;
	Label label_ref150 =null;

	try {
		// D:\\decomplier_tools\\smali\\smali\\smali\\src\\main\\antlr3\\smaliTreeWalker.g:986:3: ( ^( I_STATEMENT_FORMAT30t INSTRUCTION_FORMAT30t label_ref ) )
		// D:\\decomplier_tools\\smali\\smali\\smali\\src\\main\\antlr3\\smaliTreeWalker.g:987:5: ^( I_STATEMENT_FORMAT30t INSTRUCTION_FORMAT30t label_ref )
		{
		match(input,I_STATEMENT_FORMAT30t,FOLLOW_I_STATEMENT_FORMAT30t_in_insn_format30t2687); 
		match(input, Token.DOWN, null); 
		INSTRUCTION_FORMAT30t149=(CommonTree)match(input,INSTRUCTION_FORMAT30t,FOLLOW_INSTRUCTION_FORMAT30t_in_insn_format30t2689); 
		pushFollow(FOLLOW_label_ref_in_insn_format30t2691);
		label_ref150=label_ref();
		state._fsp--;

		match(input, Token.UP, null); 


		      Opcode opcode = opcodes.getOpcodeByName((INSTRUCTION_FORMAT30t149!=null?INSTRUCTION_FORMAT30t149.getText():null));

		      method_stack.peek().methodBuilder.addInstruction(new BuilderInstruction30t(opcode, label_ref150));
		    
		}

	}
	catch (RecognitionException re) {
		reportError(re);
		recover(input,re);
	}
	finally {
		// do for sure before leaving
	}
}
 
开发者ID:Miracle963,项目名称:zjdroid,代码行数:34,代码来源:smaliTreeWalker.java

示例12: insn_format31t

import org.jf.dexlib2.builder.Label; //导入依赖的package包/类
public final void insn_format31t() throws RecognitionException {
	CommonTree INSTRUCTION_FORMAT31t157=null;
	CommonTree REGISTER158=null;
	Label label_ref159 =null;

	try {
		// D:\\decomplier_tools\\smali\\smali\\smali\\src\\main\\antlr3\\smaliTreeWalker.g:1018:3: ( ^( I_STATEMENT_FORMAT31t INSTRUCTION_FORMAT31t REGISTER label_ref ) )
		// D:\\decomplier_tools\\smali\\smali\\smali\\src\\main\\antlr3\\smaliTreeWalker.g:1019:5: ^( I_STATEMENT_FORMAT31t INSTRUCTION_FORMAT31t REGISTER label_ref )
		{
		match(input,I_STATEMENT_FORMAT31t,FOLLOW_I_STATEMENT_FORMAT31t_in_insn_format31t2772); 
		match(input, Token.DOWN, null); 
		INSTRUCTION_FORMAT31t157=(CommonTree)match(input,INSTRUCTION_FORMAT31t,FOLLOW_INSTRUCTION_FORMAT31t_in_insn_format31t2774); 
		REGISTER158=(CommonTree)match(input,REGISTER,FOLLOW_REGISTER_in_insn_format31t2776); 
		pushFollow(FOLLOW_label_ref_in_insn_format31t2778);
		label_ref159=label_ref();
		state._fsp--;

		match(input, Token.UP, null); 


		      Opcode opcode = opcodes.getOpcodeByName((INSTRUCTION_FORMAT31t157!=null?INSTRUCTION_FORMAT31t157.getText():null));

		      short regA = parseRegister_byte((REGISTER158!=null?REGISTER158.getText():null));

		      method_stack.peek().methodBuilder.addInstruction(new BuilderInstruction31t(opcode, regA, label_ref159));
		    
		}

	}
	catch (RecognitionException re) {
		reportError(re);
		recover(input,re);
	}
	finally {
		// do for sure before leaving
	}
}
 
开发者ID:Miracle963,项目名称:zjdroid,代码行数:38,代码来源:smaliTreeWalker.java

示例13: insn_packed_switch_directive

import org.jf.dexlib2.builder.Label; //导入依赖的package包/类
public final void insn_packed_switch_directive() throws RecognitionException {
	int fixed_32bit_literal178 =0;
	List<Label> packed_switch_elements179 =null;

	try {
		// D:\\decomplier_tools\\smali\\smali\\smali\\src\\main\\antlr3\\smaliTreeWalker.g:1122:3: ( ^( I_STATEMENT_PACKED_SWITCH ^( I_PACKED_SWITCH_START_KEY fixed_32bit_literal ) packed_switch_elements ) )
		// D:\\decomplier_tools\\smali\\smali\\smali\\src\\main\\antlr3\\smaliTreeWalker.g:1123:5: ^( I_STATEMENT_PACKED_SWITCH ^( I_PACKED_SWITCH_START_KEY fixed_32bit_literal ) packed_switch_elements )
		{
		match(input,I_STATEMENT_PACKED_SWITCH,FOLLOW_I_STATEMENT_PACKED_SWITCH_in_insn_packed_switch_directive3009); 
		match(input, Token.DOWN, null); 
		match(input,I_PACKED_SWITCH_START_KEY,FOLLOW_I_PACKED_SWITCH_START_KEY_in_insn_packed_switch_directive3012); 
		match(input, Token.DOWN, null); 
		pushFollow(FOLLOW_fixed_32bit_literal_in_insn_packed_switch_directive3014);
		fixed_32bit_literal178=fixed_32bit_literal();
		state._fsp--;

		match(input, Token.UP, null); 

		pushFollow(FOLLOW_packed_switch_elements_in_insn_packed_switch_directive3017);
		packed_switch_elements179=packed_switch_elements();
		state._fsp--;

		match(input, Token.UP, null); 


		        int startKey = fixed_32bit_literal178;
		        method_stack.peek().methodBuilder.addInstruction(new BuilderPackedSwitchPayload(startKey,
		            packed_switch_elements179));
		      
		}

	}
	catch (RecognitionException re) {
		reportError(re);
		recover(input,re);
	}
	finally {
		// do for sure before leaving
	}
}
 
开发者ID:Miracle963,项目名称:zjdroid,代码行数:41,代码来源:smaliTreeWalker.java

示例14: getRealInsn0

import org.jf.dexlib2.builder.Label; //导入依赖的package包/类
@Override
protected BuilderInstruction getRealInsn0(LabelAssigner assigner) {
	List<Label> elements = new ArrayList<Label>();
	for (int i = 0; i < targets.size(); i++)
		elements.add(assigner.getOrCreateLabel((Stmt) targets.get(i)));
	return new BuilderPackedSwitchPayload(firstKey, elements);
}
 
开发者ID:flankerhqd,项目名称:JAADAS,代码行数:8,代码来源:PackedSwitchPayload.java

示例15: getOrCreateLabel

import org.jf.dexlib2.builder.Label; //导入依赖的package包/类
public Label getOrCreateLabel(Stmt stmt) {
	if (stmt == null)
		throw new RuntimeException("Cannot create label for NULL statement");
	
	Label lbl = stmtToLabel.get(stmt);
	if (lbl == null) {
		String labelName = "l" + lastLabelId++;
		lbl = builder.getLabel(labelName);
		stmtToLabel.put(stmt, lbl);
		stmtToLabelName.put(stmt, labelName);
	}
	return lbl;
}
 
开发者ID:flankerhqd,项目名称:JAADAS,代码行数:14,代码来源:LabelAssigner.java


注:本文中的org.jf.dexlib2.builder.Label类示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。