Examples of accept()


Examples of org.apache.olingo.odata2.api.uri.expression.OrderByExpression.accept()

      final OrderByExpression orderBy = uriInfo.getOrderBy();
      if (orderBy != null) {
        String orderByString;
        try {
          orderByString = (String) orderBy.accept(new JsonVisitor());
        } catch (final ExceptionVisitExpression e) {
          orderByString = null;
        } catch (final ODataApplicationException e) {
          orderByString = null;
        }
View Full Code Here

Examples of org.apache.openejb.asm.ClassReader.accept()

        Map<Method, List<String>>  methodParameters = new HashMap<Method, List<String>>();
        try {
            ClassReader reader = AsmParameterNameLoader.createClassReader(clazz);

            AsmParameterNameLoader.AllParameterNamesDiscoveringVisitor visitor = new AsmParameterNameLoader.AllParameterNamesDiscoveringVisitor(clazz, methodName);
            reader.accept(visitor, 0);

            Map exceptions = visitor.getExceptions();
            if (exceptions.size() == 1) {
                throw new RuntimeException((Exception) exceptions.values().iterator().next());
            }
View Full Code Here

Examples of org.apache.openejb.classloader.ClassLoaderConfigurer.accept()

        final ClassLoaderConfigurer configurer = ClassLoaderUtil.configurer(appInfo.appId);
        if (configurer != null) {
            final Iterator<URL> it = jars.iterator();
            while (it.hasNext()) {
                if (!configurer.accept(it.next())) {
                    it.remove();
                }
            }
            jars.addAll(Arrays.asList(configurer.additionalURLs()));
        }
View Full Code Here

Examples of org.apache.oro.io.GlobFilenameFilter.accept()

        for (Iterator iterator = ignoreFiles.iterator(); iterator.hasNext(); ) {
            GlobFilenameFilter pattern = (GlobFilenameFilter) iterator.next();

            // We have to use a little tweak here, since GlobFilenameFilter only matches the filename, but not
            // the path, so we use the complete path as the 'filename'-argument.
            if (pattern.accept(file, path)) {
                return true;
            }
        }
        return false;
    }
View Full Code Here

Examples of org.apache.pdfbox.cos.COSBase.accept()

                        addObjectToWrite( current );
                        writeReference( current );
                    }
                    else
                    {
                        subValue.accept( this );
                    }
                }
                else if( current == null )
                {
                    COSNull.NULL.accept( this );
View Full Code Here

Examples of org.apache.pdfbox.cos.COSDictionary.accept()

        if (catalog != null)
        {
            trailer.setItem(COSName.getPDFName("Root"), catalog);
        }
        */
        trailer.accept(this);

        getStandardOutput().write(STARTXREF);
        getStandardOutput().writeEOL();
        getStandardOutput().write(String.valueOf(getStartxref()).getBytes());
        getStandardOutput().writeEOL();
View Full Code Here

Examples of org.apache.pdfbox.cos.COSDocument.accept()

                objectKeys.put( object, key );
                maxNumber = Math.max( key.getNumber(), maxNumber );
                setNumber( maxNumber );
            }
        }*/
        cosDoc.accept(this);
    }
}
View Full Code Here

Examples of org.apache.pdfbox.cos.COSName.accept()

            {
                COSName name = (COSName) i.next();
                COSBase value = obj.getItem(name);
                if (value != null)
                {
                    name.accept(this);
                    getStandardOutput().write(SPACE);
                    if( value instanceof COSDictionary )
                    {
                        addObjectToWrite( value );
                        writeReference( value );
View Full Code Here

Examples of org.apache.pdfbox.cos.COSString.accept()

            }
            else if( current instanceof COSString )
            {
                COSString copy = new COSString();
                copy.append(((COSString)current).getBytes());
                copy.accept(this);
            }
            else
            {
                current.accept(this);
            }
View Full Code Here

Examples of org.apache.phoenix.expression.Expression.accept()

            final Set<SingleAggregateFunction> aggFuncSet = Sets.newHashSetWithExpectedSize(context.getExpressionManager().getExpressionCount());
   
            Iterator<Expression> expressions = context.getExpressionManager().getExpressions();
            while (expressions.hasNext()) {
                Expression expression = expressions.next();
                expression.accept(new SingleAggregateFunctionVisitor() {
                    @Override
                    public Iterator<Expression> visitEnter(SingleAggregateFunction function) {
                        aggFuncSet.add(function);
                        return Iterators.emptyIterator();
                    }
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.