java.lang.Object
Compil3r.BytecodeAnalysis.Bytecodes.Instruction
Compil3r.BytecodeAnalysis.Bytecodes.BIPUSH
- All Implemented Interfaces:
- Bytecodes.ConstantPushInstruction, Bytecodes.PushInstruction, Bytecodes.StackProducer, Bytecodes.TypedInstruction, java.lang.Cloneable, java.io.Serializable
- Enclosing class:
- Bytecodes
- public static class Bytecodes.BIPUSH
- extends Bytecodes.Instruction
- implements Bytecodes.PushInstruction, Bytecodes.StackProducer, Bytecodes.TypedInstruction, Bytecodes.ConstantPushInstruction
|
Field Summary |
private byte |
b
|
|
Constructor Summary |
(package private) |
Bytecodes.BIPUSH()
Empty constructor needed for the Class.newInstance() statement in
Instruction.readInstruction(). |
|
Bytecodes.BIPUSH(byte b)
Push byte on stack |
b
private byte b
Bytecodes.BIPUSH
Bytecodes.BIPUSH()
- Empty constructor needed for the Class.newInstance() statement in
Instruction.readInstruction(). Not to be used otherwise.
Bytecodes.BIPUSH
public Bytecodes.BIPUSH(byte b)
- Push byte on stack
dump
public void dump(java.io.DataOutputStream out)
throws java.io.IOException
- Dump instruction as byte code to stream out.
- Overrides:
dump in class Bytecodes.Instruction
toString
public java.lang.String toString(boolean verbose)
- Description copied from class:
Bytecodes.Instruction
- Long output format:
<name of opcode> "["<opcode number>"]"
"("<length of instruction>")"
- Overrides:
toString in class Bytecodes.Instruction
initFromFile
protected void initFromFile(Clazz.jq_ConstantPool cp,
Util.IO.ByteSequence bytes,
boolean wide)
throws java.io.IOException
- Read needed data (e.g. index) from file.
- Overrides:
initFromFile in class Bytecodes.Instruction
getValue
public java.lang.Number getValue()
- Specified by:
getValue in interface Bytecodes.ConstantPushInstruction
getType
public Clazz.jq_Type getType()
- Specified by:
getType in interface Bytecodes.TypedInstruction
accept
public void accept(Bytecodes.Visitor v)
- Call corresponding visitor method(s). The order is:
Call visitor methods of implemented interfaces first, then
call methods according to the class hierarchy in descending order,
i.e., the most specific visitXXX() call comes last.
- Specified by:
accept in class Bytecodes.Instruction