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, FRAME, IINC_INSN, INSN, INT_INSN, JUMP_INSN, LABEL, LDC_INSN, LINE, 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)
AbstractInsnNode
clone(Map labels)
int
getType()

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

accept, clone, getNext, getOpcode, getPrevious, 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)
Overrides:
accept in interface AbstractInsnNode

clone

public AbstractInsnNode clone(Map labels)
Overrides:
clone in interface AbstractInsnNode

getType

public int getType()
Overrides:
getType in interface AbstractInsnNode