.and(hasParameters(whereNone(hasType(not(isVisibleTo(instrumentedType)))))) .and(ignoredMethods.resolve(instrumentedType)); List<MethodDescription> methods = new ArrayList<MethodDescription>();
builder = builder.ignoreAlso(isPackagePrivate() .or(returns(isPackagePrivate())) .or(hasParameters(whereAny(hasType(isPackagePrivate())))));
/** * {@inheritDoc} */ public MethodGraph.Linked compile(TypeDefinition typeDefinition, TypeDescription viewPoint) { LinkedHashMap<MethodDescription.SignatureToken, MethodGraph.Node> nodes = new LinkedHashMap<MethodDescription.SignatureToken, MethodGraph.Node>(); for (MethodDescription methodDescription : typeDefinition.getDeclaredMethods() .filter( // ignores all methods which refer to unknown types failSafe( isVirtual() .and(not(isBridge())) .and(isVisibleTo(viewPoint)) .and(hasParameters(whereNone(hasType(not(isVisibleTo(viewPoint)))))) ) ) ) { nodes.put(methodDescription.asSignatureToken(), new MethodGraph.Node.Simple(methodDescription)); } return new MethodGraph.Linked.Delegation(new MethodGraph.Simple(nodes), MethodGraph.Empty.INSTANCE, Collections.<TypeDescription, MethodGraph>emptyMap()); } }