Package soot.dotnet.members
Class ArrayByReferenceWrapperGenerator
- java.lang.Object
-
- soot.dotnet.members.ArrayByReferenceWrapperGenerator
-
public class ArrayByReferenceWrapperGenerator extends Object
Array elements in .NET can be loaded by reference. Since Jimple does not support this semantic, we generate Wrapper classes. Note that in .NET, array covariance is allowed for reference types:string[] strings = new string[10]; object[] objects = strings;However, for value types, this is not the case. So all the reference types may share one object[] wrapper, but value types need their own.- Author:
- Marc Miltenberger
-
-
Field Summary
Fields Modifier and Type Field Description static StringWRAPPER_CLASS_NAME_START
-
Constructor Summary
Constructors Constructor Description ArrayByReferenceWrapperGenerator()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static ValuecreateGet(Value holder)static UnitcreateSet(Value holder, Value newValue)static SootClassgetWrapperClass(Type elementType)
-
-
-
Field Detail
-
WRAPPER_CLASS_NAME_START
public static final String WRAPPER_CLASS_NAME_START
- See Also:
- Constant Field Values
-
-