Examples of Transformable


Examples of edu.cmu.cs.stage3.alice.core.Transformable

  }
  public void mousePressed( java.awt.event.MouseEvent mouseEvent ) {
    updateDetails( mouseEvent );
    if( isEnabled.booleanValue() ) {
      if( checkModifierMask( mouseEvent ) ) {
        Transformable onWhatValue = onWhat.getTransformableValue();
        boolean success;
        if( onWhatValue!=null ) {
          edu.cmu.cs.stage3.alice.scenegraph.renderer.PickInfo pickInfo = RenderTarget.pick( mouseEvent );
          if( pickInfo.getCount()>0 ) {
            Model model = (Model)( pickInfo.getVisualAt( 0 ).getBonus() );
            success = onWhatValue == model || onWhatValue.isAncestorOf( model );
          } else {
            success = false;
          }
        } else {
          success = true;
View Full Code Here

Examples of edu.cmu.cs.stage3.alice.core.Transformable

  public final TransformableProperty toWhom = new TransformableProperty( this, "toWhom", null );
  public class RuntimeSendMessage extends RuntimeResponse {
    public void prologue( double t ) {
      super.prologue( t );
      String messageValue = SendMessage.this.message.getStringValue();
      Transformable fromWhoValue = SendMessage.this.fromWho.getTransformableValue();
      Transformable toWhomValue = SendMessage.this.toWhom.getTransformableValue();
      World world = getWorld();
      if( world!=null ) {
        world.sendMessage( SendMessage.this, messageValue, fromWhoValue, toWhomValue, System.currentTimeMillis() );
      }
    }
View Full Code Here

Examples of org.infinispan.query.Transformable

      }
      return transformerClass;
   }

   private Class<? extends Transformer> getTransformerClassFromAnnotation(Class<?> keyClass) {
      Transformable annotation = keyClass.getAnnotation(Transformable.class);
      if (annotation!=null) {
         return annotation.transformer();
      }
      return null;
   }
View Full Code Here

Examples of org.infinispan.query.Transformable

    * @return a Transformer for this key, or null if the key type is not properly annotated.
    * @throws IllegalAccessException if a Transformer instance cannot be created vai reflection.
    * @throws InstantiationException if a Transformer instance cannot be created vai reflection.
    */
   private static Transformer getTransformer(Class<?> keyClass) {
      Transformable t = keyClass.getAnnotation(Transformable.class);
      Transformer tf = null;
      if (t != null) try {
         tf = t.transformer().newInstance();
      } catch (Exception e) {
         log.error("Cannot instantiate an instance of Transformer class " + t.transformer() + "!", e);
      }
      return tf;
   }
View Full Code Here

Examples of org.infinispan.query.Transformable

      }
      return transformerClass;
   }

   private Class<? extends Transformer> getTransformerClassFromAnnotation(Class<?> keyClass) {
      Transformable annotation = keyClass.getAnnotation(Transformable.class);
      if (annotation!=null) {
         return annotation.transformer();
      }
      return null;
   }
View Full Code Here

Examples of org.infinispan.query.Transformable

    * @return a Transformer for this key, or null if the key type is not properly annotated.
    * @throws IllegalAccessException if a Transformer instance cannot be created vai reflection.
    * @throws InstantiationException if a Transformer instance cannot be created vai reflection.
    */
   private static Transformer getTransformer(Class<?> keyClass) {
      Transformable t = keyClass.getAnnotation(Transformable.class);
      Transformer tf = null;
      if (t != null) try {
         tf = t.transformer().newInstance();
      } catch (Exception e) {
         log.error("Cannot instantiate an instance of Transformer class " + t.transformer() + "!", e);
      }
      return tf;
   }
View Full Code Here

Examples of org.infinispan.query.Transformable

    * @return a Transformer for this key, or null if the key type is not properly annotated.
    * @throws IllegalAccessException if a Transformer instance cannot be created via reflection.
    * @throws InstantiationException if a Transformer instance cannot be created via reflection.
    */
   private static Transformer getTransformer(Class<?> keyClass) {
      Transformable t = keyClass.getAnnotation(Transformable.class);
      Transformer tf = null;
      if (t != null) try {
         // The cast should not be necessary but it's workaround for a compiler bug.
         tf = (Transformer) t.transformer().newInstance();
      } catch (Exception e) {
         log.couldNotInstantiaterTransformerClass(t.transformer(), e);
      }
      return tf;
   }
View Full Code Here

Examples of org.infinispan.query.Transformable

      }
      return transformerClass;
   }

   private Class<? extends Transformer> getTransformerClassFromAnnotation(Class<?> keyClass) {
      Transformable annotation = keyClass.getAnnotation(Transformable.class);
      if (annotation!=null) {
         return annotation.transformer();
      }
      return null;
   }
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.