public void run(CompilationController controller) throws IOException { controller.toPhase(JavaSource.Phase.ELEMENTS_RESOLVED); generateDetailJsp(project, controller, entityClass, simpleEntityName, managedBean, fieldName, idProperty[0], isInjection, linkToIndex, doc, jsfRoot, embeddedPkSupport, controllerClass, styleAndScriptTags, entities, controllerPackage, genSessionBean); } }, true);
public void run(CompilationController controller) throws IOException { controller.toPhase(JavaSource.Phase.ELEMENTS_RESOLVED); generateEditJsp(project, controller, entityClass, simpleEntityName, managedBean, fieldName, linkToIndex, doc, jsfRoot, embeddedPkSupport, controllerClass, styleAndScriptTags, controllerPackage); } }, true);
public void run(CompilationController controller) throws IOException { controller.toPhase(JavaSource.Phase.ELEMENTS_RESOLVED); TypeElement typeElement = controller.getElements().getTypeElement(entityClass); createParamsForConverterTemplate(params, controller, typeElement, embeddedPkSupport); } }, true);
@Override public void run(CompilationController controller) throws IOException { controller.toPhase(Phase.ELEMENTS_RESOLVED); handlerType[0] = getHandlerType(controller, isJaxWS); } @Override
public void run(CompilationController parameter) throws Exception { parameter.toPhase(JavaSource.Phase.RESOLVED); Element element = handle.resolveElement(parameter); result.add(getTypeName( element , parameter )); } }, true);
public void run(CompilationController parameter) throws Exception { parameter.toPhase(JavaSource.Phase.RESOLVED); Element element = treePathHandle.resolveElement(parameter); // Fix for IZ159330 - NullPointerException at org.netbeans.modules.web.refactoring.WebRefactoringFactory$2.run if ( element == null ){ result[0] = null; } else { result[0] = element.asType().toString(); } } }, true);
@Override public void run(CompilationController info) throws Exception { info.toPhase(JavaSource.Phase.RESOLVED); element[0] = treePathHandle.resolveElement(info); } }, true);
public void run(CompilationController cc) throws IOException { cc.toPhase(Phase.ELEMENTS_RESOLVED); for (TypeElement typeElement : cc.getTopLevelElements()) { result.add(ElementUtilities.getBinaryName(typeElement)); } } }, true);
public Scope getScope() throws IOException { if (scope == null) { controller.toPhase(JavaSource.Phase.ELEMENTS_RESOLVED); scope = controller.getTreeUtilities().scopeFor(offset); } return scope; }
public void run(CompilationController parameter) throws IOException { myInfo = parameter; parameter.toPhase(JavaSource.Phase.ELEMENTS_RESOLVED); scan(parameter.getCompilationUnit(), null); }
public void run(CompilationController compilationController) throws Exception { compilationController.toPhase(JavaSource.Phase.RESOLVED); TypeElement type = (TypeElement) treePathHandle.resolveElement(compilationController); if (type != null) { className[0] = ElementUtilities.getBinaryName(type); } } }, true);
@Override public void run(CompilationController parameter) throws IOException { this.info = parameter; parameter.toPhase(Phase.RESOLVED); this.scan(parameter.getCompilationUnit(), null); } }
@Override public void run(CompilationController controller) throws Exception { controller.toPhase(JavaSource.Phase.ELEMENTS_RESOLVED); TypeElement typeElement = ElementSearch.getClass(controller.getElements(), fqn); if (typeElement != null) { for (ExecutableElement javaMethod : ElementFilter.methodsIn(typeElement.getEnclosedElements())) { if (Methods.isSameMethod(javaMethod, methodCall)) { handles[0] = ElementHandle.create(javaMethod); } } } } }, true);
public void run( CompilationController compilationController) throws Exception { compilationController.toPhase(Phase.ELEMENTS_RESOLVED); Element element = myElementHandle.resolve(compilationController); setJavaDoc(ElementJavadoc.create(compilationController, element)); } }, true);
public void run(CompilationController co) throws Exception { co.toPhase(JavaSource.Phase.RESOLVED); CompilationUnitTree cut = co.getCompilationUnit(); if(!cut.getTypeDecls().isEmpty()){ treePathHandle = TreePathHandle.create(TreePath.getPath(cut, cut.getTypeDecls().get(0)), co); } } }, false);
public void run(CompilationController co) throws Exception { co.toPhase(JavaSource.Phase.RESOLVED); CompilationUnitTree cut = co.getCompilationUnit(); if (cut.getTypeDecls().isEmpty()){ return; } result[0] = TreePathHandle.create(TreePath.getPath(cut, cut.getTypeDecls().get(0)), co); }
@Override public void run(CompilationController controller) throws IOException { controller.toPhase(JavaSource.Phase.ELEMENTS_RESOLVED); TypeElement typeElement = controller.getElements().getTypeElement(className); if (typeElement != null) { result[0] = SourceUtils.getFile(ElementHandle.create(typeElement), controller.getClasspathInfo()); } } }, true);
public void run(CompilationController cc) throws Exception { cc.toPhase(Phase.ELEMENTS_RESOLVED); if (eh != null) { TypeElement e = eh.resolve(cc); if (e != null && isAccessibleClass(e)) { delegate = SpringXMLConfigCompletionItem.createTypeItem(substitutionOffset, e, eh, cc.getElements().isDeprecated(e), true); } eh = null; } } }, true);
@Override public @NonNull JavaSource.Phase toPhase(@NonNull JavaSource.Phase phase) throws IOException { //checkConfinement() called by super JavaSource.Phase result = super.toPhase(phase); if (result.compareTo(JavaSource.Phase.PARSED) >= 0) { init(); } return result; }
@Override public void run(CompilationController controller) throws Exception { controller.toPhase(JavaSource.Phase.ELEMENTS_RESOLVED); Element element = handles[0].resolve(controller); Trees trees = controller.getTrees(); Tree tree = trees.getTree(element); SourcePositions sourcePositions = trees.getSourcePositions(); offset[0] = (int) sourcePositions.getStartPosition(controller.getCompilationUnit(), tree); } }, true);