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


Java ImmutableFieldReference类代码示例

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


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

示例1: getFieldByOffset

import org.jf.dexlib2.immutable.reference.ImmutableFieldReference; //导入依赖的package包/类
@Override
@Nullable
public FieldReference getFieldByOffset(int fieldOffset) {
    if (fieldOffset==8) {
        return new ImmutableFieldReference(getType(), "length", "int");
    }
    return null;
}
 
开发者ID:CvvT,项目名称:andbg,代码行数:9,代码来源:ArrayProto.java

示例2: field_literal

import org.jf.dexlib2.immutable.reference.ImmutableFieldReference; //导入依赖的package包/类
public final FieldReference field_literal() throws RecognitionException {
	FieldReference value = null;


	ImmutableFieldReference fully_qualified_field208 =null;

	try {
		// D:\\decomplier_tools\\smali\\smali\\smali\\src\\main\\antlr3\\smaliTreeWalker.g:1262:3: ( ^( I_ENCODED_FIELD fully_qualified_field ) )
		// D:\\decomplier_tools\\smali\\smali\\smali\\src\\main\\antlr3\\smaliTreeWalker.g:1262:5: ^( I_ENCODED_FIELD fully_qualified_field )
		{
		match(input,I_ENCODED_FIELD,FOLLOW_I_ENCODED_FIELD_in_field_literal3569); 
		match(input, Token.DOWN, null); 
		pushFollow(FOLLOW_fully_qualified_field_in_field_literal3571);
		fully_qualified_field208=fully_qualified_field();
		state._fsp--;

		match(input, Token.UP, null); 


		      value = fully_qualified_field208;
		    
		}

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

示例3: enum_literal

import org.jf.dexlib2.immutable.reference.ImmutableFieldReference; //导入依赖的package包/类
public final FieldReference enum_literal() throws RecognitionException {
	FieldReference value = null;


	ImmutableFieldReference fully_qualified_field210 =null;

	try {
		// D:\\decomplier_tools\\smali\\smali\\smali\\src\\main\\antlr3\\smaliTreeWalker.g:1274:3: ( ^( I_ENCODED_ENUM fully_qualified_field ) )
		// D:\\decomplier_tools\\smali\\smali\\smali\\src\\main\\antlr3\\smaliTreeWalker.g:1274:5: ^( I_ENCODED_ENUM fully_qualified_field )
		{
		match(input,I_ENCODED_ENUM,FOLLOW_I_ENCODED_ENUM_in_enum_literal3615); 
		match(input, Token.DOWN, null); 
		pushFollow(FOLLOW_fully_qualified_field_in_enum_literal3617);
		fully_qualified_field210=fully_qualified_field();
		state._fsp--;

		match(input, Token.UP, null); 


		      value = fully_qualified_field210;
		    
		}

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

示例4:

import org.jf.dexlib2.immutable.reference.ImmutableFieldReference; //导入依赖的package包/类
protected static BuilderFieldReference toFieldReference
   		(SootField f, DexBuilder belongingDexFile) {
   	FieldReference fieldRef = new ImmutableFieldReference
   			(SootToDexUtils.getDexClassName(f.getDeclaringClass().getName()),
   			f.getName(),
   			SootToDexUtils.getDexTypeDescriptor(f.getType()));
   	return belongingDexFile.internFieldReference(fieldRef);
}
 
开发者ID:flankerhqd,项目名称:JAADAS,代码行数:9,代码来源:DexPrinter.java

示例5: getFieldByOffset

import org.jf.dexlib2.immutable.reference.ImmutableFieldReference; //导入依赖的package包/类
@Override

    public FieldReference getFieldByOffset(int fieldOffset) {
        if (fieldOffset==8) {
            return new ImmutableFieldReference(getType(), "length", "int");
        }
        return null;
    }
 
开发者ID:AndreJCL,项目名称:JCL,代码行数:9,代码来源:ArrayProto.java

示例6: getFieldByOffset

import org.jf.dexlib2.immutable.reference.ImmutableFieldReference; //导入依赖的package包/类
@Override
@Nullable
public FieldReference getFieldByOffset(int fieldOffset) {
    if (fieldOffset == 8) {
        return new ImmutableFieldReference(getType(), "length", "int");
    }
    return null;
}
 
开发者ID:niranjan94,项目名称:show-java,代码行数:9,代码来源:ArrayProto.java

示例7: field_literal

import org.jf.dexlib2.immutable.reference.ImmutableFieldReference; //导入依赖的package包/类
public final FieldReference field_literal() throws RecognitionException {
	FieldReference value = null;


	ImmutableFieldReference fully_qualified_field208 =null;

	try {
		// /usr/local/google/home/bgruv/android/aosp-master/external/smali/smali/src/main/antlr3/smaliTreeWalker.g:1262:3: ( ^( I_ENCODED_FIELD fully_qualified_field ) )
		// /usr/local/google/home/bgruv/android/aosp-master/external/smali/smali/src/main/antlr3/smaliTreeWalker.g:1262:5: ^( I_ENCODED_FIELD fully_qualified_field )
		{
		match(input,I_ENCODED_FIELD,FOLLOW_I_ENCODED_FIELD_in_field_literal3569); 
		match(input, Token.DOWN, null); 
		pushFollow(FOLLOW_fully_qualified_field_in_field_literal3571);
		fully_qualified_field208=fully_qualified_field();
		state._fsp--;

		match(input, Token.UP, null); 


		      value = fully_qualified_field208;
		    
		}

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

示例8: enum_literal

import org.jf.dexlib2.immutable.reference.ImmutableFieldReference; //导入依赖的package包/类
public final FieldReference enum_literal() throws RecognitionException {
	FieldReference value = null;


	ImmutableFieldReference fully_qualified_field210 =null;

	try {
		// /usr/local/google/home/bgruv/android/aosp-master/external/smali/smali/src/main/antlr3/smaliTreeWalker.g:1274:3: ( ^( I_ENCODED_ENUM fully_qualified_field ) )
		// /usr/local/google/home/bgruv/android/aosp-master/external/smali/smali/src/main/antlr3/smaliTreeWalker.g:1274:5: ^( I_ENCODED_ENUM fully_qualified_field )
		{
		match(input,I_ENCODED_ENUM,FOLLOW_I_ENCODED_ENUM_in_enum_literal3615); 
		match(input, Token.DOWN, null); 
		pushFollow(FOLLOW_fully_qualified_field_in_enum_literal3617);
		fully_qualified_field210=fully_qualified_field();
		state._fsp--;

		match(input, Token.UP, null); 


		      value = fully_qualified_field210;
		    
		}

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

示例9: internField

import org.jf.dexlib2.immutable.reference.ImmutableFieldReference; //导入依赖的package包/类
@Nonnull BuilderFieldReference internField(@Nonnull String definingClass, String name, String type) {
    ImmutableFieldReference fieldReference = new ImmutableFieldReference(definingClass, name, type);
    return internField(fieldReference);
}
 
开发者ID:CvvT,项目名称:andbg,代码行数:5,代码来源:BuilderFieldPool.java

示例10: insn_format21c_field

import org.jf.dexlib2.immutable.reference.ImmutableFieldReference; //导入依赖的package包/类
public final void insn_format21c_field() throws RecognitionException {
	CommonTree inst=null;
	CommonTree REGISTER118=null;
	ImmutableFieldReference fully_qualified_field119 =null;

	try {
		// D:\\decomplier_tools\\smali\\smali\\smali\\src\\main\\antlr3\\smaliTreeWalker.g:818:3: ( ^( I_STATEMENT_FORMAT21c_FIELD inst= ( INSTRUCTION_FORMAT21c_FIELD | INSTRUCTION_FORMAT21c_FIELD_ODEX ) REGISTER fully_qualified_field ) )
		// D:\\decomplier_tools\\smali\\smali\\smali\\src\\main\\antlr3\\smaliTreeWalker.g:819:5: ^( I_STATEMENT_FORMAT21c_FIELD inst= ( INSTRUCTION_FORMAT21c_FIELD | INSTRUCTION_FORMAT21c_FIELD_ODEX ) REGISTER fully_qualified_field )
		{
		match(input,I_STATEMENT_FORMAT21c_FIELD,FOLLOW_I_STATEMENT_FORMAT21c_FIELD_in_insn_format21c_field2223); 
		match(input, Token.DOWN, null); 
		inst=(CommonTree)input.LT(1);
		if ( (input.LA(1) >= INSTRUCTION_FORMAT21c_FIELD && input.LA(1) <= INSTRUCTION_FORMAT21c_FIELD_ODEX) ) {
			input.consume();
			state.errorRecovery=false;
		}
		else {
			MismatchedSetException mse = new MismatchedSetException(null,input);
			throw mse;
		}
		REGISTER118=(CommonTree)match(input,REGISTER,FOLLOW_REGISTER_in_insn_format21c_field2235); 
		pushFollow(FOLLOW_fully_qualified_field_in_insn_format21c_field2237);
		fully_qualified_field119=fully_qualified_field();
		state._fsp--;

		match(input, Token.UP, null); 


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

		      ImmutableFieldReference fieldReference = fully_qualified_field119;

		      method_stack.peek().methodBuilder.addInstruction(new BuilderInstruction21c(opcode, regA,
		              dexBuilder.internFieldReference(fieldReference)));
		    
		}

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

示例11: insn_format22c_field

import org.jf.dexlib2.immutable.reference.ImmutableFieldReference; //导入依赖的package包/类
public final void insn_format22c_field() throws RecognitionException {
	CommonTree inst=null;
	CommonTree registerA=null;
	CommonTree registerB=null;
	ImmutableFieldReference fully_qualified_field140 =null;

	try {
		// D:\\decomplier_tools\\smali\\smali\\smali\\src\\main\\antlr3\\smaliTreeWalker.g:913:3: ( ^( I_STATEMENT_FORMAT22c_FIELD inst= ( INSTRUCTION_FORMAT22c_FIELD | INSTRUCTION_FORMAT22c_FIELD_ODEX ) registerA= REGISTER registerB= REGISTER fully_qualified_field ) )
		// D:\\decomplier_tools\\smali\\smali\\smali\\src\\main\\antlr3\\smaliTreeWalker.g:914:5: ^( I_STATEMENT_FORMAT22c_FIELD inst= ( INSTRUCTION_FORMAT22c_FIELD | INSTRUCTION_FORMAT22c_FIELD_ODEX ) registerA= REGISTER registerB= REGISTER fully_qualified_field )
		{
		match(input,I_STATEMENT_FORMAT22c_FIELD,FOLLOW_I_STATEMENT_FORMAT22c_FIELD_in_insn_format22c_field2469); 
		match(input, Token.DOWN, null); 
		inst=(CommonTree)input.LT(1);
		if ( (input.LA(1) >= INSTRUCTION_FORMAT22c_FIELD && input.LA(1) <= INSTRUCTION_FORMAT22c_FIELD_ODEX) ) {
			input.consume();
			state.errorRecovery=false;
		}
		else {
			MismatchedSetException mse = new MismatchedSetException(null,input);
			throw mse;
		}
		registerA=(CommonTree)match(input,REGISTER,FOLLOW_REGISTER_in_insn_format22c_field2483); 
		registerB=(CommonTree)match(input,REGISTER,FOLLOW_REGISTER_in_insn_format22c_field2487); 
		pushFollow(FOLLOW_fully_qualified_field_in_insn_format22c_field2489);
		fully_qualified_field140=fully_qualified_field();
		state._fsp--;

		match(input, Token.UP, null); 


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

		      ImmutableFieldReference fieldReference = fully_qualified_field140;

		      method_stack.peek().methodBuilder.addInstruction(new BuilderInstruction22c(opcode, regA, regB,
		              dexBuilder.internFieldReference(fieldReference)));
		    
		}

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

示例12: internField

import org.jf.dexlib2.immutable.reference.ImmutableFieldReference; //导入依赖的package包/类
BuilderFieldReference internField( String definingClass, String name, String type) {
    ImmutableFieldReference fieldReference = new ImmutableFieldReference(definingClass, name, type);
    return internField(fieldReference);
}
 
开发者ID:AndreJCL,项目名称:JCL,代码行数:5,代码来源:BuilderFieldPool.java

示例13: internField

import org.jf.dexlib2.immutable.reference.ImmutableFieldReference; //导入依赖的package包/类
@Nonnull
BuilderFieldReference internField(@Nonnull String definingClass, String name, String type) {
    ImmutableFieldReference fieldReference = new ImmutableFieldReference(definingClass, name, type);
    return internField(fieldReference);
}
 
开发者ID:niranjan94,项目名称:show-java,代码行数:6,代码来源:BuilderFieldPool.java


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