Empresas
Empregos
  • Sobre nós
  • Soluções
    • Publicação de vagas
      Publique sua vaga e receba candidatos qualificados em 48h.
    • Avaliações de candidatos
      Mais de 500 testes técnicos e psicológicos, mais anti-fraude.
    • Headhunting
      Busca executiva personalizada do início ao fim.
    • Folha de Pagamento + EOR
      Dispersão de folha e EOR em mais de 15 países da LATAM.
  • Preços
  • Empregos

0

128
Visualizações
Analyzing .java files from shell

I want to write a script that will generate a graph of interfaces, abstract classes and implementation classes.

As far as producing the graph, my intention is to use GraphViz to produce the output, and I'd like to be able to make a directed graph with different node colors for interfaces, abstract classes and implementation classes. Once I am able to scan all the java files, making the graph shouldn't be hard.

In order to accomplish this though, I need to write a bunch of piped grep commands, awk, sed, etc. My question is, is there a utility I can use to scan all java files and give me an output of:

  • Abstract Classes (Mandatory)
  • Implementation Classes (Mandatory)
  • Interfaces (Mandatory)
  • Usages of other classes in file [ie, member variables, etc] (Optional)
over 4 years ago · Santiago Trujillo
1 Respostas
Responde à pergunta

0

You absolutely do not want to use Bash for this. Java has a specific - and complex - syntax, which will be a nightmare to parse with regular expressions. You should instead look into tools that parse Java's Abstract Syntax Tree, or even just look for existing Java source visualizers - there are a number of them.

over 4 years ago · Santiago Trujillo Relatório
Responde à pergunta
Encontrar trabalhos remotos

Descubra a nova forma de encontrar um emprego!

melhores empregos
Principais categorias de trabalho
Empresas
Postar vaga Preços Comercial
Jurídico
Termos e Condições Política de privacidade
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Recomende algumas ofertas para mim
Preciso de ajuda