/** * Return whether or not the given method is concrete. * * @param xmethod * the method * @return true if the method is concrete, false otherwise */ @Deprecated public static boolean isConcrete(XMethod xmethod) { int accessFlags = xmethod.getAccessFlags(); return (accessFlags & Const.ACC_ABSTRACT) == 0 && (accessFlags & Const.ACC_NATIVE) == 0; }
@Override public boolean choose(XMethod method) { return accessFlagsAreConcrete(method.getAccessFlags()); } };
@Override protected void writeKey(Writer writer, MethodDescriptor method) throws IOException { writer.write(method.getClassDescriptor().toDottedClassName()); writer.write(","); writer.write(method.getName()); writer.write(","); writer.write(method.getSignature()); writer.write(","); XMethod xMethod = XFactory.createXMethod(method); writer.write(Integer.toString(xMethod.getAccessFlags() & 0xf)); } }
for (ClassDescriptor subtype : subTypeSet) { XMethod concreteSubtypeMethod = findMethod(subtype, methodName, methodSig, false); if (concreteSubtypeMethod != null && (concreteSubtypeMethod.getAccessFlags() & Const.ACC_ABSTRACT) == 0) { result.add(new JavaClassAndMethod(concreteSubtypeMethod));
/** * Return whether or not the given method is concrete. * * @param xmethod * the method * @return true if the method is concrete, false otherwise */ @Deprecated public static boolean isConcrete(XMethod xmethod) { int accessFlags = xmethod.getAccessFlags(); return (accessFlags & Constants.ACC_ABSTRACT) == 0 && (accessFlags & Constants.ACC_NATIVE) == 0; }
@Override public boolean choose(XMethod method) { return accessFlagsAreConcrete(method.getAccessFlags()); } };
@Override protected void writeKey(Writer writer, MethodDescriptor method) throws IOException { writer.write(method.getClassDescriptor().toDottedClassName()); writer.write(","); writer.write(method.getName()); writer.write(","); writer.write(method.getSignature()); writer.write(","); XMethod xMethod = XFactory.createXMethod(method); writer.write(Integer.toString(xMethod.getAccessFlags() & 0xf)); } }
for (ClassDescriptor subtype : subTypeSet) { XMethod concreteSubtypeMethod = findMethod(subtype, methodName, methodSig, false); if (concreteSubtypeMethod != null && (concreteSubtypeMethod.getAccessFlags() & Constants.ACC_ABSTRACT) == 0) { result.add(new JavaClassAndMethod(concreteSubtypeMethod));