Examples of visit()


Examples of com.redhat.ceylon.compiler.typechecker.tree.Node.visit()

   
    private Tree.DocLink findDocLink(final String docLinkText, Referenceable referenceable) {
        final Tree.DocLink[] docLinks = new Tree.DocLink[1];
        Node scopeNode = ceylonDocTool.getNode(referenceable);
        if (scopeNode != null) {
            scopeNode.visit(new Visitor() {
                @Override
                public void visit(Tree.DocLink docLink) {
                    String s1 = normalizeSpaces(docLinkText);
                    String s2 = normalizeSpaces(docLink.getText());
                    if (s1.equals(s2)) {
View Full Code Here

Examples of com.redhat.ceylon.compiler.typechecker.tree.Tree.CompilationUnit.visit()

            // Unfortunately doing it like this
            final Map<String, List<String>> testMethods = new TreeMap<String, List<String>>();

            for (PhasedUnit pu : phasedUnits.getPhasedUnits()) {
                CompilationUnit cu = pu.getCompilationUnit();
                cu.visit(new Visitor() {
                    private String testClassName = null;
                    @Override
                    public void visit(Declaration that) {
                        if (that instanceof AnyClass
                                && ((AnyClass)that).getDeclarationModel().getName().endsWith("Test")
View Full Code Here

Examples of com.redhat.ceylon.compiler.typechecker.tree.Tree.Expression.visit()

                    gen.initSelf(that);
                    gen.out("return ");
                    Expression expr = that.getSpecifierOrInitializerExpression().getExpression();
                    if (!gen.isNaturalLiteral(expr.getTerm())) {
                        final int boxType = gen.boxStart(expr.getTerm());
                        expr.visit(gen);
                        gen.endLine(true);
                        if (boxType == 4) gen.out("/*TODO: callable targs 3*/");
                        gen.boxUnboxEnd(boxType);
                    }
                    gen.endBlock();
View Full Code Here

Examples of com.redhat.ceylon.compiler.typechecker.tree.Tree.PositionalArgument.visit()

                Tree.BaseTypeExpression bte = (Tree.BaseTypeExpression)primary;
                if (exprGen.typeFact().getByteDeclaration().equals(bte.getDeclaration())) {
                    // Special case for "Byte(x)" where we make use of the fact that it looks
                    // like an annotation class instantiation but is in fact a byte literal
                    PositionalArgument arg = invocation.getPositionalArgumentList().getPositionalArguments().get(0);
                    arg.visit(this);
                } else {
                    if (!Decl.isAnnotationClass(bte.getDeclaration())) {
                        append(exprGen.makeErroneous(primary, "compiler bug: " + bte.getDeclaration().getName() + " is not an annotation class"));
                    }
                    append(transformInstantiation(exprGen, invocation));
View Full Code Here

Examples of com.redhat.ceylon.compiler.typechecker.tree.Tree.SpecifierExpression.visit()

    @Override public void visit(Tree.MethodDeclaration that) {
        super.visit(that);
        final SpecifierExpression specifier = that.getSpecifierExpression();
        if (specifier != null && specifier instanceof Tree.LazySpecifierExpression) {
            boolean cs = enterCapturingScope();
            specifier.visit(this);
            exitCapturingScope(cs);
        }  
       
    }
View Full Code Here

Examples of com.redhat.ceylon.compiler.typechecker.tree.Tree.SpecifierOrInitializerExpression.visit()

    @Override public void visit(Tree.AttributeDeclaration that) {
        super.visit(that);
        final SpecifierOrInitializerExpression specifier = that.getSpecifierOrInitializerExpression();
        if (specifier != null && specifier instanceof Tree.LazySpecifierExpression) {
            boolean cs = enterCapturingScope();
            specifier.visit(this);
            exitCapturingScope(cs);
        }  
    }
   
    @Override public void visit(Tree.AttributeGetterDefinition that) {
View Full Code Here

Examples of com.salesforce.dataloader.action.visitor.DAOSizeVisitor.visit()

    public static int calculateTotalRows(DataReader dataReader) throws DataAccessObjectException {
        try {
            //visit the rows
            DAOSizeVisitor visitor = new DAOSizeVisitor();
            for (Row row = dataReader.readRow(); isValidRow(row); row = dataReader.readRow()) {
                visitor.visit(row);
            }

            return visitor.getNumberOfRows();
        } catch (DataAccessObjectException daoe) {
            logger.error(Messages.getString("RowUtil.error"), daoe); //$NON-NLS-1$
View Full Code Here

Examples of com.sun.enterprise.deployment.Application.visit()

                
            app.setGeneratedXMLDirectory(
                              moduleScratchDirectory.getAbsolutePath());
            if (!app.getWebServiceDescriptors().isEmpty()) {
            ModuleContentLinker visitor = new ModuleContentLinker(archive);
            app.visit(
                  (com.sun.enterprise.deployment.util.ApplicationVisitor) visitor);
            }
            return app;
        } catch (IOException ioe) {
            logger.log(Level.SEVERE,ioe.toString());
View Full Code Here

Examples of com.sun.enterprise.deployment.ApplicationClientDescriptor.visit()

       
        super.postOpen(descriptor, archive);
       
        ApplicationClientDescriptor appClient = (ApplicationClientDescriptor) descriptor;
        ModuleContentValidator mdv = new ModuleContentValidator(archive);
        appClient.visit(mdv);
    }        

    /**
     * Add this archive to an application archivist
     *
 
View Full Code Here

Examples of com.sun.enterprise.deployment.EjbBundleDescriptor.visit()

        throws IOException
    {
        super.postOpen(descriptor, archive);
        EjbBundleDescriptor ejbBundle = (EjbBundleDescriptor) descriptor;
        ModuleContentValidator mdv = new ModuleContentValidator(archive);
        ejbBundle.visit((EjbBundleVisitor)mdv);
    }
   
    /**
     * validates the DOL Objects associated with this archivist, usually
     * it requires that a class loader being set on this archivist or passed
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.