Class ClassConstant

java.lang.Object
sootup.core.jimple.common.constant.ClassConstant
All Implemented Interfaces:
EquivTo, Immediate, Value, Constant, Acceptor<ConstantVisitor>

public class ClassConstant extends Object implements Constant
  • Constructor Details

  • Method Details

    • 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
    • equals

      public boolean equals(Object c)
      Overrides:
      equals in class Object
    • hashCode

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

      public String getValue()
    • getType

      @Nonnull public Type getType()
      Description copied from interface: Value
      Returns the Soot type of this Value.
      Specified by:
      getType in interface Value
    • accept

      public <V extends ConstantVisitor> V accept(@Nonnull V v)
      Description copied from interface: Acceptor
      Called when this object is visited.
      Specified by:
      accept in interface Acceptor<ConstantVisitor>
    • toString

      public String toString()
      Overrides:
      toString in class Object