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

The following examples show how to use org.jf.dexlib2.util.Preconditions#checkVtableIndex() . 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: ImmutableInstruction35ms.java    From ZjDroid with Apache License 2.0 6 votes vote down vote up
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);
}
 
Example 2
Source File: ImmutableInstruction35ms.java    From zjdroid with Apache License 2.0 6 votes vote down vote up
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);
}
 
Example 3
Source File: ImmutableInstruction35ms.java    From HeyGirl with Apache License 2.0 6 votes vote down vote up
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);
}
 
Example 4
Source File: ImmutableInstruction35ms.java    From ZjDroid with Apache License 2.0 6 votes vote down vote up
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);
}
 
Example 5
Source File: ImmutableInstruction3rms.java    From ZjDroid with Apache License 2.0 5 votes vote down vote up
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);
}
 
Example 6
Source File: ImmutableInstruction3rms.java    From zjdroid with Apache License 2.0 5 votes vote down vote up
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);
}
 
Example 7
Source File: ImmutableInstruction3rms.java    From HeyGirl with Apache License 2.0 5 votes vote down vote up
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);
}
 
Example 8
Source File: ImmutableInstruction3rms.java    From ZjDroid with Apache License 2.0 5 votes vote down vote up
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);
}