Package soot.jimple

Class ClassConstant

    • Field Detail

      • value

        public final String value
    • Constructor Detail

      • ClassConstant

        protected ClassConstant​(String s)
    • Method Detail

      • isRefType

        public boolean isRefType()
        Gets whether this class constant denotes a reference type. This does not check for arrays.
        Returns:
        True if this class constant denotes a reference type, otherwise false
      • toSootType

        public Type toSootType()
      • toInternalString

        public String toInternalString()
        Gets an internal representation of the class used in Java bytecode. The returned string is similar to the fully qualified name but with '/' instead of '.'. Example: "java/lang/Object". See https://docs.oracle.com/javase/specs/jvms/se8/html/jvms-4.html#jvms-4.2.1
      • hashCode

        public int hashCode()
        Returns a hash code for this ClassConstant object.
        Overrides:
        hashCode in class Object
      • getValue

        public String getValue()
      • getType

        public Type getType()
        Description copied from interface: Value
        Returns the Soot type of this Value.
      • apply

        public void apply​(Switch sw)
        Description copied from interface: Switchable
        Called when this object is visited.