![]() For example, we could use the PSI to find all public methods in a Java class. Note that the PSI also provides language-specific details about a file. Language lang = e.getData(CommonDataKeys.PSI_FILE).getLanguage() ![]() In this case, we use the PSI to determine the programming language of a file: PsiFile file = e.getData(CommonDataKeys.PSI_FILE) ![]() This API parses all the files in a project and provides a programmatic way to inspect them. To get the language tag, we'll use the Program Structure Interface. One is the language tag, and the other is the text to search for. First, though, we need to collect two values for StackOverflow.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |