/** * Resolves an {@link TreePath} from the {@link TreePathHandle}. * @param compilationInfo representing the {@link javax.tools.CompilationTask} * @return resolved subclass of {@link Element} or null if the element does not exist on * the classpath/sourcepath of {@link javax.tools.CompilationTask}. * @throws IllegalArgumentException when this {@link TreePathHandle} is not created for a source * represented by the compilationInfo. */ public TreePath resolve (final CompilationInfo compilationInfo) throws IllegalArgumentException { final TreePath result = this.delegate.resolve(compilationInfo); if (result == null) { Logger.getLogger(TreePathHandle.class.getName()).info("Cannot resolve: "+toString()); } return result; }
/** * Resolves an {@link Element} from the {@link TreePathHandle}. * @param compilationInfo representing the {@link javax.tools.CompilationTask} * @return resolved subclass of {@link Element} or null if the element does not exist on * the classpath/sourcepath of {@link javax.tools.CompilationTask}. */ public Element resolveElement(final CompilationInfo info) { Parameters.notNull("info", info); final Element result = this.delegate.resolveElement(info); if (result == null) { Logger.getLogger(TreePathHandle.class.getName()).info("Cannot resolve: "+toString()); } return result; }