Package dk.brics.jwig.analysis

Examples of dk.brics.jwig.analysis.VarArgInfo


            Value size = jNewArrayExpr.getSize();
            if (size instanceof IntConstant) {
                IntConstant constant = (IntConstant) size;
                Type[] varArgTypes = new Type[constant.value];
                Type varArgBase = jNewArrayExpr.getBaseType();
                VarArgInfo varArgInfo = new VarArgInfo(constant.value,
                        varArgTypes, varArgBase);
                return varArgInfo;
            }
        }
        return null;
View Full Code Here


                JAssignStmt jAssignStmt = (JAssignStmt) statement;
                if (jAssignStmt.getLeftOp().equals(varArgs)) {
                    // assigning to the varArgs variable
                    log.debug("Found varargs instantiation");

                    VarArgInfo varArgInfo = getVarArgInfo(jAssignStmt);
                    if (varArgInfo != null) {
                        varArgSize = varArgInfo.getSize();
                        varArgTypes = varArgInfo.getTypes();
                        varArgBase = varArgInfo.getBaseType();
                    } else {
                        Feedbacks.add(new UnanalyzedVarArgs(enclosingMethod,
                                enclosingStatement));
                        // we cant do anything, but to skip this analysis
                        skipAnalysis = true;
View Full Code Here

TOP

Related Classes of dk.brics.jwig.analysis.VarArgInfo

Copyright © 2018 www.massapicom. 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.