com.android.dx.io.IndexType Java Examples

The following examples show how to use com.android.dx.io.IndexType. 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: InvokePolymorphicRangeDecodedInstruction.java    From Box with Apache License 2.0 6 votes vote down vote up
public InvokePolymorphicRangeDecodedInstruction(
        InstructionCodec format,
        int opcode,
        int methodIndex,
        IndexType indexType,
        int c,
        int registerCount,
        int protoIndex) {
    super(format, opcode, methodIndex, indexType, 0, 0);
    if (protoIndex != (short) protoIndex) {
      throw new IllegalArgumentException("protoIndex doesn't fit in a short: " + protoIndex);
    }
    this.c = c;
    this.registerCount = registerCount;
    this.protoIndex = protoIndex;
}
 
Example #2
Source File: DecodedInstruction.java    From buck with Apache License 2.0 6 votes vote down vote up
/**
 * Constructs an instance.
 */
public DecodedInstruction(InstructionCodec format, int opcode,
        int index, IndexType indexType, int target, long literal) {
    if (format == null) {
        throw new NullPointerException("format == null");
    }

    if (!Opcodes.isValidShape(opcode)) {
        throw new IllegalArgumentException("invalid opcode");
    }

    this.format = format;
    this.opcode = opcode;
    this.index = index;
    this.indexType = indexType;
    this.target = target;
    this.literal = literal;
}
 
Example #3
Source File: DecodedInstruction.java    From Box with Apache License 2.0 6 votes vote down vote up
/**
 * Constructs an instance.
 */
public DecodedInstruction(InstructionCodec format, int opcode,
        int index, IndexType indexType, int target, long literal) {
    if (format == null) {
        throw new NullPointerException("format == null");
    }

    if (!Opcodes.isValidShape(opcode)) {
        throw new IllegalArgumentException("invalid opcode");
    }

    this.format = format;
    this.opcode = opcode;
    this.index = index;
    this.indexType = indexType;
    this.target = target;
    this.literal = literal;
}
 
Example #4
Source File: DecodedInstruction.java    From Box with Apache License 2.0 6 votes vote down vote up
/**
 * Constructs an instance.
 */
public DecodedInstruction(InstructionCodec format, int opcode,
        int index, IndexType indexType, int target, long literal) {
    if (format == null) {
        throw new NullPointerException("format == null");
    }

    if (!Opcodes.isValidShape(opcode)) {
        throw new IllegalArgumentException("invalid opcode");
    }

    this.format = format;
    this.opcode = opcode;
    this.index = index;
    this.indexType = indexType;
    this.target = target;
    this.literal = literal;
}
 
Example #5
Source File: InvokePolymorphicRangeDecodedInstruction.java    From Box with Apache License 2.0 6 votes vote down vote up
public InvokePolymorphicRangeDecodedInstruction(
        InstructionCodec format,
        int opcode,
        int methodIndex,
        IndexType indexType,
        int c,
        int registerCount,
        int protoIndex) {
    super(format, opcode, methodIndex, indexType, 0, 0);
    if (protoIndex != (short) protoIndex) {
      throw new IllegalArgumentException("protoIndex doesn't fit in a short: " + protoIndex);
    }
    this.c = c;
    this.registerCount = registerCount;
    this.protoIndex = protoIndex;
}
 
Example #6
Source File: DecodedInstruction.java    From J2ME-Loader with Apache License 2.0 6 votes vote down vote up
/**
 * Constructs an instance.
 */
public DecodedInstruction(InstructionCodec format, int opcode,
        int index, IndexType indexType, int target, long literal) {
    if (format == null) {
        throw new NullPointerException("format == null");
    }

    if (!Opcodes.isValidShape(opcode)) {
        throw new IllegalArgumentException("invalid opcode");
    }

    this.format = format;
    this.opcode = opcode;
    this.index = index;
    this.indexType = indexType;
    this.target = target;
    this.literal = literal;
}
 
Example #7
Source File: FiveRegisterDecodedInstruction.java    From J2ME-Loader with Apache License 2.0 5 votes vote down vote up
/**
 * Constructs an instance.
 */
public FiveRegisterDecodedInstruction(InstructionCodec format, int opcode,
        int index, IndexType indexType, int target, long literal,
        int a, int b, int c, int d, int e) {
    super(format, opcode, index, indexType, target, literal);

    this.a = a;
    this.b = b;
    this.c = c;
    this.d = d;
    this.e = e;
}
 
Example #8
Source File: FiveRegisterDecodedInstruction.java    From Box with Apache License 2.0 5 votes vote down vote up
/**
 * Constructs an instance.
 */
public FiveRegisterDecodedInstruction(InstructionCodec format, int opcode,
        int index, IndexType indexType, int target, long literal,
        int a, int b, int c, int d, int e) {
    super(format, opcode, index, indexType, target, literal);

    this.a = a;
    this.b = b;
    this.c = c;
    this.d = d;
    this.e = e;
}
 
