Package org.eclipse.php.internal.core.compiler.ast.nodes

Examples of org.eclipse.php.internal.core.compiler.ast.nodes.FullyQualifiedReference


            for (Object o : currentClass.getSuperClasses().getChilds()) {

                if (o instanceof FullyQualifiedReference) {

                    FullyQualifiedReference superReference = (FullyQualifiedReference) o;
                    String ns = getUseStatement(superReference.getName());

                    if (ns != null) {
                        String fqcn = ns + "\\" + superReference.getName();
                        boolean isTestOrFixture = false;
                        if (namespace != null && namespace.getName() != null) {
                            isTestOrFixture = namespace.getName().contains("Test") || namespace.getName().contains("Fixtures");
                        }

                        // we got a bundle definition, index it
                        if (fqcn.equals(SymfonyCoreConstants.BUNDLE_FQCN) && ! isTestOrFixture) {
                            int length = (currentClass.sourceEnd() - currentClass.sourceEnd());
                            JSONObject meta = JsonUtils.createBundle(sourceModule, currentClass, namespace);
                            ReferenceInfo info = new ReferenceInfo(ISymfonyModelElement.BUNDLE, currentClass.sourceStart(), length, currentClass.getName(), meta.toJSONString(), namespace.getName());
                            requestor.addReference(info);
                        }
                    }

                    //TODO: Check against an implementation of Symfony\Component\DependencyInjection\ContainerAwareInterface
                    //
                    // see http://symfony.com/doc/current/cookbook/bundles/best_practices.html#controllers
                    // and http://api.symfony.com/2.0/Symfony/Component/DependencyInjection/ContainerAwareInterface.html
                    if (superReference.getName().equals(SymfonyCoreConstants.CONTROLLER_CLASS)) {
                        inController = true;
                        // the ControllerIndexer does the actual work of parsing the
                        // the relevant elements inside the controller
                        // which are then being collected in the endVisit() method
                        controllerIndexer = new TemplateVariableVisitor(useStatements, namespace, sourceModule);
View Full Code Here


        boolean found = false;

        for (UseStatement statement : useStatements) {
            for (UsePart part : statement.getParts()) {
                SimpleReference alias = part.getAlias();
                FullyQualifiedReference namespace = part.getNamespace();

                //statement has no alias and classname no namespace, simply
                // compare them to each other
                if (alias == null && annotationNamespace.length() == 0) {

                    if (namespace.getName().equals(annotationClass)) {
                        found = true;
                    }

                    /*
                    * something like
View Full Code Here

TOP

Related Classes of org.eclipse.php.internal.core.compiler.ast.nodes.FullyQualifiedReference

Copyright © 2018 www.massapicom. 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.