Java Code Examples for org.jf.dexlib2.util.Preconditions#checkInlineIndex()

The following examples show how to use org.jf.dexlib2.util.Preconditions#checkInlineIndex() . You can vote up the ones you like or vote down the ones you don't like, and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example 1
Source File: ImmutableInstruction35mi.java    From ZjDroid with Apache License 2.0 6 votes vote down vote up
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);
}
 
Example 2
Source File: ImmutableInstruction35mi.java    From zjdroid with Apache License 2.0 6 votes vote down vote up
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);
}
 
Example 3
Source File: ImmutableInstruction35mi.java    From HeyGirl with Apache License 2.0 6 votes vote down vote up
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);
}
 
Example 4
Source File: ImmutableInstruction35mi.java    From ZjDroid with Apache License 2.0 6 votes vote down vote up
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);
}
 
Example 5
Source File: ImmutableInstruction3rmi.java    From ZjDroid with Apache License 2.0 5 votes vote down vote up
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);
}
 
Example 6
Source File: ImmutableInstruction3rmi.java    From zjdroid with Apache License 2.0 5 votes vote down vote up
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);
}
 
Example 7
Source File: ImmutableInstruction3rmi.java    From HeyGirl with Apache License 2.0 5 votes vote down vote up
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);
}
 
Example 8
Source File: ImmutableInstruction3rmi.java    From ZjDroid with Apache License 2.0 5 votes vote down vote up
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);
}