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

opcode

Constructor Summary

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

Method Summary

void
accept(CodeVisitor cv)
Makes the given code visitor visit this instruction.

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

accept, getOpcode

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(CodeVisitor cv)
Makes the given code visitor visit this instruction.
Overrides:
accept in interface AbstractInsnNode
Parameters:
cv - a code visitor.