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 protectedClassConstant(String s)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description voidapply(Switch sw)Called when this object is visited.booleanequals(Object c)static ClassConstantfromType(Type tp)TypegetType()Returns the Soot type of this Value.StringgetValue()inthashCode()Returns a hash code for this ClassConstant object.booleanisRefType()Gets whether this class constant denotes a reference type.StringtoInternalString()Gets an internal representation of the class used in Java bytecode.TypetoSootType()StringtoString()static ClassConstantv(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:ValueReturns the Soot type of this Value.
-
apply
public void apply(Switch sw)
Description copied from interface:SwitchableCalled when this object is visited.
-
-