Examples of accept()


Examples of com.insightfullogic.honest_profiler.core.filters.ProfileFilter.accept()

            if (filterDescription != null) {
                ProfileFilter filter = new ProfileFilter();
                filter.updateFilters(filterDescription);
                listener = profile -> {
                    filter.accept(profile);
                    ui.accept(profile);
                };
            }

            output.stream().println("Printing Profile for: " + logLocation.getAbsolutePath());
View Full Code Here

Examples of com.intellij.plugins.haxe.lang.psi.HaxeExpression.accept()

  @Override
  public PsiElement createDeclaration(HaxeIntroduceOperation operation) {
    final Project project = operation.getProject();
    final HaxeExpression initializer = operation.getInitializer();
    InitializerTextBuilder builder = new InitializerTextBuilder();
    initializer.accept(builder);
    String assignmentText = "public static inline var " + operation.getName() + " = " + builder.result() + ";";
    PsiElement anchor = operation.isReplaceAll()
                        ? findAnchor(operation.getOccurrences())
                        : findAnchor(initializer);
    return createDeclaration(project, assignmentText, anchor);
View Full Code Here

Examples of com.intellij.psi.PsiDirectory.accept()

      return new NullableComputable<String>() {
        @Nullable
        @Override
        public String compute() {
          dir.accept(new PsiElementVisitor() {
            @Override
            public void visitFile(final PsiFile file) {
              if (file instanceof GherkinFile) {
                for (CucumberJvmExtensionPoint extension : extensions) {
                  extension.getGlues((GherkinFile)file, glues);
View Full Code Here

Examples of com.intellij.psi.PsiElement.accept()

    final String head = functionCall.getHead().getText();
    if (head.matches("Set|SetDelayed")) {
      final PsiElement lhs = functionCall.getArgument(1);
      if (lhs != null) {
        final SetDefinitionSymbolVisitor visitor = new SetDefinitionSymbolVisitor(lhs);
        lhs.accept(visitor);
        cacheAssignedSymbols(visitor.getUnboundSymbols());
      }
    } else if (head.matches("TagSet|TagSetDelayed|SetAttributes|SetOptions")) {
      final PsiElement arg1 = functionCall.getArgument(1);
      if (arg1 instanceof Symbol) {
View Full Code Here

Examples of com.intellij.psi.PsiFile.accept()

    if (!parameters.isExtendedCompletion()) {
      final PsiFile containingFile = parameters.getOriginalFile();
      List<Symbol> variants = Lists.newArrayList();

      GlobalDefinitionCompletionProvider visitor = new GlobalDefinitionCompletionProvider();
      containingFile.accept(visitor);
      for (String name : visitor.getFunctionsNames()) {
        if (!NAMES.contains(name)) {
          result.addElement(PrioritizedLookupElement.withPriority(LookupElementBuilder.create(name), GLOBAL_VARIABLE_PRIORITY));
        }
      }
View Full Code Here

Examples of com.itstherules.stream.filefilter.ItemsFilter.accept()

  private List<File> values(File baseDirectory) throws FileNotFoundException {
    List<File> result = new ArrayList<File>();
    for (File file : baseDirectory.listFiles()) {
      ItemsFilter itemsFilter = new ItemsFilter(extensions);
      if (itemsFilter.accept(file)) {
        result.add(file.getAbsoluteFile());
      }
      if (file.isDirectory()) {
        List<File> deeperList = values(file.getAbsoluteFile());
        result.addAll(deeperList);
View Full Code Here

Examples of com.litecoding.smali2java.parser.Rule.accept()

      out.append("\n"); //fix for the bug than .end method ends by EOF but not CRLF
      in.close();
   
    Rule classrule = Parser.parse("smali", out.toString());
    SmaliClass smaliClass = (SmaliClass)classrule.accept(new SmaliClassBuilder());
    classes.put(smaliClass.getClassName(), smaliClass);
   
    System.out.println(ClassRenderer.renderObject(smaliClass));
  }
 
View Full Code Here

Examples of com.mountainminds.eclemma.core.IExecutionDataSource.accept()

  public void testAccept() throws IOException, CoreException {
    final IExecutionDataSource source = createValidSource();

    SessionInfoStore sessionStore = new SessionInfoStore();
    ExecutionDataStore execStore = new ExecutionDataStore();
    source.accept(execStore, sessionStore);

    assertEquals(1, sessionStore.getInfos().size());
    assertEquals("MyClass", execStore.get(123).getName());
  }
View Full Code Here

Examples of com.mucommander.commons.file.filter.FilenameFilter.accept()

        rowCount   = tableModel.getRowCount();
        mark       = !tableModel.isRowMarked(fileTable.getSelectedRow());

        // Goes through all files in the active table, marking all that match 'filter'.
        for(int i = tableModel.getFirstMarkableRow(); i < rowCount; i++)
            if(filter.accept(tableModel.getCachedFileAtRow(i)))
                tableModel.setRowMarked(i, mark);
        fileTable.repaint();

        // Notify registered listeners that currently marked files have changed on the FileTable
        fileTable.fireMarkedFilesChangedEvent();
View Full Code Here

Examples of com.odiago.flumebase.parser.AliasedExpr.accept()

  protected void visit(SelectStmt s) throws VisitException {
    List<AliasedExpr> exprs = s.getSelectExprs();
    for (int i = 0; i < exprs.size(); i++) {
      AliasedExpr e = exprs.get(i);
      before(s, e);
      e.accept(this);
      after(s, e);
    }

    before(s, s.getSource());
    s.getSource().accept(this);
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.