Package soot

Examples of soot.ArrayType


     */
    public static Type createIsomorphicType(Type shapeType, Type elementType) {
        if (shapeType instanceof RefType || shapeType instanceof PrimType) {
            return elementType;
        } else if (shapeType instanceof ArrayType) {
            ArrayType arrayShapeType = (ArrayType) shapeType;

            if (elementType instanceof RefType
                    || elementType instanceof PrimType) {
                return ArrayType.v(elementType, arrayShapeType.numDimensions);
            } else if (elementType instanceof ArrayType) {
                ArrayType arrayElementType = (ArrayType) elementType;
                return ArrayType.v(arrayElementType.baseType,
                        arrayElementType.numDimensions
                                + arrayShapeType.numDimensions);
            }
        }
View Full Code Here


    public static Class getClassForType(Type type)
            throws ClassNotFoundException {
        if (type instanceof RefType) {
            return Class.forName(((RefType) type).getSootClass().getName());
        } else if (type instanceof ArrayType) {
            ArrayType arrayType = (ArrayType) type;
            String identifier = "";

            for (int i = 0; i < arrayType.numDimensions; i++) {
                identifier += "[";
            }
View Full Code Here

        RefType returnType;

        if (type instanceof RefType) {
            returnType = (RefType) type;
        } else if (type instanceof ArrayType) {
            ArrayType arrayType = (ArrayType) type;

            if (arrayType.baseType instanceof RefType) {
                returnType = (RefType) arrayType.baseType;
            } else {
                return null;
View Full Code Here

        RefType returnType;

        if (type instanceof RefType) {
            returnType = (RefType) type;
        } else if (type instanceof ArrayType) {
            ArrayType arrayType = (ArrayType) type;

            if (arrayType.baseType instanceof RefType) {
                returnType = (RefType) arrayType.baseType;
            } else {
                return null;
View Full Code Here

        RefType refType;

        if (type instanceof RefType) {
            refType = (RefType) type;
        } else if (type instanceof ArrayType) {
            ArrayType arrayType = (ArrayType) type;

            if (arrayType.baseType instanceof RefType) {
                refType = (RefType) arrayType.baseType;
            } else {
                return false;
View Full Code Here

        RefType refType;

        if (type instanceof RefType) {
            refType = (RefType) type;
        } else if (type instanceof ArrayType) {
            ArrayType arrayType = (ArrayType) type;

            if (arrayType.baseType instanceof RefType) {
                refType = (RefType) arrayType.baseType;
            } else {
                return false;
View Full Code Here

        RefType refType;

        if (type instanceof RefType) {
            refType = (RefType) type;
        } else if (type instanceof ArrayType) {
            ArrayType arrayType = (ArrayType) type;

            if (arrayType.baseType instanceof RefType) {
                refType = (RefType) arrayType.baseType;
            } else {
                return false;
View Full Code Here

        RefType refType;

        if (type instanceof RefType) {
            refType = (RefType) type;
        } else if (type instanceof ArrayType) {
            ArrayType arrayType = (ArrayType) type;

            if (arrayType.baseType instanceof RefType) {
                refType = (RefType) arrayType.baseType;
            } else {
                return false;
View Full Code Here

    Set<ArrayType> ret = new HashSet<ArrayType>();
    for(ArrayType type : types){
      Type base_type = type.baseType;
      int dim = type.numDimensions;
      for(int i = dim - 1; i > 0; --i){
        ArrayType curr = ArrayType.v(base_type, i);
        if(types.contains(curr) == false){
          ret.add(curr);
        }
      }
    }
View Full Code Here

     * analyzed.
     */
    private static void createMakeURLSignatures() {
        RefType object = Scene.v().getSootClass(Object.class.getName())
                .getType();
        ArrayType objectArray = ArrayType.v(object, 1);
        RefType string = Scene.v().getSootClass(String.class.getName())
                .getType();
        Type booleanT = BooleanType.v();
        RefType classClass = Scene.v().getSootClass(Class.class.getName())
                .getType();
View Full Code Here

TOP

Related Classes of soot.ArrayType

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.