public class ProcessingEnvironmentClassPackageFinder extends Object implements ClassPackageFinder
ClassPackageFinder implementation that uses a ProcessingEnvironment to obtain the package.| Constructor and Description |
|---|
ProcessingEnvironmentClassPackageFinder(ProcessingEnvironment processingEnvironment) |
| Modifier and Type | Method and Description |
|---|---|
Optional<String> |
packageFor(String className)
Given a
Class name returns the given package where the class belongs. |
public ProcessingEnvironmentClassPackageFinder(ProcessingEnvironment processingEnvironment)
public Optional<String> packageFor(String className)
Class name returns the given package where the class belongs.packageFor in interface ClassPackageFinderclassName - The class from which obtain their package.Optional String with the package value. Is empty if the package doesn't exist.Copyright © 2003–2019 MuleSoft, Inc.. All rights reserved.