Package soot.dotnet.values
Class FunctionPointerConstant
- java.lang.Object
-
- soot.jimple.Constant
-
- soot.dotnet.values.FunctionPointerConstant
-
- All Implemented Interfaces:
Serializable,EquivTo,Immediate,ConvertToBaf,Switchable,Value
public class FunctionPointerConstant extends Constant
Function pointer constants point to a specific method. Note that these are temporary, as they get replaced with delegate handlers during the construction of .NET bodies.- Author:
- Marc Miltenberger
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description FunctionPointerConstant(DotnetMethod method, boolean virtual)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidapply(Switch sw)Called when this object is visited.FunctionPointerConstantclone()Clones the current constant.booleanequals(Object obj)intequivHashCode()Returns a hash code consistent with structural equality for this object.booleanequivTo(Object o)Returns true if this object is structurally equivalent to c.DotnetMethodgetDotnetMethod()SootMethodRefgetSootMethodRef()TypegetType()Returns the Soot type of this Value.inthashCode()booleanisVirtual()StringtoString()-
Methods inherited from class soot.jimple.Constant
convertToBaf, getUseBoxes, toString
-
-
-
-
Constructor Detail
-
FunctionPointerConstant
public FunctionPointerConstant(DotnetMethod method, boolean virtual)
-
-
Method Detail
-
getDotnetMethod
public DotnetMethod getDotnetMethod()
-
isVirtual
public boolean isVirtual()
-
getSootMethodRef
public SootMethodRef getSootMethodRef()
-
clone
public FunctionPointerConstant clone()
Description copied from class:ConstantClones the current constant. Not implemented here.
-
equivTo
public boolean equivTo(Object o)
Description copied from class:ConstantReturns true if this object is structurally equivalent to c. For Constants, equality is structural equality, so we just call equals().
-
equivHashCode
public int equivHashCode()
Description copied from class:ConstantReturns a hash code consistent with structural equality for this object. For Constants, equality is structural equality; we hope that each subclass defines hashCode() correctly.- Specified by:
equivHashCodein interfaceEquivTo- Overrides:
equivHashCodein classConstant
-
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.
-
-