@Override public void visitClassContext(ClassContext classContext) { for(Method method : classContext.getMethodsInCallOrder()) { if(method.isAbstract() || method.isNative()) { continue; } try { analyzeMethod(classContext, method); } catch (CheckedAnalysisException e) { reporter.logError("Error analyzing "+method+" (class: "+classContext.getJavaClass().getClassName()+")", e); } } }
if (method.isAbstract() || method.isNative()) { continue;
if (method.isAbstract() || method.isNative()) { continue;
for (Method method : methodList) { try { if (method.isAbstract() || method.isNative() || method.getCode() == null) { continue;
for (Method method : methodsInCallOrder) { try { if (method.isAbstract() || method.isNative() || method.getCode() == null) { continue;
Method[] methodList = jclass.getMethods(); for (Method method : methodList) { if (method.isAbstract() || method.isNative()) { continue;
if (obj.isAbstract()) { equalsObjectIsAbstract = true; } else if (!obj.isNative()) { Code code = obj.getCode(); byte[] codeBytes = code.getCode();
@Override public void visitClassContext(ClassContext classContext) { for(Method method : classContext.getMethodsInCallOrder()) { if(method.isAbstract() || method.isNative()) { continue; } try { analyzeMethod(classContext, method); } catch (CheckedAnalysisException e) { reporter.logError("Error analyzing "+method+" (class: "+classContext.getJavaClass().getClassName()+")", e); } } }
final Method[] method = clazz.getMethods(); for (final Method element : method) { if (element.isNative()) { files.add(clazz.getClassName());
private boolean prescreen(Code obj) { if (getMethod().isNative()) { return false; } CodeException[] ces = obj.getExceptionTable(); if (CollectionUtils.isEmpty(ces)) { return false; } boolean hasFinally = false; for (CodeException ce : ces) { if (ce.getCatchType() == 0) { finallyBlocks.put(Integer.valueOf(ce.getHandlerPC()), new TryBlock(ce.getStartPC(), ce.getEndPC(), ce.getHandlerPC(), obj.getCode().length - 1)); hasFinally = true; } } return hasFinally; }
private boolean prescreen(Code obj) { if (getMethod().isNative()) { return false; } CodeException[] ces = obj.getExceptionTable(); if (CollectionUtils.isEmpty(ces)) { return false; } boolean hasFinally = false; for (CodeException ce : ces) { if (ce.getCatchType() == 0) { finallyBlocks.put(Integer.valueOf(ce.getHandlerPC()), new TryBlock(ce.getStartPC(), ce.getEndPC(), ce.getHandlerPC(), obj.getCode().length - 1)); hasFinally = true; } } return hasFinally; }
if (method.isAbstract() || method.isNative()) { continue;
if (method.isAbstract() || method.isNative()) { continue;
for (Method method : methodList) { try { if (method.isAbstract() || method.isNative() || method.getCode() == null) { continue;
for (Method method : methodsInCallOrder) { try { if (method.isAbstract() || method.isNative() || method.getCode() == null) { continue;
Method[] methodList = jclass.getMethods(); for (Method method : methodList) { if (method.isAbstract() || method.isNative()) { continue;
for (Method method : cg.getMethods()) { final MethodGen mg = new MethodGen(method, cg.getClassName(), cg.getConstantPool()); if (method.isAbstract() || method.isNative()) { return;
for (Method method : cg.getMethods()) { final MethodGen mg = new MethodGen(method, cg.getClassName(), cg.getConstantPool()); if (method.isAbstract() || method.isNative()) { return;
private byte[] getBytesFromClass(final String className) throws ClassNotFoundException, IOException { final JavaClass clazz = getTestClass(className); final ConstantPoolGen cp = new ConstantPoolGen(clazz.getConstantPool()); final Method[] methods = clazz.getMethods(); for (int i = 0; i < methods.length; i++) { final Method method = methods[i]; if (!method.isNative() && !method.isAbstract()) { methods[i] = injection(clazz, method, cp, findFirstStringLocalVariableOffset(method)); } } clazz.setConstantPool(cp.getFinalConstantPool()); return clazz.getBytes(); }