Package soot.dotnet.members.method
Class DelegateHandler.DelegateInfo
- java.lang.Object
-
- soot.dotnet.members.method.DelegateHandler.DelegateInfo
-
- All Implemented Interfaces:
Tag
- Enclosing class:
- DelegateHandler
public static class DelegateHandler.DelegateInfo extends Object implements Tag
-
-
Field Summary
Fields Modifier and Type Field Description AtomicIntegercounterstatic StringDELEGATE_NAMEList<Type>delegateParametersTypedelegateReturn
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description intaddDelegateMethod(FunctionPointerConstant fpc)protected static SootClasscreateDelegateHolder(Scene sc)static SootClasscreateDelegateInterface(Scene sc)protected voidcreateListConstructor(Scene sc, SootClass actualDelegateClass)protected voidcreateSingleConstructor(Scene sc, SootClass actualDelegateClass)InvokeStmtgetCallToDelegateCreator(Local delegateObj, Value base, int num)SootMethodRefgetListMethod(Type retType, String methodName, Type... paramTypes)StringgetName()Returns the tag name.static DelegateHandler.DelegateInfogetTag(SootClass actualDelegateClass)byte[]getValue()Returns the tag raw data.
-
-
-
Field Detail
-
DELEGATE_NAME
public static String DELEGATE_NAME
-
delegateReturn
public Type delegateReturn
-
counter
public final AtomicInteger counter
-
-
Method Detail
-
getValue
public byte[] getValue() throws AttributeValueExceptionDescription copied from interface:TagReturns the tag raw data.- Specified by:
getValuein interfaceTag- Throws:
AttributeValueException
-
getListMethod
public SootMethodRef getListMethod(Type retType, String methodName, Type... paramTypes)
-
createSingleConstructor
protected void createSingleConstructor(Scene sc, SootClass actualDelegateClass)
-
createListConstructor
protected void createListConstructor(Scene sc, SootClass actualDelegateClass)
-
getTag
public static DelegateHandler.DelegateInfo getTag(SootClass actualDelegateClass)
-
addDelegateMethod
public int addDelegateMethod(FunctionPointerConstant fpc)
-
getCallToDelegateCreator
public InvokeStmt getCallToDelegateCreator(Local delegateObj, Value base, int num)
-
-