public int resetForMethodEntry(PreorderVisitor v) {  if (DEBUG) System.out.println(" --- "); stack.clear(); jumpTarget = -1; lvValues.clear(); jumpStack.clear(); seenTransferOfControl = false; String className = v.getClassName(); Method m = v.getMethod(); String signature = v.getMethodSig(); exceptionHandlers.clear(); Code code = m.getCode(); if (code != null) { CodeException[] exceptionTable = code.getExceptionTable(); if (exceptionTable != null) for(CodeException ex : exceptionTable) exceptionHandlers.set(ex.getHandlerPC());
public int resetForMethodEntry(final DismantleBytecode v) { jumpEntries.clear(); int result= resetForMethodEntry0(v); Code code = v.getMethod().getCode(); if (code == null) return result;  if (false) {   DismantleBytecode branchAnalysis = new DismantleBytecode() { @Override public void sawOpcode(int seen) { OpcodeStack.this.sawOpcode(this,seen); } @Override public void sawBranchTo(int pc) { addJumpValue(pc); } }; branchAnalysis.setupVisitorForClass(v.getThisClass()); branchAnalysis.doVisitMethod(v.getMethod()); resetForMethodEntry0(v);
 	public int resetForMethodEntry(PreorderVisitor v) {  		if (DEBUG) System.out.println(" --- "); 		stack.clear();		jumpTarget = -1; 		lvValues.clear();		jumpStack.clear();		seenTransferOfControl = false;		String className = v.getClassName();		Method m = v.getMethod();		String signature = v.getMethodSig();		exceptionHandlers.clear();		Code code = m.getCode();		if (code != null) {			CodeException[] exceptionTable = code.getExceptionTable();			if (exceptionTable != null)				for(CodeException ex : exceptionTable) 					exceptionHandlers.set(ex.getHandlerPC());		}		if (DEBUG) System.out.println(" --- " + className 				+ " " + m.getName() + " " + signature);		Type[] argTypes = Type.getArgumentTypes(signature);		int reg = 0;		if (!m.isStatic()) {			Item it = new Item("L" + className+";");			it.isInitialParameter = true;			it.registerNumber = reg;			setLVValue( reg++, it);			}		 for (Type argType : argTypes) {			 Item it = new Item(argType.getSignature());			 it.registerNumber = reg;			 it.isInitialParameter = true;			 setLVValue(reg++, it);		 }		return reg;		}