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

The following examples show how to use org.jf.dexlib2.util.Preconditions#checkNibbleRegister() . 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: ImmutableInstruction35c.java    From ZjDroid with Apache License 2.0 6 votes vote down vote up
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);
}
 
Example 2
Source File: BuilderInstruction35c.java    From ZjDroid with Apache License 2.0 6 votes vote down vote up
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;
}
 
Example 3
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 4
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 5
Source File: BuilderInstruction35c.java    From HeyGirl with Apache License 2.0 6 votes vote down vote up
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;
}
 
Example 6
Source File: ImmutableInstruction22s.java    From zjdroid with Apache License 2.0 5 votes vote down vote up
public ImmutableInstruction22s(@Nonnull Opcode opcode,
                               int registerA,
                               int registerB,
                               int literal) {
    super(opcode);
    this.registerA = Preconditions.checkNibbleRegister(registerA);
    this.registerB = Preconditions.checkNibbleRegister(registerB);
    this.literal = Preconditions.checkShortLiteral(literal);
}
 
Example 7
Source File: ImmutableInstruction12x.java    From ZjDroid with Apache License 2.0 5 votes vote down vote up
public ImmutableInstruction12x(@Nonnull Opcode opcode,
                               int registerA,
                               int registerB) {
    super(opcode);
    this.registerA = Preconditions.checkNibbleRegister(registerA);
    this.registerB = Preconditions.checkNibbleRegister(registerB);
}
 
Example 8
Source File: ImmutableInstruction22c.java    From zjdroid with Apache License 2.0 5 votes vote down vote up
public ImmutableInstruction22c(@Nonnull Opcode opcode,
                               int registerA,
                               int registerB,
                               @Nonnull Reference reference) {
    super(opcode);
    this.registerA = Preconditions.checkNibbleRegister(registerA);
    this.registerB = Preconditions.checkNibbleRegister(registerB);
    this.reference = ImmutableReferenceFactory.of(opcode.referenceType, reference);
}
 
Example 9
Source File: BuilderInstruction22c.java    From zjdroid with Apache License 2.0 5 votes vote down vote up
public BuilderInstruction22c(@Nonnull Opcode opcode,
                             int registerA,
                             int registerB,
                             @Nonnull Reference reference) {
    super(opcode);
    this.registerA = Preconditions.checkNibbleRegister(registerA);
    this.registerB = Preconditions.checkNibbleRegister(registerB);
    this.reference = reference;
}
 
Example 10
Source File: BuilderInstruction22t.java    From zjdroid with Apache License 2.0 5 votes vote down vote up
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);
}
 
Example 11
Source File: BuilderInstruction12x.java    From ZjDroid with Apache License 2.0 5 votes vote down vote up
public BuilderInstruction12x(@Nonnull Opcode opcode,
                             int registerA,
                             int registerB) {
    super(opcode);
    this.registerA = Preconditions.checkNibbleRegister(registerA);
    this.registerB = Preconditions.checkNibbleRegister(registerB);
}
 
Example 12
Source File: BuilderInstruction12x.java    From ZjDroid with Apache License 2.0 5 votes vote down vote up
public BuilderInstruction12x(@Nonnull Opcode opcode,
                             int registerA,
                             int registerB) {
    super(opcode);
    this.registerA = Preconditions.checkNibbleRegister(registerA);
    this.registerB = Preconditions.checkNibbleRegister(registerB);
}
 
Example 13
Source File: BuilderInstruction22c.java    From ZjDroid with Apache License 2.0 5 votes vote down vote up
public BuilderInstruction22c(@Nonnull Opcode opcode,
                             int registerA,
                             int registerB,
                             @Nonnull Reference reference) {
    super(opcode);
    this.registerA = Preconditions.checkNibbleRegister(registerA);
    this.registerB = Preconditions.checkNibbleRegister(registerB);
    this.reference = reference;
}
 
Example 14
Source File: ImmutableInstruction22s.java    From HeyGirl with Apache License 2.0 5 votes vote down vote up
public ImmutableInstruction22s(@Nonnull Opcode opcode,
                               int registerA,
                               int registerB,
                               int literal) {
    super(opcode);
    this.registerA = Preconditions.checkNibbleRegister(registerA);
    this.registerB = Preconditions.checkNibbleRegister(registerB);
    this.literal = Preconditions.checkShortLiteral(literal);
}
 
Example 15
Source File: ImmutableInstruction12x.java    From HeyGirl with Apache License 2.0 5 votes vote down vote up
public ImmutableInstruction12x(@Nonnull Opcode opcode,
                               int registerA,
                               int registerB) {
    super(opcode);
    this.registerA = Preconditions.checkNibbleRegister(registerA);
    this.registerB = Preconditions.checkNibbleRegister(registerB);
}
 
Example 16
Source File: BuilderInstruction22c.java    From ZjDroid with Apache License 2.0 5 votes vote down vote up
public BuilderInstruction22c(@Nonnull Opcode opcode,
                             int registerA,
                             int registerB,
                             @Nonnull Reference reference) {
    super(opcode);
    this.registerA = Preconditions.checkNibbleRegister(registerA);
    this.registerB = Preconditions.checkNibbleRegister(registerB);
    this.reference = reference;
}
 
Example 17
Source File: BuilderInstruction11n.java    From HeyGirl with Apache License 2.0 5 votes vote down vote up
public BuilderInstruction11n(@Nonnull Opcode opcode,
                             int registerA,
                             int literal) {
    super(opcode);
    this.registerA = Preconditions.checkNibbleRegister(registerA);
    this.literal = Preconditions.checkNibbleLiteral(literal);
}
 
Example 18
Source File: ImmutableInstruction22s.java    From ZjDroid with Apache License 2.0 5 votes vote down vote up
public ImmutableInstruction22s(@Nonnull Opcode opcode,
                               int registerA,
                               int registerB,
                               int literal) {
    super(opcode);
    this.registerA = Preconditions.checkNibbleRegister(registerA);
    this.registerB = Preconditions.checkNibbleRegister(registerB);
    this.literal = Preconditions.checkShortLiteral(literal);
}
 
Example 19
Source File: BuilderInstruction12x.java    From HeyGirl with Apache License 2.0 5 votes vote down vote up
public BuilderInstruction12x(@Nonnull Opcode opcode,
                             int registerA,
                             int registerB) {
    super(opcode);
    this.registerA = Preconditions.checkNibbleRegister(registerA);
    this.registerB = Preconditions.checkNibbleRegister(registerB);
}
 
Example 20
Source File: ImmutableInstruction12x.java    From zjdroid with Apache License 2.0 5 votes vote down vote up
public ImmutableInstruction12x(@Nonnull Opcode opcode,
                               int registerA,
                               int registerB) {
    super(opcode);
    this.registerA = Preconditions.checkNibbleRegister(registerA);
    this.registerB = Preconditions.checkNibbleRegister(registerB);
}