Package soot.jimple.internal
Class JCheckedCastExpr
- java.lang.Object
-
- soot.jimple.internal.AbstractCastExpr
-
- soot.jimple.internal.JCheckedCastExpr
-
- All Implemented Interfaces:
Serializable,EquivTo,CastExpr,ConvertToBaf,Expr,ICheckedExpr,Switchable,Value
public class JCheckedCastExpr extends AbstractCastExpr implements ICheckedExpr
This cast expression checks for an overflow and throws an exception in case the cast cannot be performed without an overflow. In .NET CIL code, this corresponds to a Conv_Ovf_* instruction. {@link https://learn.microsoft.com/de-de/dotnet/api/system.reflection.emit.opcodes.conv_ovf_i8?view=net-8.0} Note that since this class inherits fromAbstractCastExpr, most analysis (e.g. data flow) can treat this like a normal cast expression without further changes.- See Also:
- Serialized Form
-
-
Field Summary
-
Fields inherited from class soot.jimple.internal.AbstractCastExpr
opBox, type
-
-
Constructor Summary
Constructors Constructor Description JCheckedCastExpr(ValueBox op, Type type)JCheckedCastExpr(Value op, Type type)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidapply(Switch sw)Called when this object is visited.Objectclone()Returns a clone of this Value.-
Methods inherited from class soot.jimple.internal.AbstractCastExpr
convertToBaf, equivHashCode, equivTo, getCastType, getOp, getOpBox, getType, getUseBoxes, setCastType, setOp, toString, toString
-
-
-
-
Method Detail
-
clone
public Object clone()
Description copied from interface:ValueReturns a clone of this Value.- Specified by:
clonein interfaceValue- Specified by:
clonein classAbstractCastExpr
-
apply
public void apply(Switch sw)
Description copied from interface:SwitchableCalled when this object is visited.- Specified by:
applyin interfaceCastExpr- Specified by:
applyin interfaceSwitchable- Overrides:
applyin classAbstractCastExpr
-
-