Examples of GenericsInformation


Examples of project.gluebooster.objectanalysis.GenericsInformation

    {
      ExtendedTransformer trafo = (ExtendedTransformer) objectTransformer;
      setObjectTransformerInformation(trafo.getSourceClass(), trafo.getTargetClass());
    }
    else
      setGenericsInformation( new GenericsInformation(TransformationContext.class, TransformationContext.class));
  }
View Full Code Here

Examples of project.gluebooster.objectanalysis.GenericsInformation

      setGenericsInformation( new GenericsInformation(TransformationContext.class, TransformationContext.class));
  }
 
  public void setObjectTransformerInformation( ClassInformation sourceclass, ClassInformation targetclass)
  {
    setGenericsInformation(new GenericsInformation( new ClassInformation( TransformationContext.class, sourceclass) ,
        new ClassInformation( TransformationContext.class, targetclass)));
   
  }
View Full Code Here

Examples of project.gluebooster.objectanalysis.GenericsInformation

  
 
  public ToTransformationContextTransformer(String name, ClassInformation objectclass)
      throws InvalidNameException {
    super(name);
    addGenericInformation(ToTransformationContextTransformer.class, new GenericsInformation( objectclass));
   
    ClassInformation targetClass = new ClassInformation( TransformationContext.class,  objectclass);
    setGenericsInformation(new GenericsInformation(objectclass, targetClass));
  
  }
View Full Code Here

Examples of project.gluebooster.objectanalysis.GenericsInformation

  }
 
  public FromTransformationContextTransformer(String name, ClassInformation objectclass)
      throws InvalidNameException {
    super(name);
    addGenericInformation(FromTransformationContextTransformer.class, new GenericsInformation( objectclass));
   
    ClassInformation sourceClass = new ClassInformation( TransformationContext.class,  objectclass);
    setGenericsInformation(new GenericsInformation( sourceClass, objectclass));
  }
View Full Code Here

Examples of project.gluebooster.objectanalysis.GenericsInformation

  {
    super(name);
    for (Class parameter: sourceclasses )
      entries.put(parameter, null);
   
    GenericsInformation sourcetypes = new GenericsInformation( sourceclasses);
    sourcetypes.setTypeOneOf();
    ClassInformation sourceClassinfo = new ClassInformation ( TransformationContext.class, new GenericsInformation( new ClassInformation(Object.class, sourcetypes)));
   
    setGenericsInformation( new GenericsInformation(sourceClassinfo, targetClass));
  }
View Full Code Here

Examples of project.gluebooster.objectanalysis.GenericsInformation

   *
   * @param classes
   */ 
  public void setGenericsInformation( Class... classes)
  {
     GenericsInformation info = new GenericsInformation(classes);
     setGenericsInformation( info);
  }
View Full Code Here

Examples of project.gluebooster.objectanalysis.GenericsInformation

 
  public void setGenericsInformation( GenericsInformation sourceclass_resultclass)
  {
     addGenericInformation(TransformerWithInstanceCreation.class, sourceclass_resultclass);
    
     ClassInformation parentSource = new ClassInformation( TransformationContext.class,  new GenericsInformation( sourceclass_resultclass.get(0)));
     ClassInformation parentTarget = new ClassInformation( TransformationContext.class,  new GenericsInformation( sourceclass_resultclass.get(1)));

    
     super.setGenericsInformation( new GenericsInformation( parentSource, parentTarget));
    
    
    
  }
View Full Code Here

Examples of project.gluebooster.objectanalysis.GenericsInformation

 
 
  public static ExtendedTransformer<TransformationContext, TransformationContext> createNOPTransformer(String name, ClassInformation transformationContext) throws Exception
  {
    TransformerWithObjectTransformer result = new TransformerWithObjectTransformer( name, NOPTransformer.INSTANCE);
    result.setGenericsInformation( new GenericsInformation( transformationContext, transformationContext));
    return result;
 
View Full Code Here

Examples of project.gluebooster.objectanalysis.GenericsInformation

    }
  }

  public final ClassInformation getSourceClass()
  {
    GenericsInformation details = getGenericsInformation(TransformerWithException.class)
    if (details == null )
      return new ClassInformation( getMethodFirstParameterClass(TRANSFORM));
    else
      return details.get(0);
  }
View Full Code Here

Examples of project.gluebooster.objectanalysis.GenericsInformation

      return details.get(0);
  }

  public final ClassInformation getTargetClass()
  {
    GenericsInformation details = getGenericsInformation(TransformerWithException.class)
    if (details == null )
      return new ClassInformation( getMethodReturnType(TRANSFORM));
    else
      return details.get(1);
   
  }
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.