Examples of JNewArrayExpr


Examples of soot.jimple.internal.JNewArrayExpr

     */
    private VarArgInfo getVarArgInfo(DefinitionStmt jAssignStmt) {
        Value right = jAssignStmt.getRightOp();
        if (right instanceof JNewArrayExpr) {
            // "= new X[3]; // where X is the basetype"
            JNewArrayExpr jNewArrayExpr = (JNewArrayExpr) right;
            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;
            }
        }
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.