public VariableResolvingASTVisitor(GraphContext context) { this.annotationTypeReferenceService = new GraphService<>(context, JavaAnnotationTypeReferenceModel.class); this.javaClassService = new JavaClassService(context); this.typeRefService = new TypeReferenceService(context); this.windupJavaCfgService = new WindupJavaConfigurationService(context); }
TypeReferenceService typeReferenceService = new TypeReferenceService(graphContext);
@Override public void execute(Environment env, @SuppressWarnings("rawtypes") Map params, TemplateModel[] loopVars, TemplateDirectiveBody body) throws TemplateException, IOException { StringModel projectStringModel = (StringModel) params.get("project"); ProjectModel projectModel = (ProjectModel) projectStringModel.getWrappedObject(); String filename = projectModel.getRootFileModel().getPrettyPath(); TemplateBooleanModel recursiveBooleanModel = (TemplateBooleanModel) params.get("recursive"); boolean recursive = recursiveBooleanModel.getAsBoolean(); SimpleScalar elementIDStringModel = (SimpleScalar) params.get("elementID"); String elementID = elementIDStringModel.getAsString(); TypeReferenceService typeReferenceService = new TypeReferenceService(context); Map<String, Integer> data = typeReferenceService.getPackageUseFrequencies(projectModel, 2, recursive); if (data.keySet().size() > 0) { drawPie(env.getOut(), data, elementID); } else { // if we aren't drawing a pie, remove the element that would have held it Writer writer = env.getOut(); writer.append("<script type='text/javascript'>"); writer.append("$('#" + elementID + "').parent().remove()"); writer.append("</script>"); } }
Set<String> excludeTags = FreeMarkerUtil.simpleSequenceToSet((SimpleSequence) params.get("excludeTags")); TypeReferenceService typeReferenceService = new TypeReferenceService(context); Map<String, Integer> data; if (projectModel != null)
Set<String> excludeTags = FreeMarkerUtil.simpleSequenceToSet((SimpleSequence) params.get("excludeTags")); TypeReferenceService typeReferenceService = new TypeReferenceService(context); Map<String, Integer> data; if (projectModel != null)
private void processReferences(GraphContext context, AtomicInteger referenceCount, Path filePath, List<ClassReference> references) TypeReferenceService typeReferenceService = new TypeReferenceService(context);
private void processReferences(GraphContext context, AtomicInteger referenceCount, Path filePath, List<ClassReference> references) TypeReferenceService typeReferenceService = new TypeReferenceService(context);
TypeReferenceService typeReferenceService = new TypeReferenceService(event.getGraphContext());
TypeReferenceService typeReferenceService = new TypeReferenceService(event.getGraphContext());