Examples of accept()


Examples of shapes.common.Shape.accept()

  public void testGroupSimple() {
    Shape s = new Group(
      new Location(200, 100, new Circle(50)),
      new Location(400, 300, new Rectangle(100, 50))
    );
    shapes.common.Location b = s.accept(v);
    shapes.common.Rectangle r = (shapes.common.Rectangle) b.getChild();
    assertEquals(150, b.getX());
    assertEquals(50, b.getY());
    assertEquals(350, r.getWidth());
    assertEquals(300, r.getHeight());
View Full Code Here

Examples of sizzle.parser.syntaxtree.ExprStatement.accept()

  /** {@inheritDoc} */
  @Override
  public SizzleType visit(final ForExprStatement n, final SymbolTable argu) {
    final ExprStatement exprStatement = new ExprStatement(n.f0, n.f1, new NodeToken(";"));

    return exprStatement.accept(this, argu);
  }

  /** {@inheritDoc} */
  @Override
  public SizzleType visit(final IfStatement n, final SymbolTable argu) {
View Full Code Here

Examples of sizzle.parser.syntaxtree.VarDecl.accept()

  /** {@inheritDoc} */
  @Override
  public SizzleType visit(final ForVarDecl n, final SymbolTable argu) {
    final VarDecl varDecl = new VarDecl(n.f0, n.f1, n.f2, n.f3, new NodeToken(";"));

    return varDecl.accept(this, argu);
  }

  /** {@inheritDoc} */
  @Override
  public SizzleType visit(final ForExprStatement n, final SymbolTable argu) {
View Full Code Here

Examples of st.redline.compiler.ast.Block.accept()

        if (blocks.containsKey(name))
            return createBlockInstance(blocks.get(name), context);
        Block block = (Block) blocksToBeCompiled.remove(name);
        if (block == null)
            throw new IllegalStateException("Block to be compiled '" + name + "' not found.");
        block.accept(block.analyser());
        try {
            ProtoObject newblock = (ProtoObject) defineClass(block.classBytes()).newInstance();
            blocks.put(name, newblock);
            return createBlockInstance(newblock, context);
        } catch (Exception e) {
View Full Code Here

Examples of sun.reflect.generics.tree.TypeSignature.accept()

        if (sig.equals("V")) return void.class;
        SignatureParser parser = SignatureParser.make();
        TypeSignature typeSig = parser.parseTypeSig(sig);
        GenericsFactory factory = CoreReflectionFactory.make(container, ClassScope.make(container));
        Reifier reify = Reifier.make(factory);
        typeSig.accept(reify);
        Type result = reify.getResult();
        return toClass(result);
    }
    static Class toClass(Type o) {
        if (o instanceof GenericArrayType)
View Full Code Here

Examples of thredds.crawlabledataset.CrawlableDatasetFilter.accept()

      return;
    }
    for ( Iterator it = crDsList.iterator(); it.hasNext(); )
    {
      CrawlableDataset curCrDs = (CrawlableDataset) it.next();
      if ( oldGribOrNewNcFilter.accept( curCrDs) )
      {
        if ( ! curCrDs.getName().equals( "old.grib1")
             && ! curCrDs.getName().equals( "new.nc"))
        {
          assertTrue( "Matched wrong file <" + curCrDs.getPath() + ">.",
View Full Code Here

Examples of tvbrowser.core.filters.filtercomponents.ChannelFilterComponent.accept()

  private boolean acceptedChannel(final ProgramMenuItem item) {
    ChannelFilterComponent channelGroup = MainFrame.getInstance().getChannelGroup();
    if (channelGroup == null) {
      return true;
    }
    return channelGroup.accept(item.getProgram());
  }

  private int getMaxItemCount() {
    if (Settings.propTrayUseSpecialChannels.getBoolean()) {
      return Settings.propTraySpecialChannels.getChannelArray().length;
View Full Code Here

Examples of uk.org.ogsadai.activity.pipeline.ActivityInput.accept()

        List inputs = desc.getInputs();
        Iterator inputsIt = inputs.iterator();
        while (inputsIt.hasNext()) {
          ActivityInput input = (ActivityInput) inputsIt.next();
          String inputName = input.getInputName();
          input.accept(this);
        }

        List outputs = desc.getOutputs();
        Iterator outputsIt = outputs.iterator();
        while (outputsIt.hasNext()) {
View Full Code Here

Examples of uk.org.ogsadai.activity.pipeline.ActivityOutput.accept()

        List outputs = desc.getOutputs();
        Iterator outputsIt = outputs.iterator();
        while (outputsIt.hasNext()) {
          ActivityOutput output = (ActivityOutput) outputsIt.next();
          String outputName = output.getOutputName();
          output.accept(this);
        }
      }

    }
View Full Code Here

Examples of uk.org.ogsadai.data.DataValue.accept()

          mIsFinished = true;
        }
        else
        {
          DataValue dataValue = mIterator.next();
          dataValue.accept(this);
          checkException();
        }
      }
    }
    catch (Exception e)
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.