Example #9
Source File: RegisterRangeDecodedInstruction.java    From J2ME-Loader with Apache License 2.0 5 votes vote down vote up
/**
 * Constructs an instance.
 */
public RegisterRangeDecodedInstruction(InstructionCodec format, int opcode,
        int index, IndexType indexType, int target, long literal,
        int a, int registerCount) {
    super(format, opcode, index, indexType, target, literal);

    this.a = a;
    this.registerCount = registerCount;
}
 
Example #10
Source File: FourRegisterDecodedInstruction.java    From J2ME-Loader with Apache License 2.0 5 votes vote down vote up
/**
 * Constructs an instance.
 */
public FourRegisterDecodedInstruction(InstructionCodec format, int opcode,
        int index, IndexType indexType, int target, long literal,
        int a, int b, int c, int d) {
    super(format, opcode, index, indexType, target, literal);

    this.a = a;
    this.b = b;
    this.c = c;
    this.d = d;
}
 
Example #11
Source File: OneRegisterDecodedInstruction.java    From J2ME-Loader with Apache License 2.0 5 votes vote down vote up
/**
 * Constructs an instance.
 */
public OneRegisterDecodedInstruction(InstructionCodec format, int opcode,
        int index, IndexType indexType, int target, long literal,
        int a) {
    super(format, opcode, index, indexType, target, literal);

    this.a = a;
}
 
Example #12
Source File: ThreeRegisterDecodedInstruction.java    From J2ME-Loader with Apache License 2.0 5 votes vote down vote up
/**
 * Constructs an instance.
 */
public ThreeRegisterDecodedInstruction(InstructionCodec format, int opcode,
        int index, IndexType indexType, int target, long literal,
        int a, int b, int c) {
    super(format, opcode, index, indexType, target, literal);

    this.a = a;
    this.b = b;
    this.c = c;
}
 
Example #13
Source File: TwoRegisterDecodedInstruction.java    From J2ME-Loader with Apache License 2.0 5 votes vote down vote up
/**
 * Constructs an instance.
 */
public TwoRegisterDecodedInstruction(InstructionCodec format, int opcode,
        int index, IndexType indexType, int target, long literal,
        int a, int b) {
    super(format, opcode, index, indexType, target, literal);

    this.a = a;
    this.b = b;
}
 
Example #14
Source File: FourRegisterDecodedInstruction.java    From Box with Apache License 2.0 5 votes vote down vote up
/**
 * Constructs an instance.
 */
public FourRegisterDecodedInstruction(InstructionCodec format, int opcode,
        int index, IndexType indexType, int target, long literal,
        int a, int b, int c, int d) {
    super(format, opcode, index, indexType, target, literal);

    this.a = a;
    this.b = b;
    this.c = c;
    this.d = d;
}
 
Example #15
Source File: RegisterRangeDecodedInstruction.java    From buck with Apache License 2.0 5 votes vote down vote up
/**
 * Constructs an instance.
 */
public RegisterRangeDecodedInstruction(InstructionCodec format, int opcode,
        int index, IndexType indexType, int target, long literal,
        int a, int registerCount) {
    super(format, opcode, index, indexType, target, literal);

    this.a = a;
    this.registerCount = registerCount;
}
 
Example #16
Source File: FourRegisterDecodedInstruction.java    From buck with Apache License 2.0 5 votes vote down vote up
/**
 * Constructs an instance.
 */
public FourRegisterDecodedInstruction(InstructionCodec format, int opcode,
        int index, IndexType indexType, int target, long literal,
        int a, int b, int c, int d) {
    super(format, opcode, index, indexType, target, literal);

    this.a = a;
    this.b = b;
    this.c = c;
    this.d = d;
}
 
Example #17
Source File: OneRegisterDecodedInstruction.java    From buck with Apache License 2.0 5 votes vote down vote up
/**
 * Constructs an instance.
 */
public OneRegisterDecodedInstruction(InstructionCodec format, int opcode,
        int index, IndexType indexType, int target, long literal,
        int a) {
    super(format, opcode, index, indexType, target, literal);

    this.a = a;
}
 
Example #18
Source File: ThreeRegisterDecodedInstruction.java    From buck with Apache License 2.0 5 votes vote down vote up
/**
 * Constructs an instance.
 */
public ThreeRegisterDecodedInstruction(InstructionCodec format, int opcode,
        int index, IndexType indexType, int target, long literal,
        int a, int b, int c) {
    super(format, opcode, index, indexType, target, literal);

    this.a = a;
    this.b = b;
    this.c = c;
}
 
Example #19
Source File: TwoRegisterDecodedInstruction.java    From buck with Apache License 2.0 5 votes vote down vote up
/**
 * Constructs an instance.
 */
public TwoRegisterDecodedInstruction(InstructionCodec format, int opcode,
        int index, IndexType indexType, int target, long literal,
        int a, int b) {
    super(format, opcode, index, indexType, target, literal);

    this.a = a;
    this.b = b;
}
 
Example #20
Source File: FiveRegisterDecodedInstruction.java    From buck with Apache License 2.0 5 votes vote down vote up
/**
 * Constructs an instance.
 */
