org.objectweb.asm.tree

Class IincInsnNode


public class IincInsnNode
extends AbstractInsnNode

A node that represents an IINC instruction.
Author:
Eric Bruneton

Field Summary

int
incr
Amount to increment the local variable by.
int
var
Index of the local variable to be incremented.

Fields inherited from class org.objectweb.asm.tree.AbstractInsnNode

FIELD_INSN, IINC_INSN, INSN, INT_INSN, JUMP_INSN, LABEL, LDC_INSN, LOOKUPSWITCH_INSN, METHOD_INSN, MULTIANEWARRAY_INSN, TABLESWITCH_INSN, TYPE_INSN, VAR_INSN, opcode

Constructor Summary

IincInsnNode(int var, int incr)
Constructs a new IincInsnNode.

Method Summary

void
accept(MethodVisitor mv)
Makes the given code visitor visit this instruction.
int
getType()
Returns the type of this instruction.

Methods inherited from class org.objectweb.asm.tree.AbstractInsnNode

accept, getOpcode, getType

Field Details

incr

public int incr
Amount to increment the local variable by.

var

public int var
Index of the local variable to be incremented.

Constructor Details

IincInsnNode

public IincInsnNode(int var,
                    int incr)
Parameters:
var - index of the local variable to be incremented.
incr - increment amount to increment the local variable by.

Method Details

accept

public void accept(MethodVisitor mv)
Makes the given code visitor visit this instruction.
Overrides:
accept in interface AbstractInsnNode
Parameters:

getType

public int getType()
Returns the type of this instruction.
Overrides:
getType in interface AbstractInsnNode
Returns:
the type of this instruction, i.e. one the constants defined in this class.