Skip to content

Source filename in PMD 7 #4865

Answered by jsotuyod
justinstroudbah asked this question in Q&A
Discussion options

You must be logged in to vote

It's not in the context, but you can get it from any node in the AST through Node.getTextDocument().getFileId().getFileName().

Replies: 1 comment 7 replies

Comment options

You must be logged in to vote
7 replies
@justinstroudbah
Comment options

@justinstroudbah
Comment options

@jsotuyod
Comment options

@justinstroudbah
Comment options

@justinstroudbah
Comment options

Answer selected by justinstroudbah
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants