Package soot

Class Type

    • Field Detail

    • Constructor Detail

      • Type

        public Type()
    • Method Detail

      • toString

        public abstract String toString()
        Returns a textual representation of this type.
        Overrides:
        toString in class Object
      • toQuotedString

        public String toQuotedString()
        Returns a textual (and quoted as needed) representation of this type for serialization, e.g. to .jimple format
      • getEscapedName

        @Deprecated
        public String getEscapedName()
        Deprecated.
        Returns a textual (and quoted as needed) representation of this type for serialization, e.g. to .jimple format Replaced by toQuotedString; only here for backwards compatibility.
      • toMachineType

        public static Type toMachineType​(Type t)
        Converts the int-like types (short, byte, boolean and char) to IntType.
      • merge

        public Type merge​(Type other,
                          Scene cm)
        Returns the least common superclass of this type and other.
      • apply

        public void apply​(Switch sw)
        Method required for use of Switchable.
        Specified by:
        apply in interface Switchable
      • setArrayType

        public void setArrayType​(ArrayType at)
      • getArrayType

        public ArrayType getArrayType()
      • makeArrayType

        public ArrayType makeArrayType()
      • isAllowedInFinalCode

        public boolean isAllowedInFinalCode()
        Returns true if this type is allowed to appear in final (clean) Jimple code.
        Returns:
      • setNumber

        public final void setNumber​(int number)
        Specified by:
        setNumber in interface Numberable
      • getDefaultFinalType

        public Type getDefaultFinalType()
        If this type is not allowed in final code, this method provides a replacement type that is allowed in final code
        Returns:
        The replacement type