Package com.tonic.analysis.ssa.value
Class ClassConstant
- java.lang.Object
-
- com.tonic.analysis.ssa.value.Constant
-
- com.tonic.analysis.ssa.value.ClassConstant
-
-
Constructor Summary
Constructors Constructor Description ClassConstant(IRType classType)Creates a class constant with the given IR type.ClassConstant(String className)Creates a class constant with the given class name.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanequals(Object o)StringgetClassName()Gets the class name in internal format.IRTypegetClassType()IRTypegetType()Gets the IR type of this value.IRTypegetValue()Gets the value of this constant.inthashCode()StringtoString()-
Methods inherited from class com.tonic.analysis.ssa.value.Constant
isConstant
-
Methods inherited from interface com.tonic.analysis.ssa.value.Value
isNull, isSSAValue
-
-
-
-
Constructor Detail
-
ClassConstant
public ClassConstant(IRType classType)
Creates a class constant with the given IR type.- Parameters:
classType- the class type
-
ClassConstant
public ClassConstant(String className)
Creates a class constant with the given class name.- Parameters:
className- the internal class name
-
-
Method Detail
-
getClassType
public IRType getClassType()
- Returns:
- the class type
-
getType
public IRType getType()
Description copied from interface:ValueGets the IR type of this value.- Returns:
- the IR type
-
getValue
public IRType getValue()
Description copied from class:ConstantGets the value of this constant.
-
getClassName
public String getClassName()
Gets the class name in internal format.- Returns:
- the internal class name
-
-