public FiveRegisterDecodedInstruction(InstructionCodec format, int opcode,
        int index, IndexType indexType, int target, long literal,
        int a, int b, int c, int d, int e) {
    super(format, opcode, index, indexType, target, literal);

    this.a = a;
    this.b = b;
    this.c = c;
    this.d = d;
    this.e = e;
}
 
Example #21
Source File: RegisterRangeDecodedInstruction.java    From Box with Apache License 2.0 5 votes vote down vote up
/**
 * Constructs an instance.
 */
public RegisterRangeDecodedInstruction(InstructionCodec format, int opcode,
        int index, IndexType indexType, int target, long literal,
        int a, int registerCount) {
    super(format, opcode, index, indexType, target, literal);

    this.a = a;
    this.registerCount = registerCount;
}
 
Example #22
Source File: ThreeRegisterDecodedInstruction.java    From Box with Apache License 2.0 5 votes vote down vote up
/**
 * Constructs an instance.
 */
public ThreeRegisterDecodedInstruction(InstructionCodec format, int opcode,
        int index, IndexType indexType, int target, long literal,
        int a, int b, int c) {
    super(format, opcode, index, indexType, target, literal);

    this.a = a;
    this.b = b;
    this.c = c;
}
 
Example #23
Source File: InvokePolymorphicDecodedInstruction.java    From Box with Apache License 2.0 5 votes vote down vote up
public InvokePolymorphicDecodedInstruction(
        InstructionCodec format,
        int opcode,
        int methodIndex,
        IndexType indexType,
        int protoIndex,
        int[] registers) {
    super(format, opcode, methodIndex, indexType, 0, 0);
    if (protoIndex != (short) protoIndex) {
      throw new IllegalArgumentException("protoIndex doesn't fit in a short: " + protoIndex);
    }
    this.protoIndex = protoIndex;
    this.registers = registers;
}
 
Example #24
Source File: OneRegisterDecodedInstruction.java    From Box with Apache License 2.0 5 votes vote down vote up
/**
 * Constructs an instance.
 */
public OneRegisterDecodedInstruction(InstructionCodec format, int opcode,
        int index, IndexType indexType, int target, long literal,
        int a) {
    super(format, opcode, index, indexType, target, literal);

    this.a = a;
}
 
Example #25
Source File: FourRegisterDecodedInstruction.java    From Box with Apache License 2.0 5 votes vote down vote up
/**
 * Constructs an instance.
 */
public FourRegisterDecodedInstruction(InstructionCodec format, int opcode,
        int index, IndexType indexType, int target, long literal,
        int a, int b, int c, int d) {
    super(format, opcode, index, indexType, target, literal);

    this.a = a;
    this.b = b;
    this.c = c;
    this.d = d;
}
 
Example #26
Source File: OneRegisterDecodedInstruction.java    From Box with Apache License 2.0 5 votes vote down vote up
/**
 * Constructs an instance.
 */
public OneRegisterDecodedInstruction(InstructionCodec format, int opcode,
        int index, IndexType indexType, int target, long literal,
        int a) {
    super(format, opcode, index, indexType, target, literal);

    this.a = a;
}
 
Example #27
Source File: RegisterRangeDecodedInstruction.java    From Box with Apache License 2.0 5 votes vote down vote up
/**
 * Constructs an instance.
 */
public RegisterRangeDecodedInstruction(InstructionCodec format, int opcode,
        int index, IndexType indexType, int target, long literal,
        int a, int registerCount) {
    super(format, opcode, index, indexType, target, literal);

    this.a = a;
    this.registerCount = registerCount;
}
 
Example #28
Source File: TwoRegisterDecodedInstruction.java    From Box with Apache License 2.0 5 votes vote down vote up
/**
 * Constructs an instance.
 */
public TwoRegisterDecodedInstruction(InstructionCodec format, int opcode,
        int index, IndexType indexType, int target, long literal,
        int a, int b) {
    super(format, opcode, index, indexType, target, literal);

    this.a = a;
    this.b = b;
}
 
Example #29
Source File: FiveRegisterDecodedInstruction.java    From Box with Apache License 2.0 5 votes vote down vote up
/**
 * Constructs an instance.
 */
public FiveRegisterDecodedInstruction(InstructionCodec format, int opcode,
        int index, IndexType indexType, int target, long literal,
        int a, int b, int c, int d, int e) {
    super(format, opcode, index, indexType, target, literal);

    this.a = a;
    this.b = b;
    this.c = c;
    this.d = d;
    this.e = e;
}
 
Example #30
Source File: TwoRegisterDecodedInstruction.java    From Box with Apache License 2.0 5 votes vote down vote up
/**
 * Constructs an instance.
 */
public TwoRegisterDecodedInstruction(InstructionCodec format, int opcode,
        int index, IndexType indexType, int target, long literal,
        int a, int b) {
    super(format, opcode, index, indexType, target, literal);

    this.a = a;
    this.b = b;
}