com.mysema.query.collections
Class SimpleEvaluator<T>

java.lang.Object
  extended by com.mysema.query.collections.SimpleEvaluator<T>
All Implemented Interfaces:
Evaluator<T>

public class SimpleEvaluator<T>
extends Object
implements Evaluator<T>

SimpleEvaluator is a Java Compiler API based implementation of the Evaluator interface

Author:
tiwe

Constructor Summary
SimpleEvaluator(String source, Class<? extends T> projectionType, String[] names, Class<?>[] types, Object[] constants)
           
 
Method Summary
 T evaluate(Object... args)
           
static String toId(String source, Class<?> returnType, Class<?>... types)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SimpleEvaluator

public SimpleEvaluator(String source,
                       Class<? extends T> projectionType,
                       String[] names,
                       Class<?>[] types,
                       Object[] constants)
                throws IOException,
                       ClassNotFoundException,
                       SecurityException,
                       NoSuchMethodException
Throws:
IOException
ClassNotFoundException
SecurityException
NoSuchMethodException
Method Detail

toId

public static String toId(String source,
                          Class<?> returnType,
                          Class<?>... types)

evaluate

public T evaluate(Object... args)
Specified by:
evaluate in interface Evaluator<T>
Returns:


Copyright © 2007-2010 Mysema Ltd. All Rights Reserved.