Examples of Effects


Examples of com.google.gwt.query.client.plugins.Effects

      }
    });
    $(".note").click(lazy().fadeOut().done());
    $(".note").append(" Hello");

    final Effects a = $(".a, .b > div:nth-child(2)").as(Effects.Effects);
    final Effects b = $(".b > div:nth-child(odd)").as(Effects.Effects);

    $("#b0").width(150).css(CSS.FONT_SIZE.with(Length.px(10))).toggle(new Function() {
      public void f(Element e) {
        $("#b0").as(Effects.Effects).animate(" width: '400', opacity: '0.4', marginLeft: '0.6in', fontSize: '24px'");
      }
    }, new Function() {
      public void f(Element e) {
        $("#b0").as(Effects.Effects).animate(" width: '150', opacity: '1', marginLeft: '0', fontSize: '10px'");
      }
    });

    $("#b1").toggle(new Function() {
      public void f(Element e) {
        $(".a").toggle();
      }
    }, new Function() {
      public void f(Element e) {
        a.fadeOut();
      }
    }, new Function() {
      public void f(Element e) {
        a.fadeIn();
      }
    }, new Function() {
      public void f(Element e) {
        a.slideUp();
      }
    }, new Function() {
      public void f(Element e) {
        a.slideDown();
      }
    }, new Function() {
      public void f(Element e) {
        a.slideLeft();
      }
    }, new Function() {
      public void f(Element e) {
        a.slideRight();
      }
    }, new Function() {
      public void f(Element e) {
        a.animate("left: '+=300', width: 'hide'");
      }
    }, new Function() {
      public void f(Element e) {
        a.animate("left: '-=300', width: 'show'");
      }
    });

    $("#b2").toggle(new Function() {
      public void f(Element e) {
        b.as(Effects.Effects).clipUp();
      }
    }, new Function() {
      public void f(Element e) {
        b.as(Effects.Effects).clipDown();
      }
    }, new Function() {
      public void f(Element e) {
        b.as(Effects.Effects).clipDisappear();
      }
    }, new Function() {
      public void f(Element e) {
        b.as(Effects.Effects).clipAppear();
      }
    });

  }
View Full Code Here

Examples of joust.analysers.sideeffects.Effects

        protected AJCLiteral(JCLiteral tree) {
            super(tree);

            tree.value = sanitiseLiteralValue(tree.typetag, tree.value);
            decoratedTree = tree;
            effects = new Effects(EffectSet.NO_EFFECTS);
        }
View Full Code Here

Examples of joust.analysers.sideeffects.Effects

     * @return The corresponding EffectSet memory, or the set of all effects if no such EffectSet is found.
     */
    public static Effects getEffectsForMethod(MethodSymbol sym) {
        String symbolHash = MethodInfo.getHashForMethod(sym);

        Effects effects = methodEffectMap.get(symbolHash);
        if (effects != null) {
            return effects;
        }

        log.debug("Unable to source side effects for method: {}. This will harm optimisation - such calls are taken to have all possible side effects!", sym);
        return new Effects(EffectSet.ALL_EFFECTS, EffectSet.ALL_EFFECTS);
    }
View Full Code Here

Examples of joust.analysers.sideeffects.Effects

     * An expression that does nothing.
     */
    public static class AJCEmptyExpression extends AJCExpressionTree {
        protected AJCEmptyExpression() {
            super(null);
            effects = new Effects(EffectSet.NO_EFFECTS);
        }
View Full Code Here

Examples of joust.analysers.sideeffects.Effects

        @Delegate @Getter private final JCSkip decoratedTree;

        protected AJCSkip(JCSkip tree) {
            super(tree);
            decoratedTree = tree;
            effects = new Effects(EffectSet.NO_EFFECTS);
        }
View Full Code Here

Examples of joust.analysers.sideeffects.Effects

        if (that instanceof AJCEffectAnnotatedTree) {
            AJCEffectAnnotatedTree cast = (AJCEffectAnnotatedTree) that;
            // Disconnect it from the effect dependency tree.
            cast.effects.deps = null;
            cast.effects.dependantOnThis = null;
            cast.effects = new Effects(EffectSet.ALL_EFFECTS);
        }

        super.visit(that);
    }
View Full Code Here

Examples of joust.analysers.sideeffects.Effects

    @Override
    public Effects read(Kryo kryo, Input input, Class<Effects> effectsClass) {
        EffectSet directPart = kryo.readObject(input, EffectSet.class);
        EffectSet computedPart = kryo.readObject(input, EffectSet.class);

        Effects ret = new Effects(computedPart, directPart);

        return ret;
    }
View Full Code Here

Examples of joust.analysers.sideeffects.Effects

public class VisitorResultPurger extends AJCTreeVisitor {
    @Override
    public void visit(AJCTree that) {
        if (that instanceof AJCEffectAnnotatedTree) {
            AJCEffectAnnotatedTree cast = (AJCEffectAnnotatedTree) that;
            cast.effects = new Effects(EffectSet.ALL_EFFECTS);
            cast.liveVariables = null;
        }

        super.visit(that);
    }
View Full Code Here

Examples of mage.abilities.effects.Effects

    this.abilityType = abilityType;
    this.zone = zone;
    this.manaCosts = new ManaCostsImpl<ManaCost>();
    this.costs = new CostsImpl<Cost>();
    this.optionalCosts = new CostsImpl<Cost>();
    this.effects = new Effects();
    this.targets = new Targets();
    this.choices = new Choices();
  }
View Full Code Here

Examples of mage.abilities.effects.Effects

    return effects;
  }

  @Override
  public Effects getEffects(EffectType effectType) {
    Effects typedEffects = new Effects();
    for (Effect effect: effects) {
      if (effect.getEffectType() == effectType) {
        typedEffects.add(effect);
      }
    }
    return typedEffects;
  }
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.