/** * {@inheritDoc} */ public MethodDescription.InDefinedShape get(int index) { return new MethodDescription.Latent(declaringType, tokens.get(index)); }
PrecomputedMethodGraph() { LinkedHashMap<MethodDescription.SignatureToken, MethodGraph.Node> nodes = new LinkedHashMap<MethodDescription.SignatureToken, MethodGraph.Node>(); MethodDescription callMethod = new MethodDescription.Latent(TypeDescription.ForLoadedType.of(Callable.class), "call", Opcodes.ACC_PUBLIC | Opcodes.ACC_ABSTRACT, TypeDescription.Generic.UNDEFINED); nodes.put(callMethod.asSignatureToken(), new MethodGraph.Node.Simple(callMethod)); MethodDescription runMethod = new MethodDescription.Latent(TypeDescription.ForLoadedType.of(Runnable.class), "run", Opcodes.ACC_PUBLIC | Opcodes.ACC_ABSTRACT,