Top Description Fields Constructors Methods
javassist.bytecode

pack-priv Class CodeAnalyzer

extends Object
implements Opcode
Class Inheritance
All Implemented Interfaces
javassist.bytecode.Opcode

Utility for computing max_stack.

Field Summary

Modifier and TypeField and Description
private CodeAttribute
private ConstPool

Constructor Summary

AccessConstructor and Description
public

Method Summary

Modifier and TypeMethod and Description
private void
checkTarget(int opIndex, int target, int codeLength, int[] stack, int stackDepth)

public int
private int
getFieldSize(CodeIterator ci, int index)

private void
initStack(int[] stack, CodeAttribute ca)

private static boolean
isEnd(int opcode)

private boolean
processBranch(int opcode, CodeIterator ci, int index, int codeLength, int[] stack, int stackDepth, int[] jsrDepth)

private void
visitBytecode(CodeIterator ci, int[] stack, int index)

private int
visitInst(int op, CodeIterator ci, int index, int stack)

Visits an instruction.

Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

codeAttrback to summary
private CodeAttribute codeAttr
constPoolback to summary
private ConstPool constPool

Constructor Detail

CodeAnalyzerback to summary
public CodeAnalyzer(CodeAttribute ca)

Method Detail

checkTargetback to summary
private void checkTarget(int opIndex, int target, int codeLength, int[] stack, int stackDepth) throws BadBytecode
computeMaxStackback to summary
public int computeMaxStack() throws BadBytecode
getFieldSizeback to summary
private int getFieldSize(CodeIterator ci, int index)
initStackback to summary
private void initStack(int[] stack, CodeAttribute ca)
isEndback to summary
private static boolean isEnd(int opcode)
processBranchback to summary
private boolean processBranch(int opcode, CodeIterator ci, int index, int codeLength, int[] stack, int stackDepth, int[] jsrDepth) throws BadBytecode
visitBytecodeback to summary
private void visitBytecode(CodeIterator ci, int[] stack, int index) throws BadBytecode
visitInstback to summary
private int visitInst(int op, CodeIterator ci, int index, int stack) throws BadBytecode

Visits an instruction.