Examples of accept()


Examples of org.drools.marshalling.ObjectMarshallingStrategy.accept()

            if(object != null){
                stream.writeUTF(key);
                int index = context.objectMarshallingStrategyStore.getStrategy(object);
                stream.writeInt(index);
                ObjectMarshallingStrategy strategy = context.objectMarshallingStrategyStore.getStrategy(index);
                if(strategy.accept(object)){
                    strategy.write(stream, object);
                }
            }
           
        }   
View Full Code Here

Examples of org.drools.repository.RepositoryFilter.accept()

        int count = 0;
        while ( it.hasNext() ) {

            AssetItem archived = (AssetItem) it.next();

            if ( filter.accept( archived,
                                "read" ) ) {
                result.add( createArchivedRow( archived ) );
                count++;
            }
            if ( count == numRows ) {
View Full Code Here

Examples of org.eclipse.aether.graph.DependencyNode.accept()

        DependencyNode root =
            pluginDependenciesResolver.resolve( extensionPlugin, null, null, repositories,
                                                request.getRepositorySession() );

        PreorderNodeListGenerator nlg = new PreorderNodeListGenerator();
        root.accept( nlg );
        return nlg.getArtifacts( false );
    }

    public void selectProjectRealm( MavenProject project )
    {
View Full Code Here

Examples of org.eclipse.birt.report.engine.layout.area.IArea.accept()

        startContainer(containerArea);

        Iterator iter = containerArea.getChildren();
        while (iter.hasNext()) {
            IArea child = (IArea) iter.next();
            child.accept(this);
        }

        endContainer(containerArea);
    }
View Full Code Here

Examples of org.eclipse.cdt.core.dom.ast.IASTDeclSpecifier.accept()

  }

  private void writeFunctionDefinition(final IASTFunctionDefinition funcDef) {
    final IASTDeclSpecifier declSpecifier = funcDef.getDeclSpecifier();
    if (declSpecifier != null) {
      declSpecifier.accept(visitor);
    }
    if (declSpecifier instanceof IASTSimpleDeclSpecifier) {
      final IASTSimpleDeclSpecifier simDeclSpec = (IASTSimpleDeclSpecifier) declSpecifier;
      if (simDeclSpec.getType() != IASTSimpleDeclSpecifier.t_unspecified) {
        visitor.setSpaceNeededBeforeName(true);
View Full Code Here

Examples of org.eclipse.cdt.core.dom.ast.IASTDeclaration.accept()

      final IASTDeclaration cppConditionDeclaration = cppForStatment.getConditionDeclaration();
      if (cppConditionDeclaration == null) {
        visitNodeIfNotNull(cppForStatment.getConditionExpression());
        scribe.printSemicolon();
      } else {
        cppConditionDeclaration.accept(visitor);
      }
    } else {
      if (forStatement.getConditionExpression() != null) {
        forStatement.getConditionExpression().accept(visitor);
        scribe.printSemicolon();
View Full Code Here

Examples of org.eclipse.cdt.core.dom.ast.IASTDeclarator.accept()

      }
    } else {
      visitor.setSpaceNeededBeforeName(true);
    }
    final IASTDeclarator declarator = ASTQueries.findOutermostDeclarator(funcDef.getDeclarator());
    declarator.accept(visitor);

    if (funcDef instanceof ICPPASTFunctionWithTryBlock) {
      scribe.newLine();
      scribe.print(Keywords.TRY);
    }
View Full Code Here

Examples of org.eclipse.cdt.core.dom.ast.IASTExpression.accept()

    enumerator.getName().accept(visitor);

    final IASTExpression value = enumerator.getValue();
    if (value != null) {
      scribe.print(EQUALS);
      value.accept(visitor);
    }
  }

  private void writeCompositeTypeSpecifier(final IASTCompositeTypeSpecifier compDeclSpec) {
    boolean hasTrailingComments = hasTrailingComments(compDeclSpec.getName());
View Full Code Here

Examples of org.eclipse.cdt.core.dom.ast.IASTInitializer.accept()

    final IASTTypeId typeId = newExp.getTypeId();
    visitNodeIfNotNull(typeId);

    final IASTInitializer initExp = getNewInitializer(newExp);
    if (initExp != null) {
      initExp.accept(visitor);
    }
  }

  protected IASTInitializer getNewInitializer(final ICPPASTNewExpression newExp) {
    return newExp.getInitializer();
View Full Code Here

Examples of org.eclipse.cdt.core.dom.ast.IASTInitializerClause.accept()

  private void writeEqualsInitializer(final IASTEqualsInitializer initializer) {
    scribe.print(EQUALS);
    final IASTInitializerClause init = initializer.getInitializerClause();
    if (init != null) {
      init.accept(visitor);
    }
  }

  private void writeConstructorChainInitializer(final ICPPASTConstructorChainInitializer initializer) {
    initializer.getMemberInitializerId().accept(visitor);
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.