Examples of AstDfn


Examples of org.netbeans.api.language.util.ast.AstDfn

                    return null;
//                    }
                } else {
                    if (!hasMainClassFromTest) {
                        if (mainClasses.size() == 1) {
                            final AstDfn next = mainClasses.iterator().next();
                            //Just one main class, resolve from the symbol
                            clazz = next.qualifiedName();
                        } else {
                            //Several main classes, let the user choose
                            clazz = showMainClassWarning(file, mainClasses);
                            if (clazz == null) {
                                return null;
View Full Code Here

Examples of org.netbeans.api.language.util.ast.AstDfn

                        rootScope.visibleDfns(ElementKind.CLASS);
                        scala.collection.Seq<AstDfn> tmpls = rootScope.visibleDfns(ElementKind.CLASS);
                        if (!tmpls.isEmpty()) {
                            scala.collection.Iterator itr = tmpls.iterator();
                            while (itr.hasNext()) {
                                AstDfn tmpl = (AstDfn) itr.next();
                                if (classes[0].length() > 0) {
                                    classes[0] = classes[0] + " ";            // NOI18N
                                }
                                classes[0] = classes[0] + tmpl.getName().toString().replace('.', '/') + "*.class"// NOI18N
                            }
                        }
                    }
                });
            } catch (ParseException ex) {
View Full Code Here

Examples of org.netbeans.api.language.util.ast.AstDfn

                            }

                            scala.collection.Seq<AstDfn> objs = null;
                            scala.collection.Iterator<AstDfn> itr = rootScope.visibleDfns(ElementKind.PACKAGE).iterator();
                            while (itr.hasNext()) {
                                AstDfn packaging = itr.next();
                                objs = packaging.bindingScope().visibleDfns(ElementKind.CLASS);
                                break;
                            }
                            if (objs == null) {
                                objs = rootScope.visibleDfns(ElementKind.CLASS);
                            }
                            AstDfn mainClass = null;
                            itr = objs.iterator();
                            while (itr.hasNext()) {
                                AstDfn obj = itr.next();
                                if (obj.qualifiedName().equals(mainClassName)) {
                                    mainClass = obj;
                                    break;
                                }
                            }
                            if (mainClass != null) {
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.