ConstantPushInstruction
, PushInstruction
, StackProducer
, TypedInstruction
public class SIPUSH extends Instruction implements ConstantPushInstruction
Stack: ... -> ..., value
length, opcode
Constructor | Description |
---|---|
SIPUSH(short b) |
Modifier and Type | Method | Description |
---|---|---|
void |
accept(Visitor v) |
Call corresponding visitor method(s).
|
void |
dump(java.io.DataOutputStream out) |
Dump instruction as short code to stream out.
|
Type |
getType(ConstantPoolGen cp) |
|
java.lang.Number |
getValue() |
|
protected void |
initFromFile(ByteSequence bytes,
boolean wide) |
Read needed data (e.g.
|
java.lang.String |
toString(boolean verbose) |
Long output format:
<name of opcode> "["<opcode number>"]"
"("<length of instruction>")"
|
consumeStack, copy, equals, getComparator, getLength, getName, getOpcode, produceStack, readInstruction, setComparator, toString, toString
clone, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
produceStack
public void dump(java.io.DataOutputStream out) throws java.io.IOException
dump
in class Instruction
out
- Output streamjava.io.IOException
public java.lang.String toString(boolean verbose)
Instruction
toString
in class Instruction
verbose
- long/short format switchprotected void initFromFile(ByteSequence bytes, boolean wide) throws java.io.IOException
initFromFile
in class Instruction
bytes
- byte sequence to read fromwide
- "wide" instruction flagjava.io.IOException
public java.lang.Number getValue()
getValue
in interface ConstantPushInstruction
public Type getType(ConstantPoolGen cp)
getType
in interface TypedInstruction
public void accept(Visitor v)
accept
in class Instruction
v
- Visitor object