public class IINC extends LocalVariableInstruction
nlength, opcode| Constructor and Description |
|---|
IINC(int n,
int c) |
| Modifier and Type | Method and Description |
|---|---|
void |
accept(Visitor v)
Calls corresponding visitor method(s).
|
void |
dump(DataOutputStream out)
Dumps instruction as byte code to stream out.
|
int |
getIncrement() |
Type |
getType(ConstantPoolGen cp)
Returns the type associated with the instruction - in case of ALOAD or ASTORE Type.OBJECT is returned.
|
protected void |
initFromFile(ByteSequence bytes,
boolean wide)
Reads needed data (e.g.
|
void |
setIncrement(int c)
Sets increment factor.
|
void |
setIndex(int n)
Sets index of local variable.
|
String |
toString(boolean verbose)
Returns mnemonic for instruction.
|
getCanonicalTag, getIndexconsumeStack, copy, equals, getComparator, getLength, getName, getOpcode, hashCode, isValidByte, isValidShort, produceStack, readInstruction, setComparator, toString, toStringpublic IINC(int n, int c)
n - index of local variablec - increment factorpublic void accept(Visitor v)
accept in class Instructionv - Visitor objectpublic void dump(DataOutputStream out) throws IOException
dump in class LocalVariableInstructionout - Output streamIOException - Thrown when an I/O exception of some sort has occurred.public final int getIncrement()
public Type getType(ConstantPoolGen cp)
LocalVariableInstructiongetType in interface TypedInstructiongetType in class LocalVariableInstructionprotected void initFromFile(ByteSequence bytes, boolean wide) throws IOException
initFromFile in class LocalVariableInstructionbytes - byte sequence to read fromwide - "wide" instruction flagIOException - may be thrown if the implementation needs to read data from the filepublic final void setIncrement(int c)
public final void setIndex(int n)
setIndex in interface IndexedInstructionsetIndex in class LocalVariableInstructionLocalVariableInstruction.setIndexOnly(int)public String toString(boolean verbose)
toString in class LocalVariableInstructionverbose - long/short format switchCopyright © 2004–2022 The Apache Software Foundation. All rights reserved.