Examples of apply()


Examples of org.openquark.cal.internal.runtime.lecc.RTValue.apply()

        final RTRecordValue inputRecord = (RTRecordValue) record;
        RTValue result = generator;
        for (int i = 0, nFields = recordDict.getNFields(); i < nFields; ++i) {
            RTValue elem = inputRecord.getNthValue(i);
            RTValue fieldDict = recordDict.getNthValue(i);
            result = fieldDict.apply( indexOfCoArbitraryClassMethod, elem, result).evaluate($ec);
       }

        return result;
    }
View Full Code Here

Examples of org.parse4j.operation.IncrementFieldOperation.apply()

 
  public void increment(String key, Number amount) {
   
    IncrementFieldOperation operation = new IncrementFieldOperation(amount);
    Object oldValue = data.get(key);
    Object newValue = operation.apply(oldValue, this, key);
    data.put(key, newValue);
    operations.put(key, operation);
    dirtyKeys.add(key);
    isDirty = true;   
   
View Full Code Here

Examples of org.pdfclown.documents.interaction.forms.styles.DefaultStyle.apply()

        "okButton",
        fieldWidget,
        "Push" // Current value.
        ); // 4.1. Field instantiation.
      fields.add(field); // 4.2. Field insertion into the fields collection.
      fieldStyle.apply(field); // 4.3. Appearance style applied.

      {
        BlockComposer blockComposer = new BlockComposer(composer);
        blockComposer.begin(new Rectangle2D.Double(296,50,page.getSize().getWidth()-336,36),AlignmentXEnum.Left,AlignmentYEnum.Middle);
        composer.setFont(composer.getState().getFont(),7);
View Full Code Here

Examples of org.pokenet.server.battle.mechanics.statuses.StatusEffect.apply()

    StatusEffect applied = (StatusEffect) eff.clone();
    applied.activate();
    applied.setInducer(source);
    if ((m_field != null) && !allowsStatus(applied, source)) return null;

    if (applied.apply(this)) {
      m_statuses.add(applied);
      if (m_field != null) {
        m_field.informStatusApplied(this, applied);
      }
      informStatusListeners(source, applied, true);
View Full Code Here

Examples of org.pokenet.server.battle.mechanics.statuses.field.FieldEffect.apply()

        public boolean switchOut(Pokemon p) {
            p.setAbility(null, true);
            BattleField field = p.getField();
            FieldEffect eff = field.getEffectByType(WeatherEffect.class);
            if (eff != null) {
                eff.apply(p);
                eff.apply(p.getOpponent());
            }
            return super.switchOut(p);
        }
    }
View Full Code Here

Examples of org.pokenet.server.battle.mechanics.statuses.items.HoldItem.apply()

          }
          public void unapply(Pokemon p) {
            HoldItem item = p.getItem();
            if ((item != null) && !item.isRemovable()) {
              item.activate();
              item.apply(p);
            }
          }
          public String getName() {
            return "Embargo";
          }
View Full Code Here

Examples of org.reflections.util.FilterBuilder.apply()

public class FilterBuilderTest {

  @Test
  public void test_include() {
      FilterBuilder filter = new FilterBuilder().include("org\\.reflections.*");
      assertTrue(filter.apply("org.reflections.Reflections"));
      assertTrue(filter.apply("org.reflections.foo.Reflections"));
      assertFalse(filter.apply("org.foobar.Reflections"));
  }

    @Test
View Full Code Here

Examples of org.rstudio.studio.client.workbench.views.source.editors.text.DocDisplay.AnchoredSelection.apply()

     
      // execute the command
      command.execute();
     
      // restore the selection and scroll position
      anchoredSelection.apply();
      docDisplay_.scrollToY(scrollPosition);
   }

   private void executeSweaveChunk(Scope chunk, boolean scrollNearTop)
   {
View Full Code Here

Examples of org.skife.jdbi.v2.tweak.Argument.apply()

        public void bind(Binding params, PreparedStatement statement) throws SQLException
        {
            for (int i = 0; ; i++) {
                final Argument s = params.forPosition(i);
                if (s == null) { break; }
                s.apply(i + 1, statement, this.context);
            }
        }

        public String getSql()
        {
View Full Code Here

Examples of org.sonar.api.batch.fs.FilePredicate.apply()

  @Test
  public void key() throws Exception {
    FilePredicate predicate = new AdditionalFilePredicates.KeyPredicate("struts:Action.java");

    DefaultInputFile inputFile = new DeprecatedDefaultInputFile("struts", "Action.java");
    assertThat(predicate.apply(inputFile)).isTrue();

    inputFile = new DeprecatedDefaultInputFile("struts", "Filter.java");
    assertThat(predicate.apply(inputFile)).isFalse();
  }
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.