Examples of JCNewArray


Examples of com.sun.tools.javac.tree.JCTree.JCNewArray

        } else {// A sequence
            ListBuffer<JCExpression> lb = ListBuffer.lb();
            for (LiteralAnnotationTerm term : (List<LiteralAnnotationTerm>)(List)elements) {
                lb.add(term.makeLiteral(exprGen));
            }
            JCNewArray array = exprGen.make().NewArray(null,  null,  lb.toList());
            return factory.makeAtValue(exprGen, null, array);
           
        }
        return com.sun.tools.javac.util.List.<JCAnnotation>nil();
    }
View Full Code Here

Examples of com.sun.tools.javac.tree.JCTree.JCNewArray

    protected JCExpression makeLiteral(ExpressionTransformer exprGen) {
        ListBuffer<JCExpression> lb = ListBuffer.lb();
        for (LiteralAnnotationTerm term : (List<LiteralAnnotationTerm>)(List)elements) {
            lb.add(term.makeLiteral(exprGen));
        }
        JCNewArray array = exprGen.make().NewArray(null,  null,  lb.toList());
        return array;
    }
View Full Code Here

Examples of com.sun.tools.javac.tree.JCTree.JCNewArray

        if(wrapIntoArray){
            // must have at least one arg, so take the last one
            ProducedType parameterType = invocation.getParameterType(numArguments-1);
            JCExpression arrayType = makeJavaType(parameterType, JT_RAW);
           
            JCNewArray arrayExpr = make().NewArray(arrayType, List.<JCExpression>nil(), arrayWrap.toList());
            JCExpression arrayTypeExpr = make().TypeArray(makeJavaType(parameterType, JT_RAW));
            result = result.append(new ExpressionAndType(arrayExpr, arrayTypeExpr));
        }
        return result;
    }
View Full Code Here

Examples of com.sun.tools.javac.tree.JCTree.JCNewArray

                        selector = "NONE";
                    }
                    JCExpression varianceElement = make().Select(makeIdent(syms().ceylonVarianceType), names().fromString(selector));
                    varianceElements.append(varianceElement);
                }
                JCNewArray varianceArray = make().NewArray(makeIdent(syms().ceylonVarianceType), List.<JCExpression>nil(), varianceElements.toList());
                typeTestArguments = typeTestArguments.prepend(varianceArray);
            }
            typeTestArguments = typeTestArguments.prepend(thisType);
            JCExpression classDescriptor = make().Apply(null, makeSelect(makeTypeDescriptorType(), "klass"), typeTestArguments);
            ProducedType qualifyingType = pt.getQualifyingType();
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.