本文整理汇总了Java中org.jf.dexlib2.util.Preconditions类的典型用法代码示例。如果您正苦于以下问题:Java Preconditions类的具体用法?Java Preconditions怎么用?Java Preconditions使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。
Preconditions类属于org.jf.dexlib2.util包,在下文中一共展示了Preconditions类的20个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于我们的系统推荐出更棒的Java代码示例。
示例1: ImmutableInstruction35ms
import org.jf.dexlib2.util.Preconditions; //导入依赖的package包/类
public ImmutableInstruction35ms(@Nonnull Opcode opcode,
int registerCount,
int registerC,
int registerD,
int registerE,
int registerF,
int registerG,
int vtableIndex) {
super(opcode);
this.registerCount = Preconditions.check35cRegisterCount(registerCount);
this.registerC = (registerCount>0) ? Preconditions.checkNibbleRegister(registerC) : 0;
this.registerD = (registerCount>1) ? Preconditions.checkNibbleRegister(registerD) : 0;
this.registerE = (registerCount>2) ? Preconditions.checkNibbleRegister(registerE) : 0;
this.registerF = (registerCount>3) ? Preconditions.checkNibbleRegister(registerF) : 0;
this.registerG = (registerCount>4) ? Preconditions.checkNibbleRegister(registerG) : 0;
this.vtableIndex = Preconditions.checkVtableIndex(vtableIndex);
}
开发者ID:CvvT,项目名称:andbg,代码行数:18,代码来源:ImmutableInstruction35ms.java
示例2: ImmutableInstruction35c
import org.jf.dexlib2.util.Preconditions; //导入依赖的package包/类
public ImmutableInstruction35c(@Nonnull Opcode opcode,
int registerCount,
int registerC,
int registerD,
int registerE,
int registerF,
int registerG,
@Nonnull Reference reference) {
super(opcode);
this.registerCount = Preconditions.check35cRegisterCount(registerCount);
this.registerC = (registerCount>0) ? Preconditions.checkNibbleRegister(registerC) : 0;
this.registerD = (registerCount>1) ? Preconditions.checkNibbleRegister(registerD) : 0;
this.registerE = (registerCount>2) ? Preconditions.checkNibbleRegister(registerE) : 0;
this.registerF = (registerCount>3) ? Preconditions.checkNibbleRegister(registerF) : 0;
this.registerG = (registerCount>4) ? Preconditions.checkNibbleRegister(registerG) : 0;
this.reference = ImmutableReferenceFactory.of(opcode.referenceType, reference);
}
开发者ID:CvvT,项目名称:andbg,代码行数:18,代码来源:ImmutableInstruction35c.java
示例3: ImmutableInstruction25x
import org.jf.dexlib2.util.Preconditions; //导入依赖的package包/类
public ImmutableInstruction25x(@Nonnull Opcode opcode,
int parameterRegisterCount,
int registerClosure,
int registerD,
int registerE,
int registerF,
int registerG) {
super(opcode);
this.parameterRegisterCount =
Preconditions.check25xParameterRegisterCount(parameterRegisterCount);
this.registerClosure = Preconditions.checkNibbleRegister(registerClosure);
this.registerD = (parameterRegisterCount>0) ?
Preconditions.checkNibbleRegister(registerD) : 0;
this.registerE = (parameterRegisterCount>1) ?
Preconditions.checkNibbleRegister(registerE) : 0;
this.registerF = (parameterRegisterCount>2) ?
Preconditions.checkNibbleRegister(registerF) : 0;
this.registerG = (parameterRegisterCount>3) ?
Preconditions.checkNibbleRegister(registerG) : 0;
}
开发者ID:CvvT,项目名称:andbg,代码行数:21,代码来源:ImmutableInstruction25x.java
示例4: ImmutableInstruction35mi
import org.jf.dexlib2.util.Preconditions; //导入依赖的package包/类
public ImmutableInstruction35mi(@Nonnull Opcode opcode,
int registerCount,
int registerC,
int registerD,
int registerE,
int registerF,
int registerG,
int inlineIndex) {
super(opcode);
this.registerCount = Preconditions.check35cRegisterCount(registerCount);
this.registerC = (registerCount>0) ? Preconditions.checkNibbleRegister(registerC) : 0;
this.registerD = (registerCount>1) ? Preconditions.checkNibbleRegister(registerD) : 0;
this.registerE = (registerCount>2) ? Preconditions.checkNibbleRegister(registerE) : 0;
this.registerF = (registerCount>3) ? Preconditions.checkNibbleRegister(registerF) : 0;
this.registerG = (registerCount>4) ? Preconditions.checkNibbleRegister(registerG) : 0;
this.inlineIndex = Preconditions.checkInlineIndex(inlineIndex);
}
开发者ID:CvvT,项目名称:andbg,代码行数:18,代码来源:ImmutableInstruction35mi.java
示例5: BuilderInstruction25x
import org.jf.dexlib2.util.Preconditions; //导入依赖的package包/类
public BuilderInstruction25x(@Nonnull Opcode opcode,
int parameterRegisterCount,
int registerClosure,
int registerD,
int registerE,
int registerF,
int registerG) {
super(opcode);
this.parameterRegisterCount =
Preconditions.check25xParameterRegisterCount(parameterRegisterCount);
this.registerClosure = Preconditions.checkNibbleRegister(registerClosure); //at least 1 reg
this.registerD = (parameterRegisterCount>0) ?
Preconditions.checkNibbleRegister(registerD) : 0;
this.registerE = (parameterRegisterCount>1) ?
Preconditions.checkNibbleRegister(registerE) : 0;
this.registerF = (parameterRegisterCount>2) ?
Preconditions.checkNibbleRegister(registerF) : 0;
this.registerG = (parameterRegisterCount>3) ?
Preconditions.checkNibbleRegister(registerG) : 0;
}
开发者ID:CvvT,项目名称:andbg,代码行数:21,代码来源:BuilderInstruction25x.java
示例6: BuilderInstruction35c
import org.jf.dexlib2.util.Preconditions; //导入依赖的package包/类
public BuilderInstruction35c(@Nonnull Opcode opcode,
int registerCount,
int registerC,
int registerD,
int registerE,
int registerF,
int registerG,
@Nonnull Reference reference) {
super(opcode);
this.registerCount = Preconditions.check35cRegisterCount(registerCount);
this.registerC = (registerCount>0) ? Preconditions.checkNibbleRegister(registerC) : 0;
this.registerD = (registerCount>1) ? Preconditions.checkNibbleRegister(registerD) : 0;
this.registerE = (registerCount>2) ? Preconditions.checkNibbleRegister(registerE) : 0;
this.registerF = (registerCount>3) ? Preconditions.checkNibbleRegister(registerF) : 0;
this.registerG = (registerCount>4) ? Preconditions.checkNibbleRegister(registerG) : 0;
this.reference = reference;
}
开发者ID:CvvT,项目名称:andbg,代码行数:18,代码来源:BuilderInstruction35c.java
示例7: BuilderInstruction45cc
import org.jf.dexlib2.util.Preconditions; //导入依赖的package包/类
public BuilderInstruction45cc( Opcode opcode,
int registerCount,
int registerC,
int registerD,
int registerE,
int registerF,
int registerG,
Reference reference,
Reference reference2) {
super(opcode);
this.registerCount = Preconditions.check35cAnd45ccRegisterCount(registerCount);
this.registerC = (registerCount>0) ? Preconditions.checkNibbleRegister(registerC) : 0;
this.registerD = (registerCount>1) ? Preconditions.checkNibbleRegister(registerD) : 0;
this.registerE = (registerCount>2) ? Preconditions.checkNibbleRegister(registerE) : 0;
this.registerF = (registerCount>3) ? Preconditions.checkNibbleRegister(registerF) : 0;
this.registerG = (registerCount>4) ? Preconditions.checkNibbleRegister(registerG) : 0;
this.reference = reference;
this.reference2 = reference2;
}
开发者ID:AndreJCL,项目名称:JCL,代码行数:20,代码来源:BuilderInstruction45cc.java
示例8: ImmutableInstruction35ms
import org.jf.dexlib2.util.Preconditions; //导入依赖的package包/类
public ImmutableInstruction35ms( Opcode opcode,
int registerCount,
int registerC,
int registerD,
int registerE,
int registerF,
int registerG,
int vtableIndex) {
super(opcode);
this.registerCount = Preconditions.check35cAnd45ccRegisterCount(registerCount);
this.registerC = (registerCount>0) ? Preconditions.checkNibbleRegister(registerC) : 0;
this.registerD = (registerCount>1) ? Preconditions.checkNibbleRegister(registerD) : 0;
this.registerE = (registerCount>2) ? Preconditions.checkNibbleRegister(registerE) : 0;
this.registerF = (registerCount>3) ? Preconditions.checkNibbleRegister(registerF) : 0;
this.registerG = (registerCount>4) ? Preconditions.checkNibbleRegister(registerG) : 0;
this.vtableIndex = Preconditions.checkVtableIndex(vtableIndex);
}
开发者ID:AndreJCL,项目名称:JCL,代码行数:18,代码来源:ImmutableInstruction35ms.java
示例9: BuilderInstruction35c
import org.jf.dexlib2.util.Preconditions; //导入依赖的package包/类
public BuilderInstruction35c( Opcode opcode,
int registerCount,
int registerC,
int registerD,
int registerE,
int registerF,
int registerG,
Reference reference) {
super(opcode);
this.registerCount = Preconditions.check35cAnd45ccRegisterCount(registerCount);
this.registerC = (registerCount>0) ? Preconditions.checkNibbleRegister(registerC) : 0;
this.registerD = (registerCount>1) ? Preconditions.checkNibbleRegister(registerD) : 0;
this.registerE = (registerCount>2) ? Preconditions.checkNibbleRegister(registerE) : 0;
this.registerF = (registerCount>3) ? Preconditions.checkNibbleRegister(registerF) : 0;
this.registerG = (registerCount>4) ? Preconditions.checkNibbleRegister(registerG) : 0;
this.reference = reference;
}
开发者ID:AndreJCL,项目名称:JCL,代码行数:18,代码来源:BuilderInstruction35c.java
示例10: ImmutableInstruction3rms
import org.jf.dexlib2.util.Preconditions; //导入依赖的package包/类
public ImmutableInstruction3rms(@Nonnull Opcode opcode,
int startRegister,
int registerCount,
int vtableIndex) {
super(opcode);
this.startRegister = Preconditions.checkShortRegister(startRegister);
this.registerCount = Preconditions.checkRegisterRangeCount(registerCount);
this.vtableIndex = Preconditions.checkVtableIndex(vtableIndex);
}
开发者ID:CvvT,项目名称:andbg,代码行数:10,代码来源:ImmutableInstruction3rms.java
示例11: ImmutableInstruction21lh
import org.jf.dexlib2.util.Preconditions; //导入依赖的package包/类
public ImmutableInstruction21lh(@Nonnull Opcode opcode,
int registerA,
long literal) {
super(opcode);
this.registerA = Preconditions.checkByteRegister(registerA);
this.literal = Preconditions.checkLongHatLiteral(literal);
}
开发者ID:CvvT,项目名称:andbg,代码行数:8,代码来源:ImmutableInstruction21lh.java
示例12: ImmutableInstruction23x
import org.jf.dexlib2.util.Preconditions; //导入依赖的package包/类
public ImmutableInstruction23x(@Nonnull Opcode opcode,
int registerA,
int registerB,
int registerC) {
super(opcode);
this.registerA = Preconditions.checkByteRegister(registerA);
this.registerB = Preconditions.checkByteRegister(registerB);
this.registerC = Preconditions.checkByteRegister(registerC);
}
开发者ID:CvvT,项目名称:andbg,代码行数:10,代码来源:ImmutableInstruction23x.java
示例13: ImmutableInstruction21c
import org.jf.dexlib2.util.Preconditions; //导入依赖的package包/类
public ImmutableInstruction21c(@Nonnull Opcode opcode,
int registerA,
@Nonnull Reference reference) {
super(opcode);
this.registerA = Preconditions.checkByteRegister(registerA);
this.reference = ImmutableReferenceFactory.of(opcode.referenceType, reference);
}
开发者ID:CvvT,项目名称:andbg,代码行数:8,代码来源:ImmutableInstruction21c.java
示例14: ImmutableInstruction51l
import org.jf.dexlib2.util.Preconditions; //导入依赖的package包/类
public ImmutableInstruction51l(@Nonnull Opcode opcode,
int registerA,
long literal) {
super(opcode);
this.registerA = Preconditions.checkByteRegister(registerA);
this.literal = literal;
}
开发者ID:CvvT,项目名称:andbg,代码行数:8,代码来源:ImmutableInstruction51l.java
示例15: ImmutableInstruction21ih
import org.jf.dexlib2.util.Preconditions; //导入依赖的package包/类
public ImmutableInstruction21ih(@Nonnull Opcode opcode,
int registerA,
int literal) {
super(opcode);
this.registerA = Preconditions.checkByteRegister(registerA);
this.literal = Preconditions.checkIntegerHatLiteral(literal);
}
开发者ID:CvvT,项目名称:andbg,代码行数:8,代码来源:ImmutableInstruction21ih.java
示例16: ImmutableInstruction3rmi
import org.jf.dexlib2.util.Preconditions; //导入依赖的package包/类
public ImmutableInstruction3rmi(@Nonnull Opcode opcode,
int startRegister,
int registerCount,
int inlineIndex) {
super(opcode);
this.startRegister = Preconditions.checkShortRegister(startRegister);
this.registerCount = Preconditions.checkRegisterRangeCount(registerCount);
this.inlineIndex = Preconditions.checkInlineIndex(inlineIndex);
}
开发者ID:CvvT,项目名称:andbg,代码行数:10,代码来源:ImmutableInstruction3rmi.java
示例17: ImmutableInstruction31t
import org.jf.dexlib2.util.Preconditions; //导入依赖的package包/类
public ImmutableInstruction31t(@Nonnull Opcode opcode,
int registerA,
int codeOffset) {
super(opcode);
this.registerA = Preconditions.checkByteRegister(registerA);
this.codeOffset = codeOffset;
}
开发者ID:CvvT,项目名称:andbg,代码行数:8,代码来源:ImmutableInstruction31t.java
示例18: ImmutableInstruction22cs
import org.jf.dexlib2.util.Preconditions; //导入依赖的package包/类
public ImmutableInstruction22cs(@Nonnull Opcode opcode,
int registerA,
int registerB,
int fieldOffset) {
super(opcode);
this.registerA = Preconditions.checkNibbleRegister(registerA);
this.registerB = Preconditions.checkNibbleRegister(registerB);
this.fieldOffset = Preconditions.checkFieldOffset(fieldOffset);
}
开发者ID:CvvT,项目名称:andbg,代码行数:10,代码来源:ImmutableInstruction22cs.java
示例19: ImmutableInstruction32x
import org.jf.dexlib2.util.Preconditions; //导入依赖的package包/类
public ImmutableInstruction32x(@Nonnull Opcode opcode,
int registerA,
int registerB) {
super(opcode);
this.registerA = Preconditions.checkShortRegister(registerA);
this.registerB = Preconditions.checkShortRegister(registerB);
}
开发者ID:CvvT,项目名称:andbg,代码行数:8,代码来源:ImmutableInstruction32x.java
示例20: ImmutableInstruction22x
import org.jf.dexlib2.util.Preconditions; //导入依赖的package包/类
public ImmutableInstruction22x(@Nonnull Opcode opcode,
int registerA,
int registerB) {
super(opcode);
this.registerA = Preconditions.checkByteRegister(registerA);
this.registerB = Preconditions.checkShortRegister(registerB);
}
开发者ID:CvvT,项目名称:andbg,代码行数:8,代码来源:ImmutableInstruction22x.java
注:本文中的org.jf.dexlib2.util.Preconditions类示例整理自Github/MSDocs等源码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。 |
请发表评论