parseResource
Parses the Java code contained in a resource and returns a CompilationUnit that represents it.
Return
CompilationUnit representing the Java source code
Parameters
path to a resource containing Java source code. As resource is accessed through a class loader, a leading "/" is not allowed in pathToResource
Throws
the path could not be accessed
Deprecated
set the encoding in the ParserConfiguration
Parses the Java code contained in a resource and returns a CompilationUnit that represents it.
Return
CompilationUnit representing the Java source code
Parameters
path to a resource containing Java source code. As resource is accessed through a class loader, a leading "/" is not allowed in pathToResource
encoding of the source code
Throws
the path could not be accessed
Deprecated
set the encoding in the ParserConfiguration
Parses the Java code contained in a resource and returns a CompilationUnit that represents it.
Return
CompilationUnit representing the Java source code
Parameters
the classLoader that is asked to load the resource
path to a resource containing Java source code. As resource is accessed through a class loader, a leading "/" is not allowed in pathToResource
Throws
the path could not be accessed