Class Typing

java.lang.Object
sootup.interceptors.typeresolving.Typing

public class Typing extends Object
  • Constructor Details

  • Method Details

    • getType

      @Nullable public Type getType(@Nonnull Local local)
    • set

      public void set(@Nonnull Local local, @Nonnull Type type)
    • getLocals

      public Collection<Local> getLocals()
    • getMap

      public Map<Local,Type> getMap()
    • setStmtsIDList

      public void setStmtsIDList(@Nonnull BitSet bitSet)
    • getStmtsIDList

      @Nonnull public BitSet getStmtsIDList()
    • compare

      public int compare(@Nonnull Typing typing, @Nonnull BytecodeHierarchy hierarchy, @Nonnull Collection<Local> localsToIgnore)
      This method is used to compare two Typings that have same locals' set, but with different types.
      Returns:
      0: same to the given typing. 1: more general to the given typing . -1: more specific to the given typing. -2: cannot be compared to the given typing. One local have two different types which have no ancestor relationship. 2: cannot be compared to the given typing. One local's type is more specific than the given typing, but another local's type is more general than the given typing.