parseImport

open fun parseImport(@NotNull importDeclaration: String): ImportDeclaration(source)

Parses the Java import contained in a String and returns a ImportDeclaration that represents it.

Return

ImportDeclaration representing the Java import declaration

Parameters

importDeclaration

String containing Java import code

Throws

if the source code has parser errors