Package soot.jimple
Class ClassConstant
- java.lang.Object
-
- soot.jimple.Constant
-
- soot.jimple.ClassConstant
-
- All Implemented Interfaces:
Serializable
,EquivTo
,Immediate
,ConvertToBaf
,Switchable
,Value
- Direct Known Subclasses:
DotnetClassConstant
public class ClassConstant extends Constant
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Modifier Constructor Description protected
ClassConstant(String s)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description void
apply(Switch sw)
Called when this object is visited.boolean
equals(Object c)
static ClassConstant
fromType(Type tp)
Type
getType()
Returns the Soot type of this Value.String
getValue()
int
hashCode()
Returns a hash code for this ClassConstant object.boolean
isRefType()
Gets whether this class constant denotes a reference type.String
toInternalString()
Gets an internal representation of the class used in Java bytecode.Type
toSootType()
String
toString()
static ClassConstant
v(String value)
-
Methods inherited from class soot.jimple.Constant
clone, convertToBaf, equivHashCode, equivTo, getUseBoxes, toString
-
-
-
-
Field Detail
-
value
public final String value
-
-
Constructor Detail
-
ClassConstant
protected ClassConstant(String s)
-
-
Method Detail
-
v
public static ClassConstant v(String value)
-
fromType
public static ClassConstant fromType(Type tp)
-
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.
-
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.
-
-