Type[] argumentTypes = methodGen.getArgumentTypes(); for (Type argType : argumentTypes) {
INullnessAnnotationDatabase db = AnalysisContext.currentAnalysisContext().getNullnessAnnotationDatabase(); int paramShift = instanceMethod ? 1 : 0; Type[] argumentTypes = methodGen.getArgumentTypes(); for (int i = 0; i < numLocals; ++i) { cachedEntryFact.setValue(i, IsNullValue.nonReportingNotNullValue());
@Override public void visitMethod( final Method method ) { final MethodGen mg = new MethodGen(method, _clazz.getClassName(), _cp); _out.println(" InstructionList il = new InstructionList();"); _out.println(" MethodGen method = new MethodGen(" + printFlags(method.getAccessFlags(), FLAGS.METHOD) + ", " + printType(mg.getReturnType()) + ", " + printArgumentTypes(mg.getArgumentTypes()) + ", " + "new String[] { " + Utility.printArray(mg.getArgumentNames(), false, true) + " }, \"" + method.getName() + "\", \"" + _clazz.getClassName() + "\", il, _cp);"); _out.println(); final BCELFactory factory = new BCELFactory(mg, _out); factory.start(); _out.println(" method.setMaxStack();"); _out.println(" method.setMaxLocals();"); _out.println(" _cg.addMethod(method.getMethod());"); _out.println(" il.dispose();"); }
public void visitMethod(Method method) { MethodGen mg = new MethodGen(method, _clazz.getClassName(), _cp); Type result_type = mg.getReturnType(); Type[] arg_types = mg.getArgumentTypes(); _out.println(" InstructionList il = new InstructionList();"); _out.println(" MethodGen method = new MethodGen(" + printFlags(method.getAccessFlags()) + ", " + printType(result_type) + ", " + printArgumentTypes(arg_types) + ", " + "new String[] { " + Utility.printArray(mg.getArgumentNames(), false, true) + " }, \"" + method.getName() + "\", \"" + _clazz.getClassName() + "\", il, _cp);\n"); BCELFactory factory = new BCELFactory(mg, _out); factory.start(); _out.println(" method.setMaxStack();"); _out.println(" method.setMaxLocals();"); _out.println(" _cg.addMethod(method.getMethod());"); _out.println(" il.dispose();"); }
Type[] argumentTypes = methodGen.getArgumentTypes(); for (Type argType : argumentTypes) {
ILOAD iLoad = (ILOAD) ih.getInstruction(); int idx = iLoad.getIndex(); if (idx < mg.getArgumentTypes().length + (mg.isStatic() ? 0 : 1)) { return false;
Type[] argtypes = mg.getArgumentTypes(); int twoslotoffset = 0; for (int j=0; j<argtypes.length; j++){
final Type[] argtypes = mg.getArgumentTypes(); int twoslotoffset = 0; for (int j=0; j<argtypes.length; j++) {
INullnessAnnotationDatabase db = AnalysisContext.currentAnalysisContext().getNullnessAnnotationDatabase(); int paramShift = instanceMethod ? 1 : 0; Type[] argumentTypes = methodGen.getArgumentTypes(); for (int i = 0; i < numLocals; ++i) { cachedEntryFact.setValue(i, IsNullValue.nonReportingNotNullValue());