Java Code Examples for org.jf.dexlib2.immutable.reference.ImmutableReferenceFactory#of()

The following examples show how to use org.jf.dexlib2.immutable.reference.ImmutableReferenceFactory#of() . 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: 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 3
Source File: ImmutableInstruction31c.java    From zjdroid with Apache License 2.0 5 votes vote down vote up
public ImmutableInstruction31c(@Nonnull Opcode opcode,
                               int registerA,
                               @Nonnull Reference reference) {
    super(opcode);
    this.registerA = Preconditions.checkByteRegister(registerA);
    this.reference = ImmutableReferenceFactory.of(opcode.referenceType, reference);
}
 
Example 4
Source File: ImmutableInstruction3rc.java    From ZjDroid with Apache License 2.0 5 votes vote down vote up
public ImmutableInstruction3rc(@Nonnull Opcode opcode,
                               int startRegister,
                               int registerCount,
                               @Nonnull Reference reference) {
    super(opcode);
    this.startRegister = Preconditions.checkShortRegister(startRegister);
    this.registerCount = Preconditions.checkRegisterRangeCount(registerCount);
    this.reference = ImmutableReferenceFactory.of(opcode.referenceType, reference);
}
 
Example 5
Source File: ImmutableInstruction20bc.java    From HeyGirl with Apache License 2.0 5 votes vote down vote up
public ImmutableInstruction20bc(@Nonnull Opcode opcode,
                               int verificationError,
                               @Nonnull Reference reference) {
    super(opcode);
    this.verificationError = Preconditions.checkVerificationError(verificationError);
    this.reference = ImmutableReferenceFactory.of(opcode.referenceType, reference);
}
 
Example 6
Source File: ImmutableInstruction31c.java    From HeyGirl with Apache License 2.0 5 votes vote down vote up
public ImmutableInstruction31c(@Nonnull Opcode opcode,
                               int registerA,
                               @Nonnull Reference reference) {
    super(opcode);
    this.registerA = Preconditions.checkByteRegister(registerA);
    this.reference = ImmutableReferenceFactory.of(opcode.referenceType, reference);
}
 
Example 7
Source File: ImmutableInstruction3rc.java    From HeyGirl with Apache License 2.0 5 votes vote down vote up
public ImmutableInstruction3rc(@Nonnull Opcode opcode,
                               int startRegister,
                               int registerCount,
                               @Nonnull Reference reference) {
    super(opcode);
    this.startRegister = Preconditions.checkShortRegister(startRegister);
    this.registerCount = Preconditions.checkRegisterRangeCount(registerCount);
    this.reference = ImmutableReferenceFactory.of(opcode.referenceType, reference);
}
 
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: ImmutableInstruction31c.java    From ZjDroid with Apache License 2.0 5 votes vote down vote up
public ImmutableInstruction31c(@Nonnull Opcode opcode,
                               int registerA,
                               @Nonnull Reference reference) {
    super(opcode);
    this.registerA = Preconditions.checkByteRegister(registerA);
    this.reference = ImmutableReferenceFactory.of(opcode.referenceType, reference);
}
 
Example 10
Source File: ImmutableInstruction21c.java    From HeyGirl with Apache License 2.0 5 votes vote down vote up
public ImmutableInstruction21c(@Nonnull Opcode opcode,
                                  int registerA,
                                  @Nonnull Reference reference) {
    super(opcode);
    this.registerA = Preconditions.checkByteRegister(registerA);
    this.reference = ImmutableReferenceFactory.of(opcode.referenceType, reference);
}
 
Example 11
Source File: ImmutableInstruction20bc.java    From zjdroid with Apache License 2.0 5 votes vote down vote up
public ImmutableInstruction20bc(@Nonnull Opcode opcode,
                               int verificationError,
                               @Nonnull Reference reference) {
    super(opcode);
    this.verificationError = Preconditions.checkVerificationError(verificationError);
    this.reference = ImmutableReferenceFactory.of(opcode.referenceType, reference);
}
 
Example 12
Source File: ImmutableInstruction21c.java    From ZjDroid with Apache License 2.0 5 votes vote down vote up
public ImmutableInstruction21c(@Nonnull Opcode opcode,
                                  int registerA,
                                  @Nonnull Reference reference) {
    super(opcode);
    this.registerA = Preconditions.checkByteRegister(registerA);
    this.reference = ImmutableReferenceFactory.of(opcode.referenceType, reference);
}
 
Example 13
Source File: ImmutableInstruction3rc.java    From zjdroid with Apache License 2.0 5 votes vote down vote up
public ImmutableInstruction3rc(@Nonnull Opcode opcode,
                               int startRegister,
                               int registerCount,
                               @Nonnull Reference reference) {
    super(opcode);
    this.startRegister = Preconditions.checkShortRegister(startRegister);
    this.registerCount = Preconditions.checkRegisterRangeCount(registerCount);
    this.reference = ImmutableReferenceFactory.of(opcode.referenceType, reference);
}
 
Example 14
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 15
Source File: ImmutableInstruction21c.java    From zjdroid with Apache License 2.0 5 votes vote down vote up
public ImmutableInstruction21c(@Nonnull Opcode opcode,
                                  int registerA,
                                  @Nonnull Reference reference) {
    super(opcode);
    this.registerA = Preconditions.checkByteRegister(registerA);
    this.reference = ImmutableReferenceFactory.of(opcode.referenceType, reference);
}
 
Example 16
Source File: ImmutableInstruction20bc.java    From ZjDroid with Apache License 2.0 5 votes vote down vote up
public ImmutableInstruction20bc(@Nonnull Opcode opcode,
                               int verificationError,
                               @Nonnull Reference reference) {
    super(opcode);
    this.verificationError = Preconditions.checkVerificationError(verificationError);
    this.reference = ImmutableReferenceFactory.of(opcode.referenceType, reference);
}
 
Example 17
Source File: ImmutableInstruction31c.java    From ZjDroid with Apache License 2.0 5 votes vote down vote up
public ImmutableInstruction31c(@Nonnull Opcode opcode,
                               int registerA,
                               @Nonnull Reference reference) {
    super(opcode);
    this.registerA = Preconditions.checkByteRegister(registerA);
    this.reference = ImmutableReferenceFactory.of(opcode.referenceType, reference);
}
 
Example 18
Source File: ImmutableInstruction3rc.java    From ZjDroid with Apache License 2.0 5 votes vote down vote up
public ImmutableInstruction3rc(@Nonnull Opcode opcode,
                               int startRegister,
                               int registerCount,
                               @Nonnull Reference reference) {
    super(opcode);
    this.startRegister = Preconditions.checkShortRegister(startRegister);
    this.registerCount = Preconditions.checkRegisterRangeCount(registerCount);
    this.reference = ImmutableReferenceFactory.of(opcode.referenceType, reference);
}
 
Example 19
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 20
Source File: ImmutableInstruction20bc.java    From ZjDroid with Apache License 2.0 5 votes vote down vote up
public ImmutableInstruction20bc(@Nonnull Opcode opcode,
                               int verificationError,
                               @Nonnull Reference reference) {
    super(opcode);
    this.verificationError = Preconditions.checkVerificationError(verificationError);
    this.reference = ImmutableReferenceFactory.of(opcode.referenceType, reference);
}