Start line:  
End line:  

Snippet Preview

Snippet HTML Code

Stack Overflow Questions
 package com.mysema.query.jdoql;
 

Parameters:
<T>
Author(s):
tiwe
public final class JDOQLQueryMixin<T> extends QueryMixin<T>{
    public JDOQLQueryMixin(QueryMetadata metadata) {
        super(metadata);
    }
    
    @SuppressWarnings("unchecked")
    @Override
    public T addToProjection(Expr<?>... o) {
        for (Expr<?> expr : o) {
            if (expr instanceof EConstructor) {
                EConstructor<?> constructor = (EConstructor<?>) expr;
                for (Expr<?> arg : constructor.getArgs()) {
                    super.addToProjection(arg);
                }
            } else {
                super.addToProjection(expr);
            }
        }
        return getSelf();
    }
New to GrepCode? Check out our FAQ X