Examples of ASTList


Examples of javassist.compiler.ast.ASTList

/*  142 */     if (expr.isArray()) {
/*  143 */       atNewArrayExpr(expr);
/*      */     } else {
/*  145 */       CtClass clazz = this.resolver.lookupClassByName(expr.getClassName());
/*  146 */       String cname = clazz.getName();
/*  147 */       ASTList args = expr.getArguments();
/*  148 */       atMethodCallCore(clazz, "<init>", args);
/*  149 */       this.exprType = 307;
/*  150 */       this.arrayDim = 0;
/*  151 */       this.className = MemberResolver.javaToJvmName(cname);
/*      */     }
View Full Code Here

Examples of org.apache.cayenne.exp.parser.ASTList

     * Applies a few default rules for adding operands to expressions. In particular wraps
     * all lists into LIST expressions. Applied only in path expressions.
     */
    protected static Object wrapPathOperand(Object op) {
        if (op instanceof Collection) {
            return new ASTList((Collection<?>) op);
        }
        else if (op instanceof Object[]) {
            return new ASTList((Object[]) op);
        }
        else {
            return op;
        }
    }
View Full Code Here

Examples of org.apache.cayenne.exp.parser.ASTList

     */
    public static Expression inExp(String pathSpec, Object... values) {
        if (values.length == 0) {
            return new ASTFalse();
        }
        return new ASTIn(new ASTObjPath(pathSpec), new ASTList(values));
    }
View Full Code Here

Examples of org.apache.cayenne.exp.parser.ASTList

     */
    public static Expression inDbExp(String pathSpec, Object... values) {
        if (values.length == 0) {
            return new ASTFalse();
        }
        return new ASTIn(new ASTDbPath(pathSpec), new ASTList(values));
    }
View Full Code Here

Examples of org.apache.cayenne.exp.parser.ASTList

     */
    public static Expression inExp(String pathSpec, Collection<?> values) {
        if (values.isEmpty()) {
            return new ASTFalse();
        }
        return new ASTIn(new ASTObjPath(pathSpec), new ASTList(values));
    }
View Full Code Here

Examples of org.apache.cayenne.exp.parser.ASTList

     */
    public static Expression inDbExp(String pathSpec, Collection<?> values) {
        if (values.isEmpty()) {
            return new ASTFalse();
        }
        return new ASTIn(new ASTDbPath(pathSpec), new ASTList(values));
    }
View Full Code Here

Examples of org.apache.cayenne.exp.parser.ASTList

     */
    public static Expression notInExp(String pathSpec, Collection<?> values) {
        if (values.isEmpty()) {
            return new ASTTrue();
        }
        return new ASTNotIn(new ASTObjPath(pathSpec), new ASTList(values));
    }
View Full Code Here

Examples of org.apache.cayenne.exp.parser.ASTList

     */
    public static Expression notInDbExp(String pathSpec, Collection<?> values) {
        if (values.isEmpty()) {
            return new ASTTrue();
        }
        return new ASTNotIn(new ASTDbPath(pathSpec), new ASTList(values));
    }
View Full Code Here

Examples of org.apache.cayenne.exp.parser.ASTList

     */
    public static Expression notInExp(String pathSpec, Object... values) {
        if (values.length == 0) {
            return new ASTTrue();
        }
        return new ASTNotIn(new ASTObjPath(pathSpec), new ASTList(values));
    }
View Full Code Here

Examples of org.apache.cayenne.exp.parser.ASTList

     */
    public static Expression notInDbExp(String pathSpec, Object... values) {
        if (values.length == 0) {
            return new ASTTrue();
        }
        return new ASTNotIn(new ASTDbPath(pathSpec), new ASTList(values));
    }
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.