Code example for StringReader

0
        parseCode(code, LanguageVersion.JAVA_15);
    } 
 
    protected void parseCode(String code, LanguageVersion languageVersion) {
   	  LanguageVersionHandler languageVersionHandler = Language.JAVA.getDefaultVersion().getLanguageVersionHandler();
	acu = (ASTCompilationUnit)languageVersionHandler.getParser(languageVersionHandler.getDefaultParserOptions()).parse(null, new StringReader(code));
        stb = new SymbolFacade();
        stb.initializeWith(acu);
    } 
}