Class JavaMemberExtractor
java.lang.Object
net.mcreator.java.JavaMemberExtractor
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiongetMemberList(String code) Extracts unqualified identifiers referenced in the given code: identifiers that are not reserved words and are not preceded by a dot.
-
Constructor Details
-
JavaMemberExtractor
public JavaMemberExtractor()
-
-
Method Details
-
getMemberList
Extracts unqualified identifiers referenced in the given code: identifiers that are not reserved words and are not preceded by a dot. Identifiers reached through qualification (members of other objects, segments of fully qualified names) resolve through their qualifier and are skipped. String literals, text blocks, character literals, and comments are ignored.- Parameters:
code- The Java code to extract members from- Returns:
- Set of members found in the code